EAPI Eina_Iterator *eolian_unit_enums_get(const Eolian_Unit *unit);
/*
- * @brief Returns the full name of the given class.
+ * @brief A helper function to get the full name of a class.
*
- * @param[in] class the class.
- * @return the full name of the class on success or NULL otherwise.
- *
- * The full name and the name of a class will be different if namespaces
- * are used.
+ * @see eolian_object_name_get
*
* @ingroup Eolian
*/
}
/*
- * @brief Returns the name of the given class.
+ * @brief A helper function to get the short name of a class.
*
- * @param[in] class the class.
- * @return the name of the class on success or NULL otherwise.
+ * @see eolian_object_short_name_get
*
* @ingroup Eolian
*/
}
/*
- * @brief Returns an iterator to the namespaces of the given class.
+ * @brief A helper function to get the namespaces of a class.
*
- * @param[in] class the class.
- * @return the iterator on success or NULL otherwise.
+ * @see eolian_object_namespaces_get
*
* @ingroup Eolian
*/
EAPI Eolian_Object_Scope eolian_function_scope_get(const Eolian_Function *function_id, Eolian_Function_Type ftype);
/*
- * @brief Returns the name of a function
+ * @brief A helper function to get the name of a function.
*
- * @param[in] function_id Id of the function
- * @return the function name
+ * @see eolian_object_name_get
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_function_name_get(const Eolian_Function *function_id);
+static inline const char *
+eolian_function_name_get(const Eolian_Function *fid)
+{
+ return eolian_object_name_get(EOLIAN_OBJECT(fid));
+}
/*
* @brief Returns the full C name of a function.
EAPI const Eolian_Expression *eolian_parameter_default_value_get(const Eolian_Function_Parameter *param);
/*
- * @brief Get name of a parameter
+ * @brief A helper function to get the name of a function parameter.
*
- * @param[in] param_desc parameter handle
- * @return the name of the parameter
+ * @see eolian_object_name_get
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_parameter_name_get(const Eolian_Function_Parameter *param);
+static inline const char *
+eolian_parameter_name_get(const Eolian_Function_Parameter *param)
+{
+ return eolian_object_name_get(EOLIAN_OBJECT(param));
+}
/*
* @brief Get documentation of a parameter
EAPI const Eolian_Class *eolian_function_class_get(const Eolian_Function *function_id);
/*
- * @brief Get full string of an overriding function (implement).
+ * @brief A helper function to get the full name of an implement.
*
- * @param[in] impl the handle of the implement
- * @return the full string.
+ * @see eolian_object_name_get
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_implement_full_name_get(const Eolian_Implement *impl);
+static inline const char *
+eolian_implement_name_get(const Eolian_Implement *impl)
+{
+ return eolian_object_name_get(EOLIAN_OBJECT(impl));
+}
/*
* @brief Get the class of an overriding function (implement).
EAPI Eina_Iterator *eolian_class_implements_get(const Eolian_Class *klass);
/*
- * @brief Get full string of a constructing function.
+ * @brief A helper function to get the full name of a constructor.
*
- * @param[in] ctor the handle of the constructor
- * @return the full string.
+ * @see eolian_object_name_get
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_constructor_full_name_get(const Eolian_Constructor *ctor);
+static inline const char *
+eolian_constructor_name_get(const Eolian_Constructor *ctor)
+{
+ return eolian_object_name_get(EOLIAN_OBJECT(ctor));
+}
/*
* @brief Get the class of a constructing function.
EAPI Eina_Iterator *eolian_class_events_get(const Eolian_Class *klass);
/*
- * @brief Get the name of an event.
+ * @brief A helper function to get the name of an event.
*
- * @param[in] event the event handle
- * @return the name or NULL
+ * @see eolian_object_name_get
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_event_name_get(const Eolian_Event *event);
+static inline const char *
+eolian_event_name_get(const Eolian_Event *event)
+{
+ return eolian_object_name_get(EOLIAN_OBJECT(event));
+}
/*
* @brief Get the type of an event.
EAPI Eina_Iterator *eolian_class_parts_get(const Eolian_Class *klass);
/*
- * @brief Get the name of a part.
+ * @brief Returns the C name of an event
*
- * @param[in] part the part handle
- * @return the name or NULL
+ * @param[in] event the event handle
+ * @return the event C name
+ *
+ * You're responsible for deleting the stringshare.
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_part_name_get(const Eolian_Part *part);
+EAPI Eina_Stringshare *eolian_event_c_name_get(const Eolian_Event *event);
+
+/*
+ * @brief A helper function to get the name of a part.
+ *
+ * @see eolian_object_name_get
+ *
+ * @ingroup Eolian
+ */
+static inline const char *
+eolian_part_name_get(const Eolian_Part *part)
+{
+ return eolian_object_name_get(EOLIAN_OBJECT(part));
+}
/*
* @brief Get the type of a part.
EAPI const Eolian_Documentation *eolian_part_documentation_get(const Eolian_Part *part);
/*
- * @brief Returns the C name of an event
- *
- * @param[in] event the event handle
- * @return the event C name
- *
- * You're responsible for deleting the stringshare.
- *
- * @ingroup Eolian
- */
-EAPI Eina_Stringshare *eolian_event_c_name_get(const Eolian_Event *event);
-
-/*
* @brief Get an event in a class by its name
*
* @param[in] klass the class
EAPI const Eolian_Struct_Type_Field *eolian_typedecl_struct_field_get(const Eolian_Typedecl *tp, const char *field);
/*
- * @brief Get the name of a field of a struct type.
+ * @brief A helper function to get the name of a struct field.
*
- * @param[in] fl the field.
- * @return the name.
+ * @see eolian_object_name_get
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_typedecl_struct_field_name_get(const Eolian_Struct_Type_Field *fl);
+static inline const char *
+eolian_typedecl_struct_field_name_get(const Eolian_Struct_Type_Field *field)
+{
+ return eolian_object_name_get(EOLIAN_OBJECT(field));
+}
/*
* @brief Get the documentation of a field of a struct type.
EAPI const Eolian_Enum_Type_Field *eolian_typedecl_enum_field_get(const Eolian_Typedecl *tp, const char *field);
/*
- * @brief Get the name of a field of an enum type.
+ * @brief A helper function to get the name of an enum field.
*
- * @param[in] fl the field.
- * @return the name.
+ * @see eolian_object_name_get
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_typedecl_enum_field_name_get(const Eolian_Enum_Type_Field *fl);
+static inline const char *
+eolian_typedecl_enum_field_name_get(const Eolian_Enum_Type_Field *field)
+{
+ return eolian_object_name_get(EOLIAN_OBJECT(field));
+}
/*
* @brief Get the C name of a field of an enum type.