summaryrefslogtreecommitdiff
path: root/src/lib/eolian/eolian_database.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eolian/eolian_database.h')
-rw-r--r--src/lib/eolian/eolian_database.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/eolian/eolian_database.h b/src/lib/eolian/eolian_database.h
index b2e7290..edef41e 100644
--- a/src/lib/eolian/eolian_database.h
+++ b/src/lib/eolian/eolian_database.h
@@ -31,10 +31,6 @@ extern Eina_Prefix *_eolian_prefix;
31#endif 31#endif
32#define DBG(...) EINA_LOG_DOM_DBG(_eolian_log_dom, __VA_ARGS__) 32#define DBG(...) EINA_LOG_DOM_DBG(_eolian_log_dom, __VA_ARGS__)
33 33
34/* a hash holding all declarations, for redef checking etc */
35extern Eina_Hash *_decls;
36extern Eina_Hash *_declsf;
37
38struct _Eolian_Unit 34struct _Eolian_Unit
39{ 35{
40 Eolian *state; 36 Eolian *state;
@@ -45,6 +41,7 @@ struct _Eolian_Unit
45 Eina_Hash *aliases; 41 Eina_Hash *aliases;
46 Eina_Hash *structs; 42 Eina_Hash *structs;
47 Eina_Hash *enums; 43 Eina_Hash *enums;
44 Eina_Hash *decls;
48}; 45};
49 46
50struct _Eolian 47struct _Eolian
@@ -66,6 +63,7 @@ struct _Eolian
66 Eina_Hash *enums_f; 63 Eina_Hash *enums_f;
67 Eina_Hash *globals_f; 64 Eina_Hash *globals_f;
68 Eina_Hash *constants_f; 65 Eina_Hash *constants_f;
66 Eina_Hash *decls_f;
69}; 67};
70 68
71typedef struct _Eolian_Object 69typedef struct _Eolian_Object
@@ -322,7 +320,8 @@ int database_shutdown(void);
322char *database_class_to_filename(const char *cname); 320char *database_class_to_filename(const char *cname);
323Eina_Bool database_validate(Eolian *state, const Eolian_Unit *src); 321Eina_Bool database_validate(Eolian *state, const Eolian_Unit *src);
324 322
325void database_decl_add(Eina_Stringshare *name, Eolian_Declaration_Type type, 323void database_decl_add(Eolian *state, Eina_Stringshare *name,
324 Eolian_Declaration_Type type,
326 Eina_Stringshare *file, void *ptr); 325 Eina_Stringshare *file, void *ptr);
327 326
328void database_doc_del(Eolian_Documentation *doc); 327void database_doc_del(Eolian_Documentation *doc);
@@ -338,10 +337,10 @@ void database_enum_add(Eolian *state, Eolian_Typedecl *tp);
338void database_type_del(Eolian_Type *tp); 337void database_type_del(Eolian_Type *tp);
339void database_typedecl_del(Eolian_Typedecl *tp); 338void database_typedecl_del(Eolian_Typedecl *tp);
340 339
341void database_type_to_str(const Eolian_Type *tp, Eina_Strbuf *buf, const char *name, Eolian_C_Type_Type ctype); 340void database_type_to_str(const Eolian_Unit *src, const Eolian_Type *tp, Eina_Strbuf *buf, const char *name, Eolian_C_Type_Type ctype);
342void database_typedecl_to_str(const Eolian_Unit *src, const Eolian_Typedecl *tp, Eina_Strbuf *buf); 341void database_typedecl_to_str(const Eolian_Unit *src, const Eolian_Typedecl *tp, Eina_Strbuf *buf);
343 342
344Eina_Bool database_type_is_ownable(const Eolian_Type *tp); 343Eina_Bool database_type_is_ownable(const Eolian_Unit *unit, const Eolian_Type *tp);
345 344
346/* expressions */ 345/* expressions */
347 346