forked from enlightenment/efl
eet: add EET_DATA_DESCRIPTOR_ADD_LIST_STRING helper.
SVN revision: 60188
This commit is contained in:
parent
04207db6b7
commit
5e8d050184
|
@ -505,3 +505,7 @@
|
||||||
2011-05-23 Vincent Torri
|
2011-05-23 Vincent Torri
|
||||||
|
|
||||||
* Fix compilation with libjpeg 8 on Windows.
|
* Fix compilation with libjpeg 8 on Windows.
|
||||||
|
|
||||||
|
2011-06-10 Cedric BAIL
|
||||||
|
|
||||||
|
* Add EET_DATA_DESCRIPTOR_ADD_LIST_STRING helper to define List of char *.
|
||||||
|
|
|
@ -2704,6 +2704,29 @@ eet_data_descriptor_encode(Eet_Data_Descriptor *edd,
|
||||||
0, /* 0, */ NULL, subtype); \
|
0, /* 0, */ NULL, subtype); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a linked list of string to a data descriptor
|
||||||
|
* @param edd The data descriptor to add the type to.
|
||||||
|
* @param struct_type The type of the struct.
|
||||||
|
* @param name The string name to use to encode/decode this member
|
||||||
|
* (must be a constant global and never change).
|
||||||
|
* @param member The struct member itself to be encoded.
|
||||||
|
*
|
||||||
|
* This macro lets you easily add a linked list of char *. All the
|
||||||
|
* parameters are the same as for EET_DATA_DESCRIPTOR_ADD_BASIC().
|
||||||
|
*
|
||||||
|
* @since 1.5.0
|
||||||
|
* @ingroup Eet_Data_Group
|
||||||
|
*/
|
||||||
|
#define EET_DATA_DESCRIPTOR_ADD_LIST_STRING(edd, struct_type, name, member) \
|
||||||
|
do { \
|
||||||
|
struct_type ___ett; \
|
||||||
|
eet_data_descriptor_element_add(edd, name, EET_T_STRING, EET_G_LIST, \
|
||||||
|
(char *)(& (___ett.member)) - \
|
||||||
|
(char *)(& (___ett)), \
|
||||||
|
0, /* 0, */ NULL, NULL); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a hash type to a data descriptor
|
* Add a hash type to a data descriptor
|
||||||
* @param edd The data descriptor to add the type to.
|
* @param edd The data descriptor to add the type to.
|
||||||
|
|
Loading…
Reference in New Issue