*
* @ingroup Eolian
*/
-EAPI Eolian_Type_Type eolian_type_type_get(Eolian_Type *tp);
+EAPI Eolian_Type_Type eolian_type_type_get(const Eolian_Type *tp);
/*
* @brief Get an iterator to all arguments of a function type.
*
* @ingroup Eolian
*/
-EAPI Eina_Iterator *eolian_type_arguments_list_get(Eolian_Type *tp);
+EAPI Eina_Iterator *eolian_type_arguments_list_get(const Eolian_Type *tp);
/*
* @brief Get an iterator to all subtypes of a type.
*
* @ingroup Eolian
*/
-EAPI Eina_Iterator *eolian_type_subtypes_list_get(Eolian_Type *tp);
+EAPI Eina_Iterator *eolian_type_subtypes_list_get(const Eolian_Type *tp);
/*
* @brief Get an iterator to all field names of a struct type.
*
* @ingroup Eolian
*/
-EAPI Eina_Iterator *eolian_type_struct_field_names_list_get(Eolian_Type *tp);
+EAPI Eina_Iterator *eolian_type_struct_field_names_list_get(const Eolian_Type *tp);
/*
* @brief Get a field of a struct type.
*
* @ingroup Eolian
*/
-EAPI Eolian_Type *eolian_type_struct_field_get(Eolian_Type *tp, const char *field);
+EAPI Eolian_Type *eolian_type_struct_field_get(const Eolian_Type *tp, const char *field);
/*
* @brief Get the description of a field of a struct type.
*
* @ingroup Eolian
*/
-EAPI const char *eolian_type_struct_field_description_get(Eolian_Type *tp, const char *field);
+EAPI const char *eolian_type_struct_field_description_get(const Eolian_Type *tp, const char *field);
/*
* @brief Get the description of a struct type.
*
* @ingroup Eolian
*/
-EAPI const char *eolian_type_struct_description_get(Eolian_Type *tp);
+EAPI const char *eolian_type_struct_description_get(const Eolian_Type *tp);
/*
* @brief Get the return type of a function type.
*
* @ingroup Eolian
*/
-EAPI Eolian_Type *eolian_type_return_type_get(Eolian_Type *tp);
+EAPI Eolian_Type *eolian_type_return_type_get(const Eolian_Type *tp);
/*
* @brief Get the base type of a function type.
*
* @ingroup Eolian
*/
-EAPI Eolian_Type *eolian_type_base_type_get(Eolian_Type *tp);
+EAPI Eolian_Type *eolian_type_base_type_get(const Eolian_Type *tp);
/*
* @brief Get whether the given type is @own.
*
* @ingroup Eolian
*/
-EAPI Eina_Bool eolian_type_is_own(Eolian_Type *tp);
+EAPI Eina_Bool eolian_type_is_own(const Eolian_Type *tp);
/*
* @brief Get whether the given type is const.
*
* @ingroup Eolian
*/
-EAPI Eina_Bool eolian_type_is_const(Eolian_Type *tp);
+EAPI Eina_Bool eolian_type_is_const(const Eolian_Type *tp);
/*
* @brief Get the full C type name of the given type with a name.
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_type_c_type_named_get(Eolian_Type *tp, const char *name);
+EAPI Eina_Stringshare *eolian_type_c_type_named_get(const Eolian_Type *tp, const char *name);
/*
* @brief Get the full C type name of the given type without a name.
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_type_c_type_get(Eolian_Type *tp);
+EAPI Eina_Stringshare *eolian_type_c_type_get(const Eolian_Type *tp);
/*
* @brief Get the type name of the given type. You have to manually delete
*
* @ingroup Eolian
*/
-EAPI Eina_Stringshare *eolian_type_name_get(Eolian_Type *tp);
+EAPI Eina_Stringshare *eolian_type_name_get(const Eolian_Type *tp);
#endif
}
EAPI Eolian_Type_Type
-eolian_type_type_get(Eolian_Type *tp)
+eolian_type_type_get(const Eolian_Type *tp)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, EOLIAN_TYPE_UNKNOWN_TYPE);
return tp->type;
}
EAPI Eina_Iterator *
-eolian_type_arguments_list_get(Eolian_Type *tp)
+eolian_type_arguments_list_get(const Eolian_Type *tp)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
EINA_SAFETY_ON_FALSE_RETURN_VAL(eolian_type_type_get(tp) == EOLIAN_TYPE_FUNCTION, NULL);
}
EAPI Eina_Iterator *
-eolian_type_subtypes_list_get(Eolian_Type *tp)
+eolian_type_subtypes_list_get(const Eolian_Type *tp)
{
Eolian_Type_Type tpt;
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
}
EAPI Eina_Iterator *
-eolian_type_struct_field_names_list_get(Eolian_Type *tp)
+eolian_type_struct_field_names_list_get(const Eolian_Type *tp)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
EINA_SAFETY_ON_FALSE_RETURN_VAL(tp->type == EOLIAN_TYPE_STRUCT, NULL);
}
EAPI Eolian_Type *
-eolian_type_struct_field_get(Eolian_Type *tp, const char *field)
+eolian_type_struct_field_get(const Eolian_Type *tp, const char *field)
{
_Struct_Field_Type *sf = NULL;
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
}
EAPI const char *
-eolian_type_struct_field_description_get(Eolian_Type *tp, const char *field)
+eolian_type_struct_field_description_get(const Eolian_Type *tp, const char *field)
{
_Struct_Field_Type *sf = NULL;
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
}
EAPI const char *
-eolian_type_struct_description_get(Eolian_Type *tp)
+eolian_type_struct_description_get(const Eolian_Type *tp)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
EINA_SAFETY_ON_FALSE_RETURN_VAL(tp->type == EOLIAN_TYPE_STRUCT, NULL);
}
EAPI Eolian_Type *
-eolian_type_return_type_get(Eolian_Type *tp)
+eolian_type_return_type_get(const Eolian_Type *tp)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
EINA_SAFETY_ON_FALSE_RETURN_VAL(eolian_type_type_get(tp) == EOLIAN_TYPE_FUNCTION, NULL);
}
EAPI Eolian_Type *
-eolian_type_base_type_get(Eolian_Type *tp)
+eolian_type_base_type_get(const Eolian_Type *tp)
{
Eolian_Type_Type tpt;
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
}
EAPI Eina_Bool
-eolian_type_is_own(Eolian_Type *tp)
+eolian_type_is_own(const Eolian_Type *tp)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, EINA_FALSE);
return tp->is_own;
}
EAPI Eina_Bool
-eolian_type_is_const(Eolian_Type *tp)
+eolian_type_is_const(const Eolian_Type *tp)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, EINA_FALSE);
return tp->is_const;
}
-static void _type_to_str(Eolian_Type *tp, Eina_Strbuf *buf, const char *name);
+static void _type_to_str(const Eolian_Type *tp, Eina_Strbuf *buf, const char *name);
static void
-_ftype_to_str(Eolian_Type *tp, Eina_Strbuf *buf, const char *name)
+_ftype_to_str(const Eolian_Type *tp, Eina_Strbuf *buf, const char *name)
{
Eina_List *l;
Eolian_Type *stp;
}
static void
-_stype_to_str(Eolian_Type *tp, Eina_Strbuf *buf, const char *name)
+_stype_to_str(const Eolian_Type *tp, Eina_Strbuf *buf, const char *name)
{
eina_strbuf_append(buf, "struct ");
if (tp->name)
}
static void
-_type_to_str(Eolian_Type *tp, Eina_Strbuf *buf, const char *name)
+_type_to_str(const Eolian_Type *tp, Eina_Strbuf *buf, const char *name)
{
if (tp->type == EOLIAN_TYPE_FUNCTION)
{
}
EAPI Eina_Stringshare *
-eolian_type_c_type_named_get(Eolian_Type *tp, const char *name)
+eolian_type_c_type_named_get(const Eolian_Type *tp, const char *name)
{
Eina_Stringshare *ret;
Eina_Strbuf *buf;
}
EAPI Eina_Stringshare *
-eolian_type_c_type_get(Eolian_Type *tp)
+eolian_type_c_type_get(const Eolian_Type *tp)
{
return eolian_type_c_type_named_get(tp, NULL);
}
EAPI Eina_Stringshare *
-eolian_type_name_get(Eolian_Type *tp)
+eolian_type_name_get(const Eolian_Type *tp)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
eina_stringshare_ref(tp->name);