2014-09-23 12:48:16 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2014-09-01 07:35:50 -07:00
|
|
|
#include <Eina.h>
|
|
|
|
#include "eolian_database.h"
|
|
|
|
|
|
|
|
EAPI const Eolian_Class *
|
|
|
|
eolian_constructor_class_get(const Eolian_Constructor *ctor)
|
|
|
|
{
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN_VAL(ctor, NULL);
|
2017-01-02 06:28:26 -08:00
|
|
|
return ctor->klass;
|
2014-09-01 07:35:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
EAPI const Eolian_Function *
|
|
|
|
eolian_constructor_function_get(const Eolian_Constructor *ctor)
|
|
|
|
{
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN_VAL(ctor, NULL);
|
|
|
|
const Eolian_Class *klass = eolian_constructor_class_get(ctor);
|
|
|
|
if (!klass)
|
|
|
|
return NULL;
|
2018-03-16 06:25:44 -07:00
|
|
|
return eolian_class_function_by_name_get(klass,
|
2018-03-08 10:30:40 -08:00
|
|
|
ctor->base.name + strlen(klass->base.name) + 1, EOLIAN_UNRESOLVED);
|
2014-09-01 07:35:50 -07:00
|
|
|
}
|
2014-11-20 07:21:44 -08:00
|
|
|
|
|
|
|
EAPI Eina_Bool
|
|
|
|
eolian_constructor_is_optional(const Eolian_Constructor *ctor)
|
|
|
|
{
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN_VAL(ctor, EINA_FALSE);
|
|
|
|
return ctor->is_optional;
|
|
|
|
}
|
2018-10-30 18:47:58 -07:00
|
|
|
|
|
|
|
EAPI Eina_Bool
|
|
|
|
eolian_constructor_is_ctor_param(const Eolian_Constructor *ctor)
|
|
|
|
{
|
|
|
|
EINA_SAFETY_ON_NULL_RETURN_VAL(ctor, EINA_FALSE);
|
|
|
|
return ctor->is_ctor_param;
|
|
|
|
}
|