summaryrefslogtreecommitdiff
path: root/src/lib/eolian/eolian_database.h
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-10 12:10:47 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-11 12:37:27 +0100
commit455dedd49dd522d1dcbec41a52af6b16e20f7f73 (patch)
tree26c8bb5683e58180d19d4849c902b829b48addec /src/lib/eolian/eolian_database.h
parentc998af19fcfda7e508e5fbd449f60e7d46f17b51 (diff)
eolian: introduce the keyword required
This introduces a new keyword called required. It only works on mixins. You can specify a list of regular/abstract classes in there. Classes specified after the required keyword are later used to verify the usage of the mixin. With this feature a mixin can define a list of types that the inheriting object (the object that inherits from a mixin) needs to fullfill, if one class that is required is not in the implemented classes, then eolian will bail out. Differential Revision: https://phab.enlightenment.org/D7584
Diffstat (limited to 'src/lib/eolian/eolian_database.h')
-rw-r--r--src/lib/eolian/eolian_database.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eolian/eolian_database.h b/src/lib/eolian/eolian_database.h
index 9804449..fdaee09 100644
--- a/src/lib/eolian/eolian_database.h
+++ b/src/lib/eolian/eolian_database.h
@@ -191,6 +191,7 @@ struct _Eolian_Class
191 Eina_List *constructors; /* Eolian_Constructor */ 191 Eina_List *constructors; /* Eolian_Constructor */
192 Eina_List *events; /* Eolian_Event */ 192 Eina_List *events; /* Eolian_Event */
193 Eina_List *parts; /* Eolian_Part */ 193 Eina_List *parts; /* Eolian_Part */
194 Eina_List *requires; /* a list of required other classes only used internally */
194 Eina_Bool class_ctor_enable:1; 195 Eina_Bool class_ctor_enable:1;
195 Eina_Bool class_dtor_enable:1; 196 Eina_Bool class_dtor_enable:1;
196}; 197};