summaryrefslogtreecommitdiff
path: root/src/lib/eolian/database_var_api.c
blob: b6f2d1f1bc041db42fac738c4a6be29c16cef55c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <Eina.h>
#include "eolian_database.h"

EAPI const Eolian_Documentation *
eolian_constant_documentation_get(const Eolian_Constant *var)
{
   EINA_SAFETY_ON_NULL_RETURN_VAL(var, NULL);
   return var->doc;
}

EAPI const Eolian_Type *
eolian_constant_type_get(const Eolian_Constant *var)
{
   EINA_SAFETY_ON_NULL_RETURN_VAL(var, NULL);
   return var->base_type;
}

EAPI const Eolian_Expression *
eolian_constant_value_get(const Eolian_Constant *var)
{
   EINA_SAFETY_ON_NULL_RETURN_VAL(var, NULL);
   return var->value;
}

EAPI Eina_Bool
eolian_constant_is_extern(const Eolian_Constant *var)
{
   EINA_SAFETY_ON_NULL_RETURN_VAL(var, EINA_FALSE);
   return var->is_extern;
}