EAPI Eina_Iterator *eolian_unit_enums_get(const Eolian_Unit *unit);
/*
- * @brief Returns the name of the file containing the given class.
- *
- * @param[in] klass the class.
- * @return the name of the file on success or NULL otherwise.
- *
- * @ingroup Eolian
- */
-EAPI Eina_Stringshare *eolian_class_file_get(const Eolian_Class *klass);
-
-/*
* @brief Returns the full name of the given class.
*
* @param[in] class the class.
EAPI const Eolian_Documentation *eolian_typedecl_documentation_get(const Eolian_Typedecl *tp);
/*
- * @brief Get the filename of a type declaration.
- *
- * @param[in] tp the type declaration.
- * @return the filename.
- *
- * @ingroup Eolian
- */
-EAPI Eina_Stringshare *eolian_typedecl_file_get(const Eolian_Typedecl *tp);
-
-/*
* @brief Get the base type of an alias declaration.
*
* @param[in] tp the type declaration.
EAPI Eolian_Type_Builtin_Type eolian_type_builtin_type_get(const Eolian_Type *tp);
/*
- * @brief Get the filename of a type.
- *
- * @param[in] tp the type.
- * @return the filename.
- *
- * @ingroup Eolian
- */
-EAPI Eina_Stringshare *eolian_type_file_get(const Eolian_Type *tp);
-
-/*
* @brief Get the base type of a type.
*
* Only applies to "complex" ordinary types, i.e. this is the first inner
EAPI const Eolian_Documentation *eolian_variable_documentation_get(const Eolian_Variable *var);
/*
- * @brief Get the filename of a variable.
- *
- * @param[in] var the variable.
- * @return the filename or NULL.
- *
- * @ingroup Eolian
- */
-EAPI Eina_Stringshare *eolian_variable_file_get(const Eolian_Variable *var);
-
-/*
* @brief Get the base type of a variable.
*
* @param[in] var the variable.
fail_if(strcmp(type_name, "int"));
/* File */
- fail_if(!(file = eolian_typedecl_file_get(tdl)));
+ fail_if(!(file = eolian_object_file_get((const Eolian_Object *)tdl)));
fail_if(strcmp(file, "typedef.eo"));
/* Lowest alias base */
fail_if(!(unit = eolian_state_file_parse(eos, TESTS_SRC_DIR"/data/class_simple.eo")));
fail_if(!(class = eolian_unit_class_by_name_get(unit, "Class_Simple")));
fail_if(eolian_state_class_by_file_get(eos, "class_simple.eo") != class);
- fail_if(strcmp(eolian_class_file_get(class), "class_simple.eo"));
+ fail_if(strcmp(eolian_object_file_get((const Eolian_Object *)class), "class_simple.eo"));
/* Class */
fail_if(eolian_class_type_get(class) != EOLIAN_CLASS_REGULAR);
/* named struct */
fail_if(!(tdl = eolian_unit_struct_by_name_get(unit, "Named")));
fail_if(!(type_name = eolian_typedecl_name_get(tdl)));
- fail_if(!(file = eolian_typedecl_file_get(tdl)));
+ fail_if(!(file = eolian_object_file_get((const Eolian_Object *)tdl)));
fail_if(eolian_typedecl_type_get(tdl) != EOLIAN_TYPEDECL_STRUCT);
fail_if(strcmp(type_name, "Named"));
fail_if(strcmp(file, "struct.eo"));
/* referencing */
fail_if(!(tdl = eolian_unit_struct_by_name_get(unit, "Another")));
fail_if(!(type_name = eolian_typedecl_name_get(tdl)));
- fail_if(!(file = eolian_typedecl_file_get(tdl)));
+ fail_if(!(file = eolian_object_file_get((const Eolian_Object *)tdl)));
fail_if(eolian_typedecl_type_get(tdl) != EOLIAN_TYPEDECL_STRUCT);
fail_if(strcmp(type_name, "Another"));
fail_if(strcmp(file, "struct.eo"));
fail_if(!(class = eolian_unit_class_by_name_get(unit, "Import")));
fail_if(!(tdl = eolian_unit_alias_by_name_get(unit, "Imported")));
- fail_if(strcmp(eolian_typedecl_file_get(tdl), "import_types.eot"));
+ fail_if(strcmp(eolian_object_file_get((const Eolian_Object *)tdl), "import_types.eot"));
fail_if(!(tdl = eolian_unit_struct_by_name_get(unit, "Imported_Struct")));
- fail_if(strcmp(eolian_typedecl_file_get(tdl), "import_types.eot"));
+ fail_if(strcmp(eolian_object_file_get((const Eolian_Object *)tdl), "import_types.eot"));
eolian_state_free(eos);
eolian_shutdown();