forked from enlightenment/efl
eolian: add API to get children of a unit
This commit is contained in:
parent
e91ae3984a
commit
7d001fd93f
|
@ -559,6 +559,17 @@ EAPI const Eolian_Unit *eolian_state_unit_by_file_get(const Eolian_State *state,
|
|||
*/
|
||||
EAPI Eina_Iterator *eolian_state_units_get(const Eolian_State *state);
|
||||
|
||||
/*
|
||||
* @brief Get the children (dependencies) of a unit.
|
||||
*
|
||||
* The iterator is obviously again to `const Eolian_Unit *`.
|
||||
*
|
||||
* @param[in] unit The unit.
|
||||
*
|
||||
* @ingroup Eolian
|
||||
*/
|
||||
EAPI Eina_Iterator *eolian_unit_children_get(const Eolian_Unit *unit);
|
||||
|
||||
/*
|
||||
* @brief Parse the given .eo or .eot file and fill the database.
|
||||
*
|
||||
|
|
|
@ -677,6 +677,13 @@ eolian_state_units_get(const Eolian_State *state)
|
|||
return eina_hash_iterator_data_new(state->units);
|
||||
}
|
||||
|
||||
EAPI Eina_Iterator *
|
||||
eolian_unit_children_get(const Eolian_Unit *unit)
|
||||
{
|
||||
if (!unit) return NULL;
|
||||
return eina_hash_iterator_data_new(unit->children);
|
||||
}
|
||||
|
||||
char *
|
||||
database_class_to_filename(const char *cname)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue