elua: add check API to eolian bindings

This commit is contained in:
Daniel Kolesa 2018-05-13 15:59:01 +02:00
parent e50aa5e1c9
commit b8b94cbfb8
1 changed files with 5 additions and 0 deletions

View File

@ -301,6 +301,7 @@ ffi.cdef [[
const Eolian_Unit *eolian_state_file_parse(Eolian_State *state, const char *filepath);
Eina_Bool eolian_state_all_eo_files_parse(Eolian_State *state);
Eina_Bool eolian_state_all_eot_files_parse(Eolian_State *state);
Eina_Bool eolian_state_check(const Eolian_State *state);
const Eolian_Unit *eolian_state_unit_by_file_get(const Eolian_State *state, const char *file_name);
Eina_Iterator *eolian_state_units_get(const Eolian_State *state);
@ -685,6 +686,10 @@ ffi.metatype("Eolian_State", {
return eolian.eolian_state_all_eot_files_parse(self) ~= 0
end,
check = function(self)
return eolian.eolian_state_check(self) ~= 0
end,
eo_file_paths_get = function(self)
return iterator.String_Iterator(eolian.eolian_state_eo_file_paths_get(self))
end,