summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Iscaro <iscaro@profusion.mobi>2017-08-08 16:57:31 -0300
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-08-23 18:32:13 -0300
commit3ed176370d077ede61c75d61e9f7ecf83d84cd11 (patch)
tree980f2a191382b81e611c3fe6c12fffd1169eedcf
parent4da53492ae1235a728d1335fdc7e3cc214df9763 (diff)
Eina: Add EINA_VALUE_TYPE_ERROR
This new type will be used by the new promise/future implementation, which will be used to flag errors.
-rw-r--r--src/lib/eina/eina_value.c62
-rw-r--r--src/lib/eina/eina_value.h40
2 files changed, 86 insertions, 16 deletions
diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c
index 3d8dce8039..3e8cff721b 100644
--- a/src/lib/eina/eina_value.c
+++ b/src/lib/eina/eina_value.c
@@ -167,7 +167,7 @@ _eina_value_type_uchar_convert_to(const Eina_Value_Type *type EINA_UNUSED, const
167 short other_mem = v; 167 short other_mem = v;
168 return eina_value_type_pset(convert, convert_mem, &other_mem); 168 return eina_value_type_pset(convert, convert_mem, &other_mem);
169 } 169 }
170 else if (convert == EINA_VALUE_TYPE_INT) 170 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
171 { 171 {
172 int other_mem = v; 172 int other_mem = v;
173 return eina_value_type_pset(convert, convert_mem, &other_mem); 173 return eina_value_type_pset(convert, convert_mem, &other_mem);
@@ -315,7 +315,7 @@ _eina_value_type_ushort_convert_to(const Eina_Value_Type *type EINA_UNUSED, cons
315 return EINA_FALSE; 315 return EINA_FALSE;
316 return eina_value_type_pset(convert, convert_mem, &other_mem); 316 return eina_value_type_pset(convert, convert_mem, &other_mem);
317 } 317 }
318 else if (convert == EINA_VALUE_TYPE_INT) 318 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
319 { 319 {
320 int other_mem = v; 320 int other_mem = v;
321 return eina_value_type_pset(convert, convert_mem, &other_mem); 321 return eina_value_type_pset(convert, convert_mem, &other_mem);
@@ -465,7 +465,7 @@ _eina_value_type_uint_convert_to(const Eina_Value_Type *type EINA_UNUSED, const
465 return EINA_FALSE; 465 return EINA_FALSE;
466 return eina_value_type_pset(convert, convert_mem, &other_mem); 466 return eina_value_type_pset(convert, convert_mem, &other_mem);
467 } 467 }
468 else if (convert == EINA_VALUE_TYPE_INT) 468 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
469 { 469 {
470 int other_mem = v; 470 int other_mem = v;
471 if (EINA_UNLIKELY(v > (unsigned int)eina_value_int_max)) 471 if (EINA_UNLIKELY(v > (unsigned int)eina_value_int_max))
@@ -619,7 +619,7 @@ _eina_value_type_ulong_convert_to(const Eina_Value_Type *type EINA_UNUSED, const
619 return EINA_FALSE; 619 return EINA_FALSE;
620 return eina_value_type_pset(convert, convert_mem, &other_mem); 620 return eina_value_type_pset(convert, convert_mem, &other_mem);
621 } 621 }
622 else if (convert == EINA_VALUE_TYPE_INT) 622 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
623 { 623 {
624 int other_mem = v; 624 int other_mem = v;
625 if (EINA_UNLIKELY(v > (unsigned int)eina_value_int_max)) 625 if (EINA_UNLIKELY(v > (unsigned int)eina_value_int_max))
@@ -778,7 +778,7 @@ _eina_value_type_uint64_convert_to(const Eina_Value_Type *type EINA_UNUSED, cons
778 return EINA_FALSE; 778 return EINA_FALSE;
779 return eina_value_type_pset(convert, convert_mem, &other_mem); 779 return eina_value_type_pset(convert, convert_mem, &other_mem);
780 } 780 }
781 else if (convert == EINA_VALUE_TYPE_INT) 781 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
782 { 782 {
783 int other_mem = v; 783 int other_mem = v;
784 if (EINA_UNLIKELY(v > (unsigned int)eina_value_int_max)) 784 if (EINA_UNLIKELY(v > (unsigned int)eina_value_int_max))
@@ -936,7 +936,7 @@ _eina_value_type_char_convert_to(const Eina_Value_Type *type EINA_UNUSED, const
936 short other_mem = v; 936 short other_mem = v;
937 return eina_value_type_pset(convert, convert_mem, &other_mem); 937 return eina_value_type_pset(convert, convert_mem, &other_mem);
938 } 938 }
939 else if (convert == EINA_VALUE_TYPE_INT) 939 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
940 { 940 {
941 int other_mem = v; 941 int other_mem = v;
942 return eina_value_type_pset(convert, convert_mem, &other_mem); 942 return eina_value_type_pset(convert, convert_mem, &other_mem);
@@ -1094,7 +1094,7 @@ _eina_value_type_short_convert_to(const Eina_Value_Type *type EINA_UNUSED, const
1094 short other_mem = v; 1094 short other_mem = v;
1095 return eina_value_type_pset(convert, convert_mem, &other_mem); 1095 return eina_value_type_pset(convert, convert_mem, &other_mem);
1096 } 1096 }
1097 else if (convert == EINA_VALUE_TYPE_INT) 1097 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
1098 { 1098 {
1099 int other_mem = v; 1099 int other_mem = v;
1100 return eina_value_type_pset(convert, convert_mem, &other_mem); 1100 return eina_value_type_pset(convert, convert_mem, &other_mem);
@@ -1258,7 +1258,7 @@ _eina_value_type_int_convert_to(const Eina_Value_Type *type EINA_UNUSED, const E
1258 return EINA_FALSE; 1258 return EINA_FALSE;
1259 return eina_value_type_pset(convert, convert_mem, &other_mem); 1259 return eina_value_type_pset(convert, convert_mem, &other_mem);
1260 } 1260 }
1261 else if (convert == EINA_VALUE_TYPE_INT) 1261 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
1262 { 1262 {
1263 int other_mem = v; 1263 int other_mem = v;
1264 return eina_value_type_pset(convert, convert_mem, &other_mem); 1264 return eina_value_type_pset(convert, convert_mem, &other_mem);
@@ -1424,7 +1424,7 @@ _eina_value_type_long_convert_to(const Eina_Value_Type *type EINA_UNUSED, const
1424 return EINA_FALSE; 1424 return EINA_FALSE;
1425 return eina_value_type_pset(convert, convert_mem, &other_mem); 1425 return eina_value_type_pset(convert, convert_mem, &other_mem);
1426 } 1426 }
1427 else if (convert == EINA_VALUE_TYPE_INT) 1427 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
1428 { 1428 {
1429 int other_mem = v; 1429 int other_mem = v;
1430 if (EINA_UNLIKELY(v < eina_value_int_min)) 1430 if (EINA_UNLIKELY(v < eina_value_int_min))
@@ -1597,7 +1597,7 @@ _eina_value_type_int64_convert_to(const Eina_Value_Type *type EINA_UNUSED, const
1597 return EINA_FALSE; 1597 return EINA_FALSE;
1598 return eina_value_type_pset(convert, convert_mem, &other_mem); 1598 return eina_value_type_pset(convert, convert_mem, &other_mem);
1599 } 1599 }
1600 else if (convert == EINA_VALUE_TYPE_INT) 1600 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
1601 { 1601 {
1602 int other_mem = v; 1602 int other_mem = v;
1603 if (EINA_UNLIKELY(v < eina_value_int_min)) 1603 if (EINA_UNLIKELY(v < eina_value_int_min))
@@ -1776,7 +1776,7 @@ _eina_value_type_float_convert_to(const Eina_Value_Type *type EINA_UNUSED, const
1776 return EINA_FALSE; 1776 return EINA_FALSE;
1777 return eina_value_type_pset(convert, convert_mem, &other_mem); 1777 return eina_value_type_pset(convert, convert_mem, &other_mem);
1778 } 1778 }
1779 else if (convert == EINA_VALUE_TYPE_INT) 1779 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
1780 { 1780 {
1781 int other_mem = v; 1781 int other_mem = v;
1782 if (EINA_UNLIKELY(v < eina_value_int_min)) 1782 if (EINA_UNLIKELY(v < eina_value_int_min))
@@ -1957,7 +1957,7 @@ _eina_value_type_double_convert_to(const Eina_Value_Type *type EINA_UNUSED, cons
1957 return EINA_FALSE; 1957 return EINA_FALSE;
1958 return eina_value_type_pset(convert, convert_mem, &other_mem); 1958 return eina_value_type_pset(convert, convert_mem, &other_mem);
1959 } 1959 }
1960 else if (convert == EINA_VALUE_TYPE_INT) 1960 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
1961 { 1961 {
1962 int other_mem = v; 1962 int other_mem = v;
1963 if (EINA_UNLIKELY(v < eina_value_int_min)) 1963 if (EINA_UNLIKELY(v < eina_value_int_min))
@@ -2123,7 +2123,7 @@ _eina_value_type_string_common_convert_to(const Eina_Value_Type *type EINA_UNUSE
2123 return EINA_FALSE; 2123 return EINA_FALSE;
2124 return eina_value_type_pset(convert, convert_mem, &other_mem); 2124 return eina_value_type_pset(convert, convert_mem, &other_mem);
2125 } 2125 }
2126 else if (convert == EINA_VALUE_TYPE_INT) 2126 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
2127 { 2127 {
2128 int other_mem; 2128 int other_mem;
2129 if ((sscanf(v, "%d", &other_mem) != 1) && 2129 if ((sscanf(v, "%d", &other_mem) != 1) &&
@@ -3438,7 +3438,7 @@ _eina_value_type_timeval_convert_to(const Eina_Value_Type *type EINA_UNUSED, con
3438 return EINA_FALSE; 3438 return EINA_FALSE;
3439 return eina_value_type_pset(convert, convert_mem, &other_mem); 3439 return eina_value_type_pset(convert, convert_mem, &other_mem);
3440 } 3440 }
3441 else if (convert == EINA_VALUE_TYPE_INT) 3441 else if ((convert == EINA_VALUE_TYPE_INT) || (convert == EINA_VALUE_TYPE_ERROR))
3442 { 3442 {
3443 int other_mem = v.tv_sec; 3443 int other_mem = v.tv_sec;
3444 if (EINA_UNLIKELY(v.tv_sec < eina_value_int_min)) 3444 if (EINA_UNLIKELY(v.tv_sec < eina_value_int_min))
@@ -4554,6 +4554,20 @@ _eina_value_type_optional_pget(const Eina_Value_Type *type EINA_UNUSED, const vo
4554 return EINA_TRUE; 4554 return EINA_TRUE;
4555} 4555}
4556 4556
4557static Eina_Bool
4558_eina_value_type_eina_error_convert_to(const Eina_Value_Type *type, const Eina_Value_Type *convert, const void *type_mem, void *convert_mem)
4559{
4560 if (convert == EINA_VALUE_TYPE_STRINGSHARE ||
4561 convert == EINA_VALUE_TYPE_STRING)
4562 {
4563 const Eina_Error v = *(const Eina_Error *)type_mem;
4564 const char *msg = eina_error_msg_get(v);
4565 return eina_value_type_pset(convert, convert_mem, &msg);
4566 }
4567
4568 return _eina_value_type_int_convert_to(type, convert, type_mem, convert_mem);
4569}
4570
4557EAPI const Eina_Value_Type _EINA_VALUE_TYPE_OPTIONAL = { 4571EAPI const Eina_Value_Type _EINA_VALUE_TYPE_OPTIONAL = {
4558 EINA_VALUE_TYPE_VERSION, 4572 EINA_VALUE_TYPE_VERSION,
4559 sizeof(Eina_Value_Union), 4573 sizeof(Eina_Value_Union),
@@ -4785,6 +4799,20 @@ static const Eina_Value_Type _EINA_VALUE_TYPE_BASICS[] = {
4785 _eina_value_type_ulong_vset, 4799 _eina_value_type_ulong_vset,
4786 _eina_value_type_ulong_pset, 4800 _eina_value_type_ulong_pset,
4787 _eina_value_type_ulong_pget 4801 _eina_value_type_ulong_pget
4802 },
4803 {
4804 EINA_VALUE_TYPE_VERSION,
4805 sizeof(Eina_Error),
4806 "Eina_Error",
4807 _eina_value_type_int_setup,
4808 _eina_value_type_int_flush,
4809 _eina_value_type_int_copy,
4810 _eina_value_type_int_compare,
4811 _eina_value_type_eina_error_convert_to,
4812 NULL, /* no convert from */
4813 _eina_value_type_int_vset,
4814 _eina_value_type_int_pset,
4815 _eina_value_type_int_pget
4788 } 4816 }
4789}; 4817};
4790 4818
@@ -4992,11 +5020,12 @@ eina_value_init(void)
4992 EINA_VALUE_TYPE_STRINGSHARE = _EINA_VALUE_TYPE_BASICS + 12; 5020 EINA_VALUE_TYPE_STRINGSHARE = _EINA_VALUE_TYPE_BASICS + 12;
4993 EINA_VALUE_TYPE_STRING = _EINA_VALUE_TYPE_BASICS + 13; 5021 EINA_VALUE_TYPE_STRING = _EINA_VALUE_TYPE_BASICS + 13;
4994 EINA_VALUE_TYPE_TIMESTAMP = _EINA_VALUE_TYPE_BASICS + 14; 5022 EINA_VALUE_TYPE_TIMESTAMP = _EINA_VALUE_TYPE_BASICS + 14;
5023 EINA_VALUE_TYPE_ERROR = _EINA_VALUE_TYPE_BASICS + 15;
4995 5024
4996 _EINA_VALUE_TYPE_BASICS_START = _EINA_VALUE_TYPE_BASICS + 0; 5025 _EINA_VALUE_TYPE_BASICS_START = _EINA_VALUE_TYPE_BASICS + 0;
4997 _EINA_VALUE_TYPE_BASICS_END = _EINA_VALUE_TYPE_BASICS + 14; 5026 _EINA_VALUE_TYPE_BASICS_END = _EINA_VALUE_TYPE_BASICS + 15;
4998 5027
4999 EINA_SAFETY_ON_FALSE_RETURN_VAL((sizeof(_EINA_VALUE_TYPE_BASICS)/sizeof(_EINA_VALUE_TYPE_BASICS[0])) == 15, EINA_FALSE); 5028 EINA_SAFETY_ON_FALSE_RETURN_VAL((sizeof(_EINA_VALUE_TYPE_BASICS)/sizeof(_EINA_VALUE_TYPE_BASICS[0])) == 16, EINA_FALSE);
5000 5029
5001 5030
5002 EINA_VALUE_TYPE_ARRAY = &_EINA_VALUE_TYPE_ARRAY; 5031 EINA_VALUE_TYPE_ARRAY = &_EINA_VALUE_TYPE_ARRAY;
@@ -5068,6 +5097,7 @@ eina_value_shutdown(void)
5068EAPI const Eina_Value_Type *_EINA_VALUE_TYPE_BASICS_START = NULL; 5097EAPI const Eina_Value_Type *_EINA_VALUE_TYPE_BASICS_START = NULL;
5069EAPI const Eina_Value_Type *_EINA_VALUE_TYPE_BASICS_END = NULL; 5098EAPI const Eina_Value_Type *_EINA_VALUE_TYPE_BASICS_END = NULL;
5070 5099
5100EAPI const Eina_Value_Type *EINA_VALUE_TYPE_ERROR = NULL;
5071EAPI const Eina_Value_Type *EINA_VALUE_TYPE_UCHAR = NULL; 5101EAPI const Eina_Value_Type *EINA_VALUE_TYPE_UCHAR = NULL;
5072EAPI const Eina_Value_Type *EINA_VALUE_TYPE_USHORT = NULL; 5102EAPI const Eina_Value_Type *EINA_VALUE_TYPE_USHORT = NULL;
5073EAPI const Eina_Value_Type *EINA_VALUE_TYPE_UINT = NULL; 5103EAPI const Eina_Value_Type *EINA_VALUE_TYPE_UINT = NULL;
diff --git a/src/lib/eina/eina_value.h b/src/lib/eina/eina_value.h
index 756314cb85..87354cd612 100644
--- a/src/lib/eina/eina_value.h
+++ b/src/lib/eina/eina_value.h
@@ -349,6 +349,18 @@ union _Eina_Value_Union
349 uint64_t _guarantee; /**< guarantees 8-byte alignment */ 349 uint64_t _guarantee; /**< guarantees 8-byte alignment */
350}; 350};
351 351
352
353/**
354 * @var EINA_VALUE_TYPE_ERROR
355 * manages Eina_Error values.
356 * This value will hold an Eina_Error number,
357 * which can be converted to string to get its message or call
358 * eina_error_msg_get() on the number to convert yourself.
359 *
360 * @since 1.21
361 */
362EAPI extern const Eina_Value_Type *EINA_VALUE_TYPE_ERROR;
363
352/** 364/**
353 * @var EINA_VALUE_TYPE_UCHAR 365 * @var EINA_VALUE_TYPE_UCHAR
354 * manages unsigned char type. 366 * manages unsigned char type.
@@ -732,6 +744,7 @@ static inline int eina_value_compare(const Eina_Value *a,
732 * The variable argument is dependent on chosen type. The list for 744 * The variable argument is dependent on chosen type. The list for
733 * basic types: 745 * basic types:
734 * 746 *
747 * @li EINA_VALUE_TYPE_ERROR: Eina_Error
735 * @li EINA_VALUE_TYPE_UCHAR: unsigned char 748 * @li EINA_VALUE_TYPE_UCHAR: unsigned char
736 * @li EINA_VALUE_TYPE_USHORT: unsigned short 749 * @li EINA_VALUE_TYPE_USHORT: unsigned short
737 * @li EINA_VALUE_TYPE_UINT: unsigned int 750 * @li EINA_VALUE_TYPE_UINT: unsigned int
@@ -793,6 +806,7 @@ static inline Eina_Bool eina_value_set(Eina_Value *value,
793 * The variable argument is dependent on chosen type. The list for 806 * The variable argument is dependent on chosen type. The list for
794 * basic types: 807 * basic types:
795 * 808 *
809 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
796 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 810 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
797 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 811 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
798 * @li EINA_VALUE_TYPE_UINT: unsigned int* 812 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -896,6 +910,7 @@ static inline Eina_Bool eina_value_vget(const Eina_Value *value,
896 * The pointer type is dependent on chosen value type. The list for 910 * The pointer type is dependent on chosen value type. The list for
897 * basic types: 911 * basic types:
898 * 912 *
913 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
899 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 914 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
900 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 915 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
901 * @li EINA_VALUE_TYPE_UINT: unsigned int* 916 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -962,6 +977,7 @@ static inline Eina_Bool eina_value_pset(Eina_Value *value,
962 * The pointer type is dependent on chosen value type. The list for 977 * The pointer type is dependent on chosen value type. The list for
963 * basic types: 978 * basic types:
964 * 979 *
980 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
965 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 981 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
966 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 982 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
967 * @li EINA_VALUE_TYPE_UINT: unsigned int* 983 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -1170,6 +1186,7 @@ static inline Eina_Bool eina_value_array_remove(Eina_Value *value,
1170 * The variable argument is dependent on chosen subtype. The list for 1186 * The variable argument is dependent on chosen subtype. The list for
1171 * basic types: 1187 * basic types:
1172 * 1188 *
1189 * @li EINA_VALUE_TYPE_ERROR: Eina_Error
1173 * @li EINA_VALUE_TYPE_UCHAR: unsigned char 1190 * @li EINA_VALUE_TYPE_UCHAR: unsigned char
1174 * @li EINA_VALUE_TYPE_USHORT: unsigned short 1191 * @li EINA_VALUE_TYPE_USHORT: unsigned short
1175 * @li EINA_VALUE_TYPE_UINT: unsigned int 1192 * @li EINA_VALUE_TYPE_UINT: unsigned int
@@ -1231,6 +1248,7 @@ static inline Eina_Bool eina_value_array_set(Eina_Value *value,
1231 * The variable argument is dependent on chosen subtype. The list for 1248 * The variable argument is dependent on chosen subtype. The list for
1232 * basic types: 1249 * basic types:
1233 * 1250 *
1251 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
1234 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 1252 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
1235 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 1253 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
1236 * @li EINA_VALUE_TYPE_UINT: unsigned int* 1254 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -1280,6 +1298,7 @@ static inline Eina_Bool eina_value_array_get(const Eina_Value *value,
1280 * The variable argument is dependent on chosen subtype. The list for 1298 * The variable argument is dependent on chosen subtype. The list for
1281 * basic types: 1299 * basic types:
1282 * 1300 *
1301 * @li EINA_VALUE_TYPE_ERROR: Eina_Error
1283 * @li EINA_VALUE_TYPE_UCHAR: unsigned char 1302 * @li EINA_VALUE_TYPE_UCHAR: unsigned char
1284 * @li EINA_VALUE_TYPE_USHORT: unsigned short 1303 * @li EINA_VALUE_TYPE_USHORT: unsigned short
1285 * @li EINA_VALUE_TYPE_UINT: unsigned int 1304 * @li EINA_VALUE_TYPE_UINT: unsigned int
@@ -1335,6 +1354,7 @@ static inline Eina_Bool eina_value_array_insert(Eina_Value *value,
1335 * The variable argument is dependent on chosen subtype. The list for 1354 * The variable argument is dependent on chosen subtype. The list for
1336 * basic types: 1355 * basic types:
1337 * 1356 *
1357 * @li EINA_VALUE_TYPE_ERROR: Eina_Error
1338 * @li EINA_VALUE_TYPE_UCHAR: unsigned char 1358 * @li EINA_VALUE_TYPE_UCHAR: unsigned char
1339 * @li EINA_VALUE_TYPE_USHORT: unsigned short 1359 * @li EINA_VALUE_TYPE_USHORT: unsigned short
1340 * @li EINA_VALUE_TYPE_UINT: unsigned int 1360 * @li EINA_VALUE_TYPE_UINT: unsigned int
@@ -1476,6 +1496,7 @@ static inline Eina_Bool eina_value_array_vappend(Eina_Value *value,
1476 * The pointer type is dependent on chosen value type. The list for 1496 * The pointer type is dependent on chosen value type. The list for
1477 * basic types: 1497 * basic types:
1478 * 1498 *
1499 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
1479 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 1500 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
1480 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 1501 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
1481 * @li EINA_VALUE_TYPE_UINT: unsigned int* 1502 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -1541,6 +1562,7 @@ static inline Eina_Bool eina_value_array_pset(Eina_Value *value,
1541 * The pointer type is dependent on chosen value type. The list for 1562 * The pointer type is dependent on chosen value type. The list for
1542 * basic types: 1563 * basic types:
1543 * 1564 *
1565 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
1544 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 1566 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
1545 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 1567 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
1546 * @li EINA_VALUE_TYPE_UINT: unsigned int* 1568 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -1591,6 +1613,7 @@ static inline Eina_Bool eina_value_array_pget(const Eina_Value *value,
1591 * The pointer type is dependent on chosen value type. The list for 1613 * The pointer type is dependent on chosen value type. The list for
1592 * basic types: 1614 * basic types:
1593 * 1615 *
1616 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
1594 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 1617 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
1595 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 1618 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
1596 * @li EINA_VALUE_TYPE_UINT: unsigned int* 1619 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -1649,6 +1672,7 @@ static inline Eina_Bool eina_value_array_pinsert(Eina_Value *value,
1649 * The pointer type is dependent on chosen value type. The list for 1672 * The pointer type is dependent on chosen value type. The list for
1650 * basic types: 1673 * basic types:
1651 * 1674 *
1675 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
1652 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 1676 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
1653 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 1677 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
1654 * @li EINA_VALUE_TYPE_UINT: unsigned int* 1678 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -1817,6 +1841,7 @@ static inline Eina_Bool eina_value_list_remove(Eina_Value *value,
1817 * The variable argument is dependent on chosen subtype. The list for 1841 * The variable argument is dependent on chosen subtype. The list for
1818 * basic types: 1842 * basic types:
1819 * 1843 *
1844 * @li EINA_VALUE_TYPE_ERROR: Eina_Error
1820 * @li EINA_VALUE_TYPE_UCHAR: unsigned char 1845 * @li EINA_VALUE_TYPE_UCHAR: unsigned char
1821 * @li EINA_VALUE_TYPE_USHORT: unsigned short 1846 * @li EINA_VALUE_TYPE_USHORT: unsigned short
1822 * @li EINA_VALUE_TYPE_UINT: unsigned int 1847 * @li EINA_VALUE_TYPE_UINT: unsigned int
@@ -1877,6 +1902,7 @@ static inline Eina_Bool eina_value_list_set(Eina_Value *value,
1877 * The variable argument is dependent on chosen subtype. The list for 1902 * The variable argument is dependent on chosen subtype. The list for
1878 * basic types: 1903 * basic types:
1879 * 1904 *
1905 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
1880 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 1906 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
1881 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 1907 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
1882 * @li EINA_VALUE_TYPE_UINT: unsigned int* 1908 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -1925,6 +1951,7 @@ static inline Eina_Bool eina_value_list_get(const Eina_Value *value,
1925 * The variable argument is dependent on chosen subtype. The list for 1951 * The variable argument is dependent on chosen subtype. The list for
1926 * basic types: 1952 * basic types:
1927 * 1953 *
1954 * @li EINA_VALUE_TYPE_ERROR: Eina_Error
1928 * @li EINA_VALUE_TYPE_UCHAR: unsigned char 1955 * @li EINA_VALUE_TYPE_UCHAR: unsigned char
1929 * @li EINA_VALUE_TYPE_USHORT: unsigned short 1956 * @li EINA_VALUE_TYPE_USHORT: unsigned short
1930 * @li EINA_VALUE_TYPE_UINT: unsigned int 1957 * @li EINA_VALUE_TYPE_UINT: unsigned int
@@ -1979,6 +2006,7 @@ static inline Eina_Bool eina_value_list_insert(Eina_Value *value,
1979 * The variable argument is dependent on chosen subtype. The list for 2006 * The variable argument is dependent on chosen subtype. The list for
1980 * basic types: 2007 * basic types:
1981 * 2008 *
2009 * @li EINA_VALUE_TYPE_ERROR: Eina_Error
1982 * @li EINA_VALUE_TYPE_UCHAR: unsigned char 2010 * @li EINA_VALUE_TYPE_UCHAR: unsigned char
1983 * @li EINA_VALUE_TYPE_USHORT: unsigned short 2011 * @li EINA_VALUE_TYPE_USHORT: unsigned short
1984 * @li EINA_VALUE_TYPE_UINT: unsigned int 2012 * @li EINA_VALUE_TYPE_UINT: unsigned int
@@ -2119,6 +2147,7 @@ static inline Eina_Bool eina_value_list_vappend(Eina_Value *value,
2119 * The pointer type is dependent on chosen value type. The list for 2147 * The pointer type is dependent on chosen value type. The list for
2120 * basic types: 2148 * basic types:
2121 * 2149 *
2150 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
2122 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 2151 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
2123 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 2152 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
2124 * @li EINA_VALUE_TYPE_UINT: unsigned int* 2153 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -2183,6 +2212,7 @@ static inline Eina_Bool eina_value_list_pset(Eina_Value *value,
2183 * The pointer type is dependent on chosen value type. The list for 2212 * The pointer type is dependent on chosen value type. The list for
2184 * basic types: 2213 * basic types:
2185 * 2214 *
2215 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
2186 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 2216 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
2187 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 2217 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
2188 * @li EINA_VALUE_TYPE_UINT: unsigned int* 2218 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -2232,6 +2262,7 @@ static inline Eina_Bool eina_value_list_pget(const Eina_Value *value,
2232 * The pointer type is dependent on chosen value type. The list for 2262 * The pointer type is dependent on chosen value type. The list for
2233 * basic types: 2263 * basic types:
2234 * 2264 *
2265 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
2235 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 2266 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
2236 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 2267 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
2237 * @li EINA_VALUE_TYPE_UINT: unsigned int* 2268 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -2289,6 +2320,7 @@ static inline Eina_Bool eina_value_list_pinsert(Eina_Value *value,
2289 * The pointer type is dependent on chosen value type. The list for 2320 * The pointer type is dependent on chosen value type. The list for
2290 * basic types: 2321 * basic types:
2291 * 2322 *
2323 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
2292 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 2324 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
2293 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 2325 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
2294 * @li EINA_VALUE_TYPE_UINT: unsigned int* 2326 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -2444,6 +2476,7 @@ static inline Eina_Bool eina_value_hash_del(Eina_Value *value,
2444 * The variable argument is dependent on chosen subtype. The list for 2476 * The variable argument is dependent on chosen subtype. The list for
2445 * basic types: 2477 * basic types:
2446 * 2478 *
2479 * @li EINA_VALUE_TYPE_ERROR: Eina_Error
2447 * @li EINA_VALUE_TYPE_UCHAR: unsigned char 2480 * @li EINA_VALUE_TYPE_UCHAR: unsigned char
2448 * @li EINA_VALUE_TYPE_USHORT: unsigned short 2481 * @li EINA_VALUE_TYPE_USHORT: unsigned short
2449 * @li EINA_VALUE_TYPE_UINT: unsigned int 2482 * @li EINA_VALUE_TYPE_UINT: unsigned int
@@ -2497,6 +2530,7 @@ static inline Eina_Bool eina_value_hash_set(Eina_Value *value,
2497 * The variable argument is dependent on chosen subtype. The list for 2530 * The variable argument is dependent on chosen subtype. The list for
2498 * basic types: 2531 * basic types:
2499 * 2532 *
2533 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
2500 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 2534 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
2501 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 2535 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
2502 * @li EINA_VALUE_TYPE_UINT: unsigned int* 2536 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -2583,6 +2617,7 @@ static inline Eina_Bool eina_value_hash_vget(const Eina_Value *value,
2583 * The pointer type is dependent on chosen value type. The list for 2617 * The pointer type is dependent on chosen value type. The list for
2584 * basic types: 2618 * basic types:
2585 * 2619 *
2620 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
2586 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 2621 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
2587 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 2622 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
2588 * @li EINA_VALUE_TYPE_UINT: unsigned int* 2623 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -2639,6 +2674,7 @@ static inline Eina_Bool eina_value_hash_pset(Eina_Value *value,
2639 * The pointer type is dependent on chosen value type. The list for 2674 * The pointer type is dependent on chosen value type. The list for
2640 * basic types: 2675 * basic types:
2641 * 2676 *
2677 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
2642 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 2678 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
2643 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 2679 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
2644 * @li EINA_VALUE_TYPE_UINT: unsigned int* 2680 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -2984,6 +3020,7 @@ static inline Eina_Bool eina_value_struct_setup(Eina_Value *value,
2984 * The variable argument is dependent on chosen member type. The list 3020 * The variable argument is dependent on chosen member type. The list
2985 * for basic types: 3021 * for basic types:
2986 * 3022 *
3023 * @li EINA_VALUE_TYPE_ERROR: Eina_Error
2987 * @li EINA_VALUE_TYPE_UCHAR: unsigned char 3024 * @li EINA_VALUE_TYPE_UCHAR: unsigned char
2988 * @li EINA_VALUE_TYPE_USHORT: unsigned short 3025 * @li EINA_VALUE_TYPE_USHORT: unsigned short
2989 * @li EINA_VALUE_TYPE_UINT: unsigned int 3026 * @li EINA_VALUE_TYPE_UINT: unsigned int
@@ -3052,6 +3089,7 @@ static inline Eina_Bool eina_value_struct_set(Eina_Value *value,
3052 * The variable argument is dependent on chosen member type. The list 3089 * The variable argument is dependent on chosen member type. The list
3053 * for basic types: 3090 * for basic types:
3054 * 3091 *
3092 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
3055 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 3093 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
3056 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 3094 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
3057 * @li EINA_VALUE_TYPE_UINT: unsigned int* 3095 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -3154,6 +3192,7 @@ static inline Eina_Bool eina_value_struct_vget(const Eina_Value *value,
3154 * The pointer type is dependent on chosen value type. The list for 3192 * The pointer type is dependent on chosen value type. The list for
3155 * basic types: 3193 * basic types:
3156 * 3194 *
3195 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
3157 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 3196 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
3158 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 3197 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
3159 * @li EINA_VALUE_TYPE_UINT: unsigned int* 3198 * @li EINA_VALUE_TYPE_UINT: unsigned int*
@@ -3226,6 +3265,7 @@ static inline Eina_Bool eina_value_struct_pset(Eina_Value *value,
3226 * The pointer type is dependent on chosen value type. The list for 3265 * The pointer type is dependent on chosen value type. The list for
3227 * basic types: 3266 * basic types:
3228 * 3267 *
3268 * @li EINA_VALUE_TYPE_ERROR: Eina_Error*
3229 * @li EINA_VALUE_TYPE_UCHAR: unsigned char* 3269 * @li EINA_VALUE_TYPE_UCHAR: unsigned char*
3230 * @li EINA_VALUE_TYPE_USHORT: unsigned short* 3270 * @li EINA_VALUE_TYPE_USHORT: unsigned short*
3231 * @li EINA_VALUE_TYPE_UINT: unsigned int* 3271 * @li EINA_VALUE_TYPE_UINT: unsigned int*