summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-09 18:26:49 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-09 18:26:49 +0200
commit267c57d0f10d4b1577181c8f7157b7bc2f8053a6 (patch)
tree7e41546452c4ad6c6aa93664e3e2a858fd01bf9d /src/lib/eolian
parent165921ec040f427875fc0b32b1f03d4a45efd25e (diff)
eolian: remove second parameter for eolian_type_c_type_get
This has been replaced by newer APIs.
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/Eolian.h10
-rw-r--r--src/lib/eolian/database_type_api.c4
-rw-r--r--src/lib/eolian/eolian_database.h7
3 files changed, 10 insertions, 11 deletions
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index 78be1ac97f..c0ec4d6a56 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -353,13 +353,6 @@ typedef enum
353 353
354typedef enum 354typedef enum
355{ 355{
356 EOLIAN_C_TYPE_DEFAULT = 0,
357 EOLIAN_C_TYPE_PARAM,
358 EOLIAN_C_TYPE_RETURN
359} Eolian_C_Type_Type;
360
361typedef enum
362{
363 EOLIAN_EXPR_UNKNOWN = 0, 356 EOLIAN_EXPR_UNKNOWN = 0,
364 EOLIAN_EXPR_INT, 357 EOLIAN_EXPR_INT,
365 EOLIAN_EXPR_UINT, 358 EOLIAN_EXPR_UINT,
@@ -3000,7 +2993,6 @@ EAPI Eina_Bool eolian_type_is_ptr(const Eolian_Type *tp);
3000 * @brief Get the full C type name of the given type. 2993 * @brief Get the full C type name of the given type.
3001 * 2994 *
3002 * @param[in] tp the type. 2995 * @param[in] tp the type.
3003 * @param[in] ctype the context within which the C type string will be used.
3004 * @return The C type name assuming @c tp is not NULL. 2996 * @return The C type name assuming @c tp is not NULL.
3005 * 2997 *
3006 * You're responsible for the stringshare. 2998 * You're responsible for the stringshare.
@@ -3009,7 +3001,7 @@ EAPI Eina_Bool eolian_type_is_ptr(const Eolian_Type *tp);
3009 * 3001 *
3010 * @ingroup Eolian 3002 * @ingroup Eolian
3011 */ 3003 */
3012EAPI Eina_Stringshare *eolian_type_c_type_get(const Eolian_Type *tp, Eolian_C_Type_Type ctype); 3004EAPI Eina_Stringshare *eolian_type_c_type_get(const Eolian_Type *tp);
3013 3005
3014/* 3006/*
3015 * @brief A helper function to get the full name of a type. 3007 * @brief A helper function to get the full name of a type.
diff --git a/src/lib/eolian/database_type_api.c b/src/lib/eolian/database_type_api.c
index 12e787d8f8..59a149337f 100644
--- a/src/lib/eolian/database_type_api.c
+++ b/src/lib/eolian/database_type_api.c
@@ -267,13 +267,13 @@ eolian_typedecl_is_extern(const Eolian_Typedecl *tp)
267} 267}
268 268
269EAPI Eina_Stringshare * 269EAPI Eina_Stringshare *
270eolian_type_c_type_get(const Eolian_Type *tp, Eolian_C_Type_Type ctype) 270eolian_type_c_type_get(const Eolian_Type *tp)
271{ 271{
272 Eina_Stringshare *ret; 272 Eina_Stringshare *ret;
273 Eina_Strbuf *buf; 273 Eina_Strbuf *buf;
274 EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL); 274 EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
275 buf = eina_strbuf_new(); 275 buf = eina_strbuf_new();
276 database_type_to_str(tp, buf, NULL, ctype, EINA_FALSE); 276 database_type_to_str(tp, buf, NULL, EOLIAN_C_TYPE_DEFAULT, EINA_FALSE);
277 ret = eina_stringshare_add(eina_strbuf_string_get(buf)); 277 ret = eina_stringshare_add(eina_strbuf_string_get(buf));
278 eina_strbuf_free(buf); 278 eina_strbuf_free(buf);
279 return ret; 279 return ret;
diff --git a/src/lib/eolian/eolian_database.h b/src/lib/eolian/eolian_database.h
index 8a16733780..1821642c55 100644
--- a/src/lib/eolian/eolian_database.h
+++ b/src/lib/eolian/eolian_database.h
@@ -263,6 +263,13 @@ struct _Eolian_Function_Parameter
263 Eina_Bool move :1; 263 Eina_Bool move :1;
264}; 264};
265 265
266typedef enum
267{
268 EOLIAN_C_TYPE_DEFAULT = 0,
269 EOLIAN_C_TYPE_PARAM,
270 EOLIAN_C_TYPE_RETURN
271} Eolian_C_Type_Type;
272
266struct _Eolian_Type 273struct _Eolian_Type
267{ 274{
268 Eolian_Object base; 275 Eolian_Object base;