\hypertarget{group__Eet__Data__Group}{}\doxysection{Eet Data Serialization}
\label{group__Eet__Data__Group}\index{Eet Data Serialization@{Eet Data Serialization}}


Convenience functions to serialize and parse complex data structures to binary blobs.  


\doxysubsection*{Modules}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eet__Data__Cipher__Group}{Eet Data Serialization using A Ciphers}}
\begin{DoxyCompactList}\small\item\em Most of the \mbox{\hyperlink{group__Eet__Data__Group}{Eet Data Serialization}} have alternative versions that accounts for ciphers to protect their content. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}}
\begin{DoxyCompactList}\small\item\em Instructs Eet about memory management for different needs under serialization and parse process. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}\label{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+UNKNOW}~0
\begin{DoxyCompactList}\small\item\em Unknown data encoding type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga74d89b710e845c708ae7b0ca98016957}\label{group__Eet__Data__Group_ga74d89b710e845c708ae7b0ca98016957}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+CHAR}~1
\begin{DoxyCompactList}\small\item\em Data type\+: char. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gacf536867efdf1164af97f0d57bc43894}\label{group__Eet__Data__Group_gacf536867efdf1164af97f0d57bc43894}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+SHORT}~2
\begin{DoxyCompactList}\small\item\em Data type\+: short. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga4e196733795867f14c6e387af7287baa}\label{group__Eet__Data__Group_ga4e196733795867f14c6e387af7287baa}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+INT}~3
\begin{DoxyCompactList}\small\item\em Data type\+: int. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gabdf13bbc0df675742aef8e1e87ccb1ef}\label{group__Eet__Data__Group_gabdf13bbc0df675742aef8e1e87ccb1ef}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+LONG\+\_\+\+LONG}~4
\begin{DoxyCompactList}\small\item\em Data type\+: long long. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga447b1b41e09b24ac6b3fbbac8d3efb30}\label{group__Eet__Data__Group_ga447b1b41e09b24ac6b3fbbac8d3efb30}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+FLOAT}~5
\begin{DoxyCompactList}\small\item\em Data type\+: float. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gac2d8336b1127fd382c65416cf45cd3e8}\label{group__Eet__Data__Group_gac2d8336b1127fd382c65416cf45cd3e8}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+DOUBLE}~6
\begin{DoxyCompactList}\small\item\em Data type\+: double. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga09a1341cc158fda0ba60ad2386ecd795}\label{group__Eet__Data__Group_ga09a1341cc158fda0ba60ad2386ecd795}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+UCHAR}~7
\begin{DoxyCompactList}\small\item\em Data type\+: unsigned char. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga8811200857e44566037ff3871cd05b12}\label{group__Eet__Data__Group_ga8811200857e44566037ff3871cd05b12}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+USHORT}~8
\begin{DoxyCompactList}\small\item\em Data type\+: unsigned short. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gacf6a3c9f06e10e20be5b02cd8c6a220b}\label{group__Eet__Data__Group_gacf6a3c9f06e10e20be5b02cd8c6a220b}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+UINT}~9
\begin{DoxyCompactList}\small\item\em Data type\+: unsigned int. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gac984c4b3f0ad353a14679cf39a70ebd7}\label{group__Eet__Data__Group_gac984c4b3f0ad353a14679cf39a70ebd7}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+ULONG\+\_\+\+LONG}~10
\begin{DoxyCompactList}\small\item\em Data type\+: unsigned long long. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga0d2cf409bf3f151156d74d18ac59e3d1}\label{group__Eet__Data__Group_ga0d2cf409bf3f151156d74d18ac59e3d1}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+STRING}~11
\begin{DoxyCompactList}\small\item\em Data type\+: char $\ast$. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga3331b98e4c2a0e7336a0f542e88789bd}\label{group__Eet__Data__Group_ga3331b98e4c2a0e7336a0f542e88789bd}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+INLINED\+\_\+\+STRING}~12
\begin{DoxyCompactList}\small\item\em Data type\+: char $\ast$ (but compressed inside the resulting eet) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga9f1da67bf8dca0b19012b3a38e5a1a41}\label{group__Eet__Data__Group_ga9f1da67bf8dca0b19012b3a38e5a1a41}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+NULL}~13
\begin{DoxyCompactList}\small\item\em Data type\+: (void $\ast$) (only use it if you know why) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gac4e1fc36a3042aec9e90832046994a08}\label{group__Eet__Data__Group_gac4e1fc36a3042aec9e90832046994a08}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+F32\+P32}~14
\begin{DoxyCompactList}\small\item\em Data type\+: fixed point 32.\+32. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gac8050f11d766b6682273c6c250e2c163}\label{group__Eet__Data__Group_gac8050f11d766b6682273c6c250e2c163}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+F16\+P16}~15
\begin{DoxyCompactList}\small\item\em Data type\+: fixed point 16.\+16. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga844a1125845d282948fe8081c983975c}\label{group__Eet__Data__Group_ga844a1125845d282948fe8081c983975c}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+F8\+P24}~16
\begin{DoxyCompactList}\small\item\em Data type\+: fixed point 8.\+24. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gacee130040e46778d42d5dc9e9de07909}{EET\+\_\+\+T\+\_\+\+VALUE}}~17
\begin{DoxyCompactList}\small\item\em Data type\+: pointer to Eina\+\_\+\+Value. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga6f7f811187af5c15535ca56c69bd5f7e}\label{group__Eet__Data__Group_ga6f7f811187af5c15535ca56c69bd5f7e}} 
\#define {\bfseries EET\+\_\+\+T\+\_\+\+LAST}~18
\begin{DoxyCompactList}\small\item\em Last data type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gae97a13f08f6f48335a60e2a910aec41f}\label{group__Eet__Data__Group_gae97a13f08f6f48335a60e2a910aec41f}} 
\#define {\bfseries EET\+\_\+\+G\+\_\+\+UNKNOWN}~100
\begin{DoxyCompactList}\small\item\em Unknown group data encoding type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga0db274e50f3cc8c9e4844d94d63a4433}\label{group__Eet__Data__Group_ga0db274e50f3cc8c9e4844d94d63a4433}} 
\#define {\bfseries EET\+\_\+\+G\+\_\+\+ARRAY}~101
\begin{DoxyCompactList}\small\item\em Fixed size array group type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gaa1ca41d2def763d6f5ce4d94eaf2581d}\label{group__Eet__Data__Group_gaa1ca41d2def763d6f5ce4d94eaf2581d}} 
\#define {\bfseries EET\+\_\+\+G\+\_\+\+VAR\+\_\+\+ARRAY}~102
\begin{DoxyCompactList}\small\item\em Variable size array group type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gadcfddbc1928d1068eba93326201c6232}\label{group__Eet__Data__Group_gadcfddbc1928d1068eba93326201c6232}} 
\#define {\bfseries EET\+\_\+\+G\+\_\+\+LIST}~103
\begin{DoxyCompactList}\small\item\em Linked list group type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gab4cb1f8b97b17e36694fbe2f0ced86ce}\label{group__Eet__Data__Group_gab4cb1f8b97b17e36694fbe2f0ced86ce}} 
\#define {\bfseries EET\+\_\+\+G\+\_\+\+HASH}~104
\begin{DoxyCompactList}\small\item\em Hash table group type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga52795c9c05702fbcd4e7df2952b492da}\label{group__Eet__Data__Group_ga52795c9c05702fbcd4e7df2952b492da}} 
\#define {\bfseries EET\+\_\+\+G\+\_\+\+UNION}~105
\begin{DoxyCompactList}\small\item\em Union group type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga2c61448d5d371152de980526819404dd}\label{group__Eet__Data__Group_ga2c61448d5d371152de980526819404dd}} 
\#define {\bfseries EET\+\_\+\+G\+\_\+\+VARIANT}~106
\begin{DoxyCompactList}\small\item\em Selectable subtype group. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga76f94c1520fc351ad2b847153795b41d}{EET\+\_\+\+G\+\_\+\+UNKNOWN\+\_\+\+NESTED}}~107
\begin{DoxyCompactList}\small\item\em Unknown nested group type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga6f151c2439d3149c7efde702165f88e6}\label{group__Eet__Data__Group_ga6f151c2439d3149c7efde702165f88e6}} 
\#define {\bfseries EET\+\_\+\+G\+\_\+\+LAST}~108
\begin{DoxyCompactList}\small\item\em Last group type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gac35ee01ce34edb6c37ca07d4603f20d8}\label{group__Eet__Data__Group_gac35ee01ce34edb6c37ca07d4603f20d8}} 
\#define {\bfseries EET\+\_\+\+I\+\_\+\+LIMIT}~128
\begin{DoxyCompactList}\small\item\em Other type exist but are reserved for internal purpose. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga61a090586eff90415b429f1017acf8a7}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+VERSION}}~4
\begin{DoxyCompactList}\small\item\em The version of \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} at the time of the distribution of the sources. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga941b1fcd6c6c72221d9390f9a0ed751c}{EET\+\_\+\+EINA\+\_\+\+STREAM\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+SET}}(clas,  type)~  (\mbox{\hyperlink{group__Eet__Data__Group_gac1fe86198291a7acb6642053301f317f}{eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set}}(clas, sizeof ($\ast$(clas)), \# type, sizeof(type)))
\begin{DoxyCompactList}\small\item\em This macro is an helper that set all the parameter of an Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class correctly when you use Eina data type with stream. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga0bf94c07d8e69cfaac8dd2d615d7542c}{EET\+\_\+\+EINA\+\_\+\+FILE\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+SET}}(clas,  type)~  (\mbox{\hyperlink{group__Eet__Data__Group_ga61af07cced82f787f3c52d52834491c3}{eet\+\_\+eina\+\_\+file\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set}}(clas, sizeof ($\ast$(clas)), \# type, sizeof(type)))
\begin{DoxyCompactList}\small\item\em This macro is an helper that set all the parameter of an Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class correctly when you use Eina data type with file. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC}}(edd,  struct\+\_\+type,  name,  member,  type)
\begin{DoxyCompactList}\small\item\em Adds a basic data element to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB}}(edd,  struct\+\_\+type,  name,  member,  subtype)
\begin{DoxyCompactList}\small\item\em Adds a sub-\/element type to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gae89d75a5b3a035161d937aa388f30e17}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB\+\_\+\+NESTED}}(edd,  struct\+\_\+type,  name,  member,  subtype)
\begin{DoxyCompactList}\small\item\em Adds a nested sub-\/element type to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gabb4c7833ba053f2322e6b667a9ec7f04}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST}}(edd,  struct\+\_\+type,  name,  member,  subtype)
\begin{DoxyCompactList}\small\item\em Adds a linked list type to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga56b290f4a8d3749daa88134aeb2317fb}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST\+\_\+\+STRING}}(edd,  struct\+\_\+type,  name,  member)
\begin{DoxyCompactList}\small\item\em Adds a linked list of string to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gadeae061cf848d4d0bce89acdfc570848}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST\+\_\+\+UINT}}(edd,  struct\+\_\+type,  name,  member)
\begin{DoxyCompactList}\small\item\em Adds a linked list of unsigned integers to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gad5e348ead4ba0b441c1e020f9bf23365}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+HASH}}(edd,  struct\+\_\+type,  name,  member,  subtype)
\begin{DoxyCompactList}\small\item\em Adds a hash type to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gad5e0db408c74f1cf7b54caa02fef4df1}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+HASH\+\_\+\+STRING}}(edd,  struct\+\_\+type,  name,  member)
\begin{DoxyCompactList}\small\item\em Adds a hash of string to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga95abc7335a5da444f307da63f29ad167}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+HASH\+\_\+\+VALUE}}(edd,  struct\+\_\+type,  name,  member)
\begin{DoxyCompactList}\small\item\em Adds a hash of generic value storage to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga7866d1986ed8869b52c665cbeb854c8e}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC\+\_\+\+ARRAY}}(edd,  struct\+\_\+type,  name,  member,  type)
\begin{DoxyCompactList}\small\item\em Adds an array of basic data elements to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga9b5f2daab54e97f710b108b7d45fb535}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC\+\_\+\+VAR\+\_\+\+ARRAY}}(edd,  struct\+\_\+type,  name,  member,  type)
\begin{DoxyCompactList}\small\item\em Adds a variable array of basic data elements to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gabc903baa4d5dc50a98f5e1a68d66fd2b}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+ARRAY}}(edd,  struct\+\_\+type,  name,  member,  subtype)
\begin{DoxyCompactList}\small\item\em Adds a fixed size array type to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga7adad32d2eba76566533353632f00ae4}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+VAR\+\_\+\+ARRAY}}(edd,  struct\+\_\+type,  name,  member,  subtype)
\begin{DoxyCompactList}\small\item\em Adds a variable size array type to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga7425aa544951fa82db3015ce96abedfb}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+VAR\+\_\+\+ARRAY\+\_\+\+STRING}}(edd,  struct\+\_\+type,  name,  member)
\begin{DoxyCompactList}\small\item\em Adds a variable size array type to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga07b711dca3d4bcaa0ccb8ced48341b90}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+UNION}}(edd,  struct\+\_\+type,  name,  member,  type\+\_\+member,  unified\+\_\+type)
\begin{DoxyCompactList}\small\item\em Adds an union type to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_ga8851a40b130061262a8dd009f0457a65}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+VARIANT}}(edd,  struct\+\_\+type,  name,  member,  type\+\_\+member,  unified\+\_\+type)
\begin{DoxyCompactList}\small\item\em Adds a automatically selectable type to a data descriptor. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gad0daa543d93a64add80961ae5387d45a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+MAPPING}}(unified\+\_\+type,  name,  subtype)
\begin{DoxyCompactList}\small\item\em Adds a mapping to a data descriptor that will be used by union, variant or inherited type. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eet__Data__Group_gaaf153807a88cd2c3483c5c34bb920a95}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+MAPPING\+\_\+\+BASIC}}(unified\+\_\+type,  name,  basic\+\_\+type)
\begin{DoxyCompactList}\small\item\em Adds a mapping of a basic type to a data descriptor that will be used by a union type. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}}
\begin{DoxyCompactList}\small\item\em Opaque handle that have information on a type members. \end{DoxyCompactList}\item 
typedef struct \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}}
\begin{DoxyCompactList}\small\item\em Instructs Eet about memory management for different needs under serialization and parse process. \end{DoxyCompactList}\item 
typedef int($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_gaab1358cb471dce20be9da6febbdf8327}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach\+\_\+\+Callback\+\_\+\+Callback}}) (void $\ast$h, const char $\ast$k, void $\ast$dt, void $\ast$fdt)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach\+\_\+\+Callback. \end{DoxyCompactList}\item 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga894af1ef8c006fc48235d8b48755e3d8}{Eet\+\_\+\+Descriptor\+\_\+\+Mem\+\_\+\+Alloc\+\_\+\+Callback}}) (size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Mem\+\_\+\+Alloc. \end{DoxyCompactList}\item 
typedef void($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_gadc11123034dfc44c5bc31c6f5bdb55fb}{Eet\+\_\+\+Descriptor\+\_\+\+Mem\+\_\+\+Free\+\_\+\+Callback}}) (void $\ast$mem)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Mem\+\_\+\+Alloc. \end{DoxyCompactList}\item 
typedef char $\ast$($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga014b92bba17d33ea41e31ebfd9a23a8b}{Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Alloc\+\_\+\+Callback}}) (const char $\ast$str)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Alloc. \end{DoxyCompactList}\item 
typedef void($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga6e1c79f2b15a0315dd33c05d99cb065a}{Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Free\+\_\+\+Callback}}) (const char $\ast$str)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Free. \end{DoxyCompactList}\item 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga4aef6ac18690983e6d608d0844b43e5d}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Next\+\_\+\+Callback}}) (void $\ast$l)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Next. \end{DoxyCompactList}\item 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga7e6b656ac984d44d0e736655c45982de}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Append\+\_\+\+Callback}}) (void $\ast$l, void $\ast$d)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Append. \end{DoxyCompactList}\item 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga1a75ebbc7a4d8bab9971974335599b04}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Data\+\_\+\+Callback}}) (void $\ast$l)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Data. \end{DoxyCompactList}\item 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga97f9bf8be3bcd13699c4890487bba66c}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Free\+\_\+\+Callback}}) (void $\ast$l)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Free. \end{DoxyCompactList}\item 
typedef void($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga530125fcbeb48fb675d020f51b839151}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach\+\_\+\+Callback}}) (void $\ast$h, \mbox{\hyperlink{group__Eet__Data__Group_gaab1358cb471dce20be9da6febbdf8327}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach\+\_\+\+Callback\+\_\+\+Callback}} func, void $\ast$fdt)
\begin{DoxyCompactList}\small\item\em Callback for Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach. \end{DoxyCompactList}\item 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga94d8c39d01f0c9064713eeb0a18dc6d2}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Add\+\_\+\+Callback}}) (void $\ast$h, const char $\ast$k, void $\ast$d)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Add. \end{DoxyCompactList}\item 
typedef void($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga09d99991df39953b4b28de202f3109ab}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Free\+\_\+\+Callback}}) (void $\ast$h)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Free. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eet__Data__Group_ga2bbe0cf40a4a59f4d2c8ca9d1c853764}\label{group__Eet__Data__Group_ga2bbe0cf40a4a59f4d2c8ca9d1c853764}} 
typedef char $\ast$($\ast$ {\bfseries Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Direct\+\_\+\+Alloc\+\_\+\+Callback}) (const char $\ast$str)
\item 
\mbox{\Hypertarget{group__Eet__Data__Group_gae0d743623faa4f1bffa8c8c7af4d3b54}\label{group__Eet__Data__Group_gae0d743623faa4f1bffa8c8c7af4d3b54}} 
typedef void($\ast$ {\bfseries Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Direct\+\_\+\+Free\+\_\+\+Callback}) (const char $\ast$str)
\item 
typedef const char $\ast$($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_gafd67014abf81fb9ff949f32db811253b}{Eet\+\_\+\+Descriptor\+\_\+\+Type\+\_\+\+Get\+\_\+\+Callback}}) (const void $\ast$data, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} $\ast$unknow)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Type\+\_\+\+Get. \end{DoxyCompactList}\item 
typedef \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_gad98f354bc1af39c65c306a2d6905879c}{Eet\+\_\+\+Descriptor\+\_\+\+Type\+\_\+\+Set\+\_\+\+Callback}}) (const char $\ast$type, void $\ast$data, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} unknow)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Type\+\_\+\+Set. \end{DoxyCompactList}\item 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga1782d84edeff89252c1fbaece4244c26}{Eet\+\_\+\+Descriptor\+\_\+\+Array\+\_\+\+Alloc\+\_\+\+Callback}}) (size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Array\+\_\+\+Alloc. \end{DoxyCompactList}\item 
typedef void($\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga466313985fc95944629db2a1d2edf08b}{Eet\+\_\+\+Descriptor\+\_\+\+Array\+\_\+\+Free\+\_\+\+Callback}}) (void $\ast$mem)
\begin{DoxyCompactList}\small\item\em Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Array\+\_\+\+Free. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Types__Group_gad5b2116495471db12a34bab9a34edfaa}{EINA\+\_\+\+DEPRECATED}} EAPI \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga3e5530ce47cc9562b9f86e2e89ff503a}{eet\+\_\+data\+\_\+descriptor\+\_\+new}} (const char $\ast$name, int size, \mbox{\hyperlink{group__Eet__Data__Group_ga4aef6ac18690983e6d608d0844b43e5d}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Next\+\_\+\+Callback}} func\+\_\+list\+\_\+next, \mbox{\hyperlink{group__Eet__Data__Group_ga7e6b656ac984d44d0e736655c45982de}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Append\+\_\+\+Callback}} func\+\_\+list\+\_\+append, \mbox{\hyperlink{group__Eet__Data__Group_ga1a75ebbc7a4d8bab9971974335599b04}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Data\+\_\+\+Callback}} func\+\_\+list\+\_\+data, \mbox{\hyperlink{group__Eet__Data__Group_ga97f9bf8be3bcd13699c4890487bba66c}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Free\+\_\+\+Callback}} func\+\_\+list\+\_\+free, \mbox{\hyperlink{group__Eet__Data__Group_ga530125fcbeb48fb675d020f51b839151}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach\+\_\+\+Callback}} func\+\_\+hash\+\_\+foreach, \mbox{\hyperlink{group__Eet__Data__Group_ga94d8c39d01f0c9064713eeb0a18dc6d2}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Add\+\_\+\+Callback}} func\+\_\+hash\+\_\+add, \mbox{\hyperlink{group__Eet__Data__Group_ga09d99991df39953b4b28de202f3109ab}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Free\+\_\+\+Callback}} func\+\_\+hash\+\_\+free)
\begin{DoxyCompactList}\small\item\em Creates a new empty data structure descriptor. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga5c2ad8edc9910f201b0dcbdbc5cc2694}{eet\+\_\+data\+\_\+descriptor\+\_\+stream\+\_\+new}} (const \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} $\ast$eddc)
\begin{DoxyCompactList}\small\item\em This function creates a new data descriptor and returns a handle to the new data descriptor. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$ \mbox{\hyperlink{group__Eet__Data__Group_gaa613c638dfb72d3f9bd2bd1d4c1bf844}{eet\+\_\+data\+\_\+descriptor\+\_\+file\+\_\+new}} (const \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} $\ast$eddc)
\begin{DoxyCompactList}\small\item\em This function creates a new data descriptor and returns a handle to the new data descriptor. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eet__Data__Group_gac1fe86198291a7acb6642053301f317f}{eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set}} (\mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} $\ast$eddc, unsigned int eddc\+\_\+size, const char $\ast$name, int size)
\begin{DoxyCompactList}\small\item\em This function is an helper that set all the parameters of an Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class correctly when you use Eina data type with a stream. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eet__Data__Group_ga61af07cced82f787f3c52d52834491c3}{eet\+\_\+eina\+\_\+file\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set}} (\mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} $\ast$eddc, unsigned int eddc\+\_\+size, const char $\ast$name, int size)
\begin{DoxyCompactList}\small\item\em This function is an helper that set all the parameter of an Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class correctly when you use Eina data type with a file. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Eet__Data__Group_ga3e2b601720973d0e1f4683768a593c4d}{eet\+\_\+data\+\_\+descriptor\+\_\+free}} (\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$edd)
\begin{DoxyCompactList}\small\item\em This function frees a data descriptor when it is not needed anymore. \end{DoxyCompactList}\item 
EAPI const char $\ast$ \mbox{\hyperlink{group__Eet__Data__Group_gafb2ec7b42409c49ca80b0f83716412e7}{eet\+\_\+data\+\_\+descriptor\+\_\+name\+\_\+get}} (const \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$edd)
\begin{DoxyCompactList}\small\item\em This function returns the name of a data descriptor. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Eet__Data__Group_ga450fd478c0c2531a5d2beb4f1af7cd34}{eet\+\_\+data\+\_\+descriptor\+\_\+element\+\_\+add}} (\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$edd, const char $\ast$name, int type, int group\+\_\+type, int offset, int count, const char $\ast$counter\+\_\+name, \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$subtype)
\begin{DoxyCompactList}\small\item\em This function is an internal used by macros. \end{DoxyCompactList}\item 
EAPI void $\ast$ \mbox{\hyperlink{group__Eet__Data__Group_ga4c09f4dfb051baabc0c0551ea98b6830}{eet\+\_\+data\+\_\+read}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$edd, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Reads a data structure from an eet file and decodes it. \end{DoxyCompactList}\item 
EAPI int \mbox{\hyperlink{group__Eet__Data__Group_gac66d1c49e3490bc5d803982d833ff8aa}{eet\+\_\+data\+\_\+write}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$edd, const char $\ast$name, const void $\ast$data, int compress)
\begin{DoxyCompactList}\small\item\em Writes a data structure from memory and store in an eet file. \end{DoxyCompactList}\item 
EAPI int \mbox{\hyperlink{group__Eet__Data__Group_ga4160a247c086955b4734af896b6fd270}{eet\+\_\+data\+\_\+text\+\_\+dump}} (const void $\ast$data\+\_\+in, int size\+\_\+in, Eet\+\_\+\+Dump\+\_\+\+Callback dumpfunc, void $\ast$dumpdata)
\begin{DoxyCompactList}\small\item\em Dumps an eet encoded data structure into ascii text. \end{DoxyCompactList}\item 
EAPI void $\ast$ \mbox{\hyperlink{group__Eet__Data__Group_gad9bc93de70df6130fad97f6f967212a5}{eet\+\_\+data\+\_\+text\+\_\+undump}} (const char $\ast$text, int textlen, int $\ast$size\+\_\+ret)
\begin{DoxyCompactList}\small\item\em Takes an ascii encoding from \mbox{\hyperlink{group__Eet__Data__Group_ga4160a247c086955b4734af896b6fd270}{eet\+\_\+data\+\_\+text\+\_\+dump()}} and re-\/encode in binary. \end{DoxyCompactList}\item 
EAPI int \mbox{\hyperlink{group__Eet__Data__Group_ga33b90cc41fe0e6fffc6b4fb0c8c62a99}{eet\+\_\+data\+\_\+dump}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, const char $\ast$name, Eet\+\_\+\+Dump\+\_\+\+Callback dumpfunc, void $\ast$dumpdata)
\begin{DoxyCompactList}\small\item\em Dumps an eet encoded data structure from an eet file into ascii text. \end{DoxyCompactList}\item 
EAPI int \mbox{\hyperlink{group__Eet__Data__Group_gafb1d3207c31e349ed184645e21aa838d}{eet\+\_\+data\+\_\+undump}} (\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$ef, const char $\ast$name, const char $\ast$text, int textlen, int compress)
\begin{DoxyCompactList}\small\item\em Takes an ascii encoding from \mbox{\hyperlink{group__Eet__Data__Group_ga33b90cc41fe0e6fffc6b4fb0c8c62a99}{eet\+\_\+data\+\_\+dump()}} and re-\/encode in binary. \end{DoxyCompactList}\item 
EAPI void $\ast$ \mbox{\hyperlink{group__Eet__Data__Group_gaa050d172c60add6af4bbc30fc672f960}{eet\+\_\+data\+\_\+descriptor\+\_\+decode}} (\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$edd, const void $\ast$data\+\_\+in, int size\+\_\+in)
\begin{DoxyCompactList}\small\item\em Decodes a data structure from an arbitrary location in memory. \end{DoxyCompactList}\item 
EAPI void $\ast$ \mbox{\hyperlink{group__Eet__Data__Group_gac9b29a0c31eabcfb0e660946cdd49dc5}{eet\+\_\+data\+\_\+descriptor\+\_\+encode}} (\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$edd, const void $\ast$data\+\_\+in, int $\ast$size\+\_\+ret)
\begin{DoxyCompactList}\small\item\em Encodes a dsata struct to memory and return that encoded data. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Convenience functions to serialize and parse complex data structures to binary blobs. 

While Eet core just handles binary blobs, it is often required to save some structured data of different types, such as strings, integers, lists, hashes and so on.

Eet can serialize and then parse data types given some construction instructions. These are defined in two levels\+:


\begin{DoxyItemize}
\item \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} to tell generic memory handling, such as the size of the type, how to allocate memory, strings, lists, hashes and so on.
\item \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} to tell inside such type, the members and their offsets inside the memory blob, their types and names. These members can be simple types or other \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}}, allowing hierarchical types to be defined.
\end{DoxyItemize}

Given that C provides no introspection, this process can be quite cumbersome, so we provide lots of macros and convenience functions to aid creating the types.

We make now a quick overview of some of the most commonly used elements of this part of the library. A simple example of a configuration system will work as a somewhat real life example that is still simple enough to follow. Only the relevant sections will be shown here, but you can get the full code \mbox{\hyperlink{eet-data-simple_8c-example}{here}}.

Ignoring the included headers, we\textquotesingle{}ll begin by defining our configuration struct.  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ version;\ \textcolor{comment}{//\ it\ is\ recommended\ to\ use\ versioned\ configuration!}}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ \ *name;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ \ \ \ \ \ \ \ \ \ id;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ \ \ \ \ \ \ \ \ \ not\_saved\_value;\ \textcolor{comment}{//\ example\ of\ not\ saved\ data\ inside!}}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}}\ \ \ \ enabled;}
\DoxyCodeLine{\}\ My\_Conf\_Type;}

\end{DoxyCodeInclude}
 When using Eet, you don\textquotesingle{}t think in matters of what data the program needs to run and which you would like to store. It\textquotesingle{}s all the same and if it makes more sense to keep them together, it\textquotesingle{}s perfectly fine to do so. At the time of telling Eet how your data is comprised you can leave out the things that are runtime only and let Eet take care of the rest for you.

The key used to store the config follows, as well as the variable used to store our data descriptor. This last one is very important. It\textquotesingle{}s the one thing that Eet will use to identify your data, both at the time of writing it to the file and when loading from it. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ MY\_CONF\_FILE\_ENTRY[]\ =\ \textcolor{stringliteral}{"{}config"{}};}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\_Data\_Descriptor}}\ *\_my\_conf\_descriptor;}

\end{DoxyCodeInclude}
 Now we\textquotesingle{}ll see how to create this descriptor, so Eet knows how to handle our data later on. Begin our function by declaring an Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class, which is used to create the actual descriptor. This class contains the name of our data type, its size and several functions that dictate how Eet should handle memory to allocate the necessary bits to bring our data to life. You, as a user, will very hardly set this class\textquotesingle{} contents directly. The most common scenario is to use one of the provided macros that set it using the Eina data types, so that\textquotesingle{}s what we\textquotesingle{}ll be doing across all our examples. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_my\_conf\_descriptor\_init(\textcolor{keywordtype}{void})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class}{Eet\_Data\_Descriptor\_Class}}\ eddc;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ The\ class\ describe\ the\ functions\ to\ use\ to\ create\ the\ type\ and\ its}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ full\ allocated\ size.}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ Eina\ types\ are\ very\ convenient,\ so\ use\ them\ to\ create\ the\ descriptor,}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ so\ we\ get\ eina\_list,\ \ eina\_hash\ and\ eina\_stringshare\ automatically!}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ The\ STREAM\ variant\ is\ better\ for\ configuration\ files\ as\ the\ values}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ will\ likely\ change\ a\ lot.}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ The\ other\ variant,\ FILE,\ is\ good\ for\ caches\ and\ things\ that\ are\ just}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ appended,\ but\ needs\ to\ take\ care\ when\ changing\ strings\ and\ files\ must}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ be\ kept\ open\ so\ mmap()ed\ strings\ will\ be\ kept\ alive.}}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eet__Data__Group_ga941b1fcd6c6c72221d9390f9a0ed751c}{EET\_EINA\_STREAM\_DATA\_DESCRIPTOR\_CLASS\_SET}}(\&eddc,\ My\_Conf\_Type);}
\DoxyCodeLine{\ \ \ \_my\_conf\_descriptor\ =\ \mbox{\hyperlink{group__Eet__Data__Group_ga5c2ad8edc9910f201b0dcbdbc5cc2694}{eet\_data\_descriptor\_stream\_new}}(\&eddc);}

\end{DoxyCodeInclude}
 Now that we have our descriptor, we need to make it describe something. We do so by telling it which members of our struct we want it to know about and their types. The \mbox{\hyperlink{group__Eet__Data__Group_ga450fd478c0c2531a5d2beb4f1af7cd34}{eet\+\_\+data\+\_\+descriptor\+\_\+element\+\_\+add()}} function takes care of this, but it\textquotesingle{}s too cumbersome for normal use, so several macros are provided that make it easier to handle. Even with them, however, code can get very repetitive and it\textquotesingle{}s not uncommon to define custom macros using them to save on typing. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{preprocessor}{\#define\ MY\_CONF\_ADD\_BASIC(member,\ eet\_type)\ \(\backslash\)}}
\DoxyCodeLine{\textcolor{preprocessor}{\ \ EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}}
\DoxyCodeLine{\textcolor{preprocessor}{\ \ \ \ (\_my\_conf\_descriptor,\ My\_Conf\_Type,\ \#\ member,\ member,\ eet\_type)}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ MY\_CONF\_ADD\_BASIC(version,\ \mbox{\hyperlink{group__Eet__Data__Group_gacf6a3c9f06e10e20be5b02cd8c6a220b}{EET\_T\_UINT}});}
\DoxyCodeLine{\ \ \ MY\_CONF\_ADD\_BASIC(name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga0d2cf409bf3f151156d74d18ac59e3d1}{EET\_T\_STRING}});}
\DoxyCodeLine{\ \ \ MY\_CONF\_ADD\_BASIC(\textcolor{keywordtype}{id},\ \mbox{\hyperlink{group__Eet__Data__Group_ga4e196733795867f14c6e387af7287baa}{EET\_T\_INT}});}
\DoxyCodeLine{\ \ \ MY\_CONF\_ADD\_BASIC(enabled,\ \mbox{\hyperlink{group__Eet__Data__Group_ga09a1341cc158fda0ba60ad2386ecd795}{EET\_T\_UCHAR}});}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#undef\ MY\_CONF\_ADD\_BASIC}}
\DoxyCodeLine{\}\ \textcolor{comment}{/*\ \_my\_conf\_descriptor\_init\ */}}

\end{DoxyCodeInclude}
 Now our descriptor knows about the parts of our structure that we are interesting in saving. You can see that not all of them are there, yet Eet will find those that need saving and do the right thing. When loading our data, any non-\/described fields in the structure will be zeroed, so there\textquotesingle{}s no need to worry about garbage memory in them. Refer to the documentation of \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC}} to understand what our macro does.

We are done with our descriptor init function and it\textquotesingle{}s proper to have the relevant shutdown. Proper coding guidelines indiciate that all memory allocated should be freed when the program ends, and since you will most likely keep your descriptor around for the life or your application, it\textquotesingle{}s only right to free it at the end. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_my\_conf\_descriptor\_shutdown(\textcolor{keywordtype}{void})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eet__Data__Group_ga3e2b601720973d0e1f4683768a593c4d}{eet\_data\_descriptor\_free}}(\_my\_conf\_descriptor);}
\DoxyCodeLine{\}\ \textcolor{comment}{/*\ \_my\_conf\_descriptor\_shutdown\ */}}

\end{DoxyCodeInclude}
 Not listed here, but included in the full example are functions to create a blank configuration and free it. The first one will only be used when no file exists to load from, or nothing is found in it, but the latter is used regardless of where our data comes from. Unless you are reading direct data from the Eet file, you will be in charge of freeing anything loaded from it.

Now it\textquotesingle{}s time to look at how we can load our config from some file. Begin by opening the Eet file normally. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{keyword}{static}\ My\_Conf\_Type\ *}
\DoxyCodeLine{\_my\_conf\_new(\textcolor{keywordtype}{void})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ My\_Conf\_Type\ *my\_conf\ =\ calloc(1,\ \textcolor{keyword}{sizeof}(My\_Conf\_Type));}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!my\_conf)}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ fprintf(stderr,\ \textcolor{stringliteral}{"{}ERROR:\ could\ not\ calloc\ My\_Conf\_Type\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ NULL;}
\DoxyCodeLine{\ \ \ \ \ \}}

\end{DoxyCodeInclude}
 And now we need to read the data from the file and decode it using our descriptor. Fortunately, that\textquotesingle{}s all done in one single step. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ my\_conf-\/>version\ =\ 0x112233;}
\DoxyCodeLine{\ \ \ my\_conf-\/>enabled\ =\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}};}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ my\_conf;}
\DoxyCodeLine{\}\ \textcolor{comment}{/*\ \_my\_conf\_new\ */}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_my\_conf\_free(My\_Conf\_Type\ *my\_conf)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5538b4a134987b8a01744fad1a845ba4}{eina\_stringshare\_del}}(my\_conf-\/>name);}
\DoxyCodeLine{\ \ \ free(my\_conf);}
\DoxyCodeLine{\}\ \textcolor{comment}{/*\ \_my\_conf\_free\ */}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ My\_Conf\_Type\ *}
\DoxyCodeLine{\_my\_conf\_load(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *filename)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ My\_Conf\_Type\ *my\_conf;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\_File}}\ *ef\ =\ \mbox{\hyperlink{group__Eet__File__Group_ga675160a758832ee812edf7f64ed30ee6}{eet\_open}}(filename,\ \mbox{\hyperlink{group__Eet__File__Group_ggaa8e1a7af50fefaf15eb2f69543d24998a416f7e9a76b8131a44bbeedb13060c81}{EET\_FILE\_MODE\_READ}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!ef)}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ fprintf(stderr,\ \textcolor{stringliteral}{"{}ERROR:\ could\ not\ open\ '\%s'\ for\ read\(\backslash\)n"{}},\ filename);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ NULL;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ my\_conf\ =\ \mbox{\hyperlink{group__Eet__Data__Group_ga4c09f4dfb051baabc0c0551ea98b6830}{eet\_data\_read}}(ef,\ \_my\_conf\_descriptor,\ MY\_CONF\_FILE\_ENTRY);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!my\_conf)}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keywordflow}{goto}\ end;}

\end{DoxyCodeInclude}
 And that\textquotesingle{}s it for all Eet cares about. But since we are dealing with a common case, as is save and load of user configurations, the next fragment of code shows why we have a version field in our struct, and how you can use it to load older configuration files and update them as needed. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (my\_conf-\/>version\ <\ 0x112233)}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ fprintf(stderr,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}WARNING:\ version\ \%\#x\ was\ too\ old,\ upgrading\ it\ to\ \%\#x\(\backslash\)n"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ my\_conf-\/>version,\ 0x112233);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ my\_conf-\/>version\ =\ 0x112233;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ my\_conf-\/>enabled\ =\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}};}
\DoxyCodeLine{\ \ \ \ \ \}}

\end{DoxyCodeInclude}
 Finally, close the file and return the newly loaded config data. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{}
\DoxyCodeLine{end:}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eet__File__Group_ga1675fef1f6012c1e02ae313d13dc3e03}{eet\_close}}(ef);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ my\_conf;}
\DoxyCodeLine{\}\ \textcolor{comment}{/*\ \_my\_conf\_load\ */}}

\end{DoxyCodeInclude}
 Saving data is just as easy. The full version of the following function includes code to save to a temporary file first, so you can be sure not to lose all your data in the case of a failure mid-\/writing. You can look at it \mbox{\hyperlink{eet-data-simple_8c-example}{here}}. 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}}}
\DoxyCodeLine{\_my\_conf\_save(\textcolor{keyword}{const}\ My\_Conf\_Type\ *my\_conf,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ \ \ \ \ \ \ \ \ *filename)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}}\ ret;}
\DoxyCodeLine{\ \ \ ef\ =\ \mbox{\hyperlink{group__Eet__File__Group_ga675160a758832ee812edf7f64ed30ee6}{eet\_open}}(tmp,\ \mbox{\hyperlink{group__Eet__File__Group_ggaa8e1a7af50fefaf15eb2f69543d24998a8f395f56fba48be007c65be51d799ee9}{EET\_FILE\_MODE\_WRITE}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!ef)}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ fprintf(stderr,\ \textcolor{stringliteral}{"{}ERROR:\ could\ not\ open\ '\%s'\ for\ write\(\backslash\)n"{}},\ tmp);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\_FALSE}};}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ ret\ =\ \mbox{\hyperlink{group__Eet__Data__Group_gac66d1c49e3490bc5d803982d833ff8aa}{eet\_data\_write}}}
\DoxyCodeLine{\ \ \ \ \ \ \ (ef,\ \_my\_conf\_descriptor,\ MY\_CONF\_FILE\_ENTRY,\ my\_conf,\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eet__File__Group_ga1675fef1f6012c1e02ae313d13dc3e03}{eet\_close}}(ef);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ ret;}
\DoxyCodeLine{\}\ \textcolor{comment}{/*\ \_my\_conf\_save\ */}}

\end{DoxyCodeInclude}
 To close, our main function, which doesn\textquotesingle{}t do much. Just take some arguments from the command line with the name of the file to load and another one where to save again. If input file doesn\textquotesingle{}t exist, a new config structure will be created and saved to our output file. 
\begin{DoxyCodeInclude}{0}

\end{DoxyCodeInclude}
 The following is a list of more advanced and detailed examples. \begin{DoxyItemize}
\item \mbox{\hyperlink{eet_data_nested_example}{Nested structures and Eet Data Descriptors}} \item \mbox{\hyperlink{eet_data_file_descriptor}{Advanced use of Eet Data Descriptors}} \item \mbox{\hyperlink{Example_Eet_Data_File_Descriptor_02}{File descriptor data example, with Eet unions and variants}} \item \mbox{\hyperlink{Example_Eet_Data_Cipher_Decipher}{Eet data cipher/decipher example}} \end{DoxyItemize}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{group__Eet__Data__Group_gacee130040e46778d42d5dc9e9de07909}\label{group__Eet__Data__Group_gacee130040e46778d42d5dc9e9de07909}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_T\_VALUE@{EET\_T\_VALUE}}
\index{EET\_T\_VALUE@{EET\_T\_VALUE}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_T\_VALUE}{EET\_T\_VALUE}}
{\footnotesize\ttfamily \#define EET\+\_\+\+T\+\_\+\+VALUE~17}



Data type\+: pointer to Eina\+\_\+\+Value. 

\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_ga76f94c1520fc351ad2b847153795b41d}\label{group__Eet__Data__Group_ga76f94c1520fc351ad2b847153795b41d}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_G\_UNKNOWN\_NESTED@{EET\_G\_UNKNOWN\_NESTED}}
\index{EET\_G\_UNKNOWN\_NESTED@{EET\_G\_UNKNOWN\_NESTED}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_G\_UNKNOWN\_NESTED}{EET\_G\_UNKNOWN\_NESTED}}
{\footnotesize\ttfamily \#define EET\+\_\+\+G\+\_\+\+UNKNOWN\+\_\+\+NESTED~107}



Unknown nested group type. 

\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_ga61a090586eff90415b429f1017acf8a7}\label{group__Eet__Data__Group_ga61a090586eff90415b429f1017acf8a7}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_CLASS\_VERSION@{EET\_DATA\_DESCRIPTOR\_CLASS\_VERSION}}
\index{EET\_DATA\_DESCRIPTOR\_CLASS\_VERSION@{EET\_DATA\_DESCRIPTOR\_CLASS\_VERSION}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_CLASS\_VERSION}{EET\_DATA\_DESCRIPTOR\_CLASS\_VERSION}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+VERSION~4}



The version of \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} at the time of the distribution of the sources. 

One should define this to its version member so it is compatible with abi changes, or at least will not crash with them. \begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_ga941b1fcd6c6c72221d9390f9a0ed751c}\label{group__Eet__Data__Group_ga941b1fcd6c6c72221d9390f9a0ed751c}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_EINA\_STREAM\_DATA\_DESCRIPTOR\_CLASS\_SET@{EET\_EINA\_STREAM\_DATA\_DESCRIPTOR\_CLASS\_SET}}
\index{EET\_EINA\_STREAM\_DATA\_DESCRIPTOR\_CLASS\_SET@{EET\_EINA\_STREAM\_DATA\_DESCRIPTOR\_CLASS\_SET}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_EINA\_STREAM\_DATA\_DESCRIPTOR\_CLASS\_SET}{EET\_EINA\_STREAM\_DATA\_DESCRIPTOR\_CLASS\_SET}}
{\footnotesize\ttfamily \#define EET\+\_\+\+EINA\+\_\+\+STREAM\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+SET(\begin{DoxyParamCaption}\item[{}]{clas,  }\item[{}]{type }\end{DoxyParamCaption})~  (\mbox{\hyperlink{group__Eet__Data__Group_gac1fe86198291a7acb6642053301f317f}{eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set}}(clas, sizeof ($\ast$(clas)), \# type, sizeof(type)))}



This macro is an helper that set all the parameter of an Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class correctly when you use Eina data type with stream. 


\begin{DoxyParams}{Parameters}
{\em clas} & The Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class you want to set. \\
\hline
{\em type} & The type of the structure described by this class. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EINA\+\_\+\+TRUE if the structure was correctly set (The only reason that could make it fail is if you did give wrong parameter).
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Group_ga5c2ad8edc9910f201b0dcbdbc5cc2694}{eet\+\_\+data\+\_\+descriptor\+\_\+stream\+\_\+new}} 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2.\+3 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-nested_8c-example}{eet-\/data-\/nested.\+c}}, and \mbox{\hyperlink{eet-data-simple_8c-example}{eet-\/data-\/simple.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_ga0bf94c07d8e69cfaac8dd2d615d7542c}\label{group__Eet__Data__Group_ga0bf94c07d8e69cfaac8dd2d615d7542c}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_EINA\_FILE\_DATA\_DESCRIPTOR\_CLASS\_SET@{EET\_EINA\_FILE\_DATA\_DESCRIPTOR\_CLASS\_SET}}
\index{EET\_EINA\_FILE\_DATA\_DESCRIPTOR\_CLASS\_SET@{EET\_EINA\_FILE\_DATA\_DESCRIPTOR\_CLASS\_SET}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_EINA\_FILE\_DATA\_DESCRIPTOR\_CLASS\_SET}{EET\_EINA\_FILE\_DATA\_DESCRIPTOR\_CLASS\_SET}}
{\footnotesize\ttfamily \#define EET\+\_\+\+EINA\+\_\+\+FILE\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+SET(\begin{DoxyParamCaption}\item[{}]{clas,  }\item[{}]{type }\end{DoxyParamCaption})~  (\mbox{\hyperlink{group__Eet__Data__Group_ga61af07cced82f787f3c52d52834491c3}{eet\+\_\+eina\+\_\+file\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set}}(clas, sizeof ($\ast$(clas)), \# type, sizeof(type)))}



This macro is an helper that set all the parameter of an Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class correctly when you use Eina data type with file. 


\begin{DoxyParams}{Parameters}
{\em clas} & The Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class you want to set. \\
\hline
{\em type} & The type of the structure described by this class. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if the structure was correctly set (The only reason that could make it fail is if you did give wrong parameter).
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Group_gaa613c638dfb72d3f9bd2bd1d4c1bf844}{eet\+\_\+data\+\_\+descriptor\+\_\+file\+\_\+new}} 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2.\+3 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}, and \mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}\label{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_BASIC@{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC@{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC}{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{type }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ type,\ \mbox{\hyperlink{group__Eet__Data__Group_gae97a13f08f6f48335a60e2a910aec41f}{EET\_G\_UNKNOWN}},\ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ NULL);\ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Adds a basic data element to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em type} & The type of the member to encode.\\
\hline
\end{DoxyParams}
This macro is a convenience macro provided to add a member to the data descriptor {\ttfamily edd}. The type of the structure is provided as the {\ttfamily struct\+\_\+type} parameter (for example\+: struct my\+\_\+struct). The {\ttfamily name} parameter defines a string that will be used to uniquely name that member of the struct (it is suggested to use the struct member itself). The {\ttfamily member} parameter is the actual struct member itself (for example\+: values), and {\ttfamily type} is the basic data type of the member which must be one of\+: EET\+\_\+\+T\+\_\+\+CHAR, EET\+\_\+\+T\+\_\+\+SHORT, EET\+\_\+\+T\+\_\+\+INT, EET\+\_\+\+T\+\_\+\+LONG\+\_\+\+LONG, EET\+\_\+\+T\+\_\+\+FLOAT, EET\+\_\+\+T\+\_\+\+DOUBLE, EET\+\_\+\+T\+\_\+\+UCHAR, EET\+\_\+\+T\+\_\+\+USHORT, EET\+\_\+\+T\+\_\+\+UINT, EET\+\_\+\+T\+\_\+\+ULONG\+\_\+\+LONG or EET\+\_\+\+T\+\_\+\+STRING.

\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}\label{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_SUB@{EET\_DATA\_DESCRIPTOR\_ADD\_SUB}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_SUB@{EET\_DATA\_DESCRIPTOR\_ADD\_SUB}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_SUB}{EET\_DATA\_DESCRIPTOR\_ADD\_SUB}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{subtype }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\_T\_UNKNOW}},\ \mbox{\hyperlink{group__Eet__Data__Group_gae97a13f08f6f48335a60e2a910aec41f}{EET\_G\_UNKNOWN}},\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ subtype);\ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a sub-\/element type to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em subtype} & The type of sub-\/type struct to add.\\
\hline
\end{DoxyParams}
This macro lets you easily add a sub-\/type (a struct that\textquotesingle{}s pointed to by this one). All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, with the {\ttfamily subtype} being the exception. This must be the data descriptor of the struct that is pointed to by this element.

\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_gae89d75a5b3a035161d937aa388f30e17}\label{group__Eet__Data__Group_gae89d75a5b3a035161d937aa388f30e17}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_SUB\_NESTED@{EET\_DATA\_DESCRIPTOR\_ADD\_SUB\_NESTED}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_SUB\_NESTED@{EET\_DATA\_DESCRIPTOR\_ADD\_SUB\_NESTED}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_SUB\_NESTED}{EET\_DATA\_DESCRIPTOR\_ADD\_SUB\_NESTED}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB\+\_\+\+NESTED(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{subtype }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\_T\_UNKNOW}},\ \mbox{\hyperlink{group__Eet__Data__Group_ga76f94c1520fc351ad2b847153795b41d}{EET\_G\_UNKNOWN\_NESTED}},\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ subtype);\ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a nested sub-\/element type to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em subtype} & The type of sub-\/type struct to add.\\
\hline
\end{DoxyParams}
This macro lets you easily add a sub-\/type\+: a struct that is nested into this one. If your data is pointed by this element instead of being nested, you should use \mbox{\hyperlink{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB()}}. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB()}}.

\begin{DoxySince}{Since}
1.\+8.\+0 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_gabb4c7833ba053f2322e6b667a9ec7f04}\label{group__Eet__Data__Group_gabb4c7833ba053f2322e6b667a9ec7f04}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_LIST@{EET\_DATA\_DESCRIPTOR\_ADD\_LIST}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_LIST@{EET\_DATA\_DESCRIPTOR\_ADD\_LIST}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_LIST}{EET\_DATA\_DESCRIPTOR\_ADD\_LIST}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{subtype }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\_T\_UNKNOW}},\ \mbox{\hyperlink{group__Eet__Data__Group_gadcfddbc1928d1068eba93326201c6232}{EET\_G\_LIST}},\ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ subtype);\ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a linked list type to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em subtype} & The type of linked list member to add.\\
\hline
\end{DoxyParams}
This macro lets you easily add a linked list of other data types. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, with the {\ttfamily subtype} being the exception. This must be the data descriptor of the element that is in each member of the linked list to be stored.

\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}, \mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}, and \mbox{\hyperlink{eet-data-nested_8c-example}{eet-\/data-\/nested.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_ga56b290f4a8d3749daa88134aeb2317fb}\label{group__Eet__Data__Group_ga56b290f4a8d3749daa88134aeb2317fb}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_STRING@{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_STRING}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_STRING@{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_STRING}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_STRING}{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_STRING}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST\+\_\+\+STRING(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga0d2cf409bf3f151156d74d18ac59e3d1}{EET\_T\_STRING}},\ \mbox{\hyperlink{group__Eet__Data__Group_gadcfddbc1928d1068eba93326201c6232}{EET\_G\_LIST}},\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ NULL);\ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a linked list of string to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded.\\
\hline
\end{DoxyParams}
This macro lets you easily add a linked list of char $\ast$. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}.

\begin{DoxySince}{Since}
1.\+5.\+0 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_gadeae061cf848d4d0bce89acdfc570848}\label{group__Eet__Data__Group_gadeae061cf848d4d0bce89acdfc570848}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_UINT@{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_UINT}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_UINT@{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_UINT}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_UINT}{EET\_DATA\_DESCRIPTOR\_ADD\_LIST\_UINT}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST\+\_\+\+UINT(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_gacf6a3c9f06e10e20be5b02cd8c6a220b}{EET\_T\_UINT}},\ \mbox{\hyperlink{group__Eet__Data__Group_gadcfddbc1928d1068eba93326201c6232}{EET\_G\_LIST}},\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ NULL);\ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a linked list of unsigned integers to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded.\\
\hline
\end{DoxyParams}
This macro lets you easily add a linked list of unsigned int. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}.

\begin{DoxySince}{Since}
1.\+24.\+0 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_gad5e348ead4ba0b441c1e020f9bf23365}\label{group__Eet__Data__Group_gad5e348ead4ba0b441c1e020f9bf23365}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_HASH@{EET\_DATA\_DESCRIPTOR\_ADD\_HASH}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_HASH@{EET\_DATA\_DESCRIPTOR\_ADD\_HASH}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_HASH}{EET\_DATA\_DESCRIPTOR\_ADD\_HASH}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+HASH(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{subtype }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\_T\_UNKNOW}},\ \mbox{\hyperlink{group__Eet__Data__Group_gab4cb1f8b97b17e36694fbe2f0ced86ce}{EET\_G\_HASH}},\ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ subtype);\ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a hash type to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em subtype} & The type of hash member to add.\\
\hline
\end{DoxyParams}
This macro lets you easily add a hash of other data types. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, with the {\ttfamily subtype} being the exception. This must be the data descriptor of the element that is in each member of the hash to be stored. The hash keys must be strings.

\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_gad5e0db408c74f1cf7b54caa02fef4df1}\label{group__Eet__Data__Group_gad5e0db408c74f1cf7b54caa02fef4df1}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_STRING@{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_STRING}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_STRING@{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_STRING}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_STRING}{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_STRING}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+HASH\+\_\+\+STRING(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga0d2cf409bf3f151156d74d18ac59e3d1}{EET\_T\_STRING}},\ \mbox{\hyperlink{group__Eet__Data__Group_gab4cb1f8b97b17e36694fbe2f0ced86ce}{EET\_G\_HASH}},\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ NULL);\ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a hash of string to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded.\\
\hline
\end{DoxyParams}
This macro lets you easily add a hash of string elements. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gad5e348ead4ba0b441c1e020f9bf23365}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+HASH()}}.

\begin{DoxySince}{Since}
1.\+3.\+4 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_ga95abc7335a5da444f307da63f29ad167}\label{group__Eet__Data__Group_ga95abc7335a5da444f307da63f29ad167}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_VALUE@{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_VALUE}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_VALUE@{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_VALUE}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_VALUE}{EET\_DATA\_DESCRIPTOR\_ADD\_HASH\_VALUE}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+HASH\+\_\+\+VALUE(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_gacee130040e46778d42d5dc9e9de07909}{EET\_T\_VALUE}},\ \mbox{\hyperlink{group__Eet__Data__Group_gab4cb1f8b97b17e36694fbe2f0ced86ce}{EET\_G\_HASH}},\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ NULL);\ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a hash of generic value storage to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded.\\
\hline
\end{DoxyParams}
This macro lets you easily add a hash of value elements. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gad5e348ead4ba0b441c1e020f9bf23365}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+HASH()}}.

\begin{DoxySince}{Since}
1.\+18 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_ga7866d1986ed8869b52c665cbeb854c8e}\label{group__Eet__Data__Group_ga7866d1986ed8869b52c665cbeb854c8e}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_ARRAY@{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_ARRAY}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_ARRAY@{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_ARRAY}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_ARRAY}{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_ARRAY}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC\+\_\+\+ARRAY(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{type }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ type,\ \mbox{\hyperlink{group__Eet__Data__Group_ga0db274e50f3cc8c9e4844d94d63a4433}{EET\_G\_ARRAY}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{sizeof}(\_\_\_ett.member)\ /\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{sizeof}(\_\_\_ett.member[0]),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL,\ NULL);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Adds an array of basic data elements to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em type} & The type of the member to encode.\\
\hline
\end{DoxyParams}
This macro lets you easily add a fixed size array of basic data types. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}. The array must be defined with a fixed size in the declaration of the struct containing it.

\begin{DoxySince}{Since}
1.\+5.\+0 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_ga9b5f2daab54e97f710b108b7d45fb535}\label{group__Eet__Data__Group_ga9b5f2daab54e97f710b108b7d45fb535}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_VAR\_ARRAY@{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_VAR\_ARRAY}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_VAR\_ARRAY@{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_VAR\_ARRAY}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_VAR\_ARRAY}{EET\_DATA\_DESCRIPTOR\_ADD\_BASIC\_VAR\_ARRAY}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC\+\_\+\+VAR\+\_\+\+ARRAY(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{type }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ type,\ \mbox{\hyperlink{group__Eet__Data__Group_gaa1ca41d2def763d6f5ce4d94eaf2581d}{EET\_G\_VAR\_ARRAY}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member\ \#\#\ \_count))\ -\/\ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Adds a variable array of basic data elements to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em type} & The type of the member to encode.\\
\hline
\end{DoxyParams}
This macro lets you easily add a variable size array of basic data types. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}. This assumes you have a struct member (of type EET\+\_\+\+T\+\_\+\+INT) called member\+\_\+count (note the \+\_\+count appended to the member) that holds the number of items in the array. This array will be allocated separately to the struct it is in.

\begin{DoxySince}{Since}
1.\+6.\+0 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_gabc903baa4d5dc50a98f5e1a68d66fd2b}\label{group__Eet__Data__Group_gabc903baa4d5dc50a98f5e1a68d66fd2b}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_ARRAY@{EET\_DATA\_DESCRIPTOR\_ADD\_ARRAY}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_ARRAY@{EET\_DATA\_DESCRIPTOR\_ADD\_ARRAY}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_ARRAY}{EET\_DATA\_DESCRIPTOR\_ADD\_ARRAY}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+ARRAY(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{subtype }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\_T\_UNKNOW}},\ \mbox{\hyperlink{group__Eet__Data__Group_ga0db274e50f3cc8c9e4844d94d63a4433}{EET\_G\_ARRAY}},\ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ 0,\ \ */}\ \textcolor{keyword}{sizeof}(\_\_\_ett.member)\ /\ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{sizeof}(\_\_\_ett.member[0]),\ NULL,\ subtype);\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a fixed size array type to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em subtype} & The type of hash member to add.\\
\hline
\end{DoxyParams}
This macro lets you easily add a fixed size array of other data types. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, with the {\ttfamily subtype} being the exception. This must be the data descriptor of the element that is in each member of the array to be stored. The array must be defined with a fixed size in the declaration of the struct containing it.

\begin{DoxySince}{Since}
1.\+0.\+2 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_ga7adad32d2eba76566533353632f00ae4}\label{group__Eet__Data__Group_ga7adad32d2eba76566533353632f00ae4}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY@{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY@{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY}{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+VAR\+\_\+\+ARRAY(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{subtype }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ name,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\_T\_UNKNOW}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eet__Data__Group_gaa1ca41d2def763d6f5ce4d94eaf2581d}{EET\_G\_VAR\_ARRAY}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member\ \#\#\ \_count))\ -\/\ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ subtype);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a variable size array type to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em subtype} & The type of hash member to add.\\
\hline
\end{DoxyParams}
This macro lets you easily add a variable size array of other data types. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, with the {\ttfamily subtype} being the exception. This must be the data descriptor of the element that is in each member of the array to be stored. This assumes you have a struct member (of type EET\+\_\+\+T\+\_\+\+INT) called member\+\_\+count (note the \+\_\+count appended to the member) that holds the number of items in the array. This array will be allocated separately to the struct it is in.

\begin{DoxySince}{Since}
1.\+0.\+2 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_ga7425aa544951fa82db3015ce96abedfb}\label{group__Eet__Data__Group_ga7425aa544951fa82db3015ce96abedfb}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY\_STRING@{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY\_STRING}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY\_STRING@{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY\_STRING}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY\_STRING}{EET\_DATA\_DESCRIPTOR\_ADD\_VAR\_ARRAY\_STRING}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+VAR\+\_\+\+ARRAY\+\_\+\+STRING(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ name,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eet__Data__Group_ga0d2cf409bf3f151156d74d18ac59e3d1}{EET\_T\_STRING}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eet__Data__Group_gaa1ca41d2def763d6f5ce4d94eaf2581d}{EET\_G\_VAR\_ARRAY}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member\ \#\#\ \_count))\ -\/\ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ 0,\ \ */}\ NULL,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a variable size array type to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded.\\
\hline
\end{DoxyParams}
This macro lets you easily add a variable size array of strings. All the parameters are the same as for \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}.

\begin{DoxyNote}{Note}
The strings in this array will be loaded as a single blob of memory.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+4.\+0 
\end{DoxySince}
\mbox{\Hypertarget{group__Eet__Data__Group_ga07b711dca3d4bcaa0ccb8ced48341b90}\label{group__Eet__Data__Group_ga07b711dca3d4bcaa0ccb8ced48341b90}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_UNION@{EET\_DATA\_DESCRIPTOR\_ADD\_UNION}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_UNION@{EET\_DATA\_DESCRIPTOR\_ADD\_UNION}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_UNION}{EET\_DATA\_DESCRIPTOR\_ADD\_UNION}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+UNION(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{type\+\_\+member,  }\item[{}]{unified\+\_\+type }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\_T\_UNKNOW}},\ \mbox{\hyperlink{group__Eet__Data__Group_ga52795c9c05702fbcd4e7df2952b492da}{EET\_G\_UNION}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.type\_member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL,\ unified\_type);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds an union type to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em type\+\_\+member} & The member that give hints on what is in the union. \\
\hline
{\em unified\+\_\+type} & Describe all possible type the union could handle.\\
\hline
\end{DoxyParams}
This macro lets you easily add an union with a member that specify what is inside. The {\ttfamily unified\+\_\+type} is an Eet\+\_\+\+Data\+\_\+\+Descriptor, but only the entry that match the name returned by type\+\_\+get will be used for each serialized data. The type\+\_\+get and type\+\_\+set callback of unified\+\_\+type should be defined.

\begin{DoxySince}{Since}
1.\+2.\+4 
\end{DoxySince}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_ga8851a40b130061262a8dd009f0457a65}\label{group__Eet__Data__Group_ga8851a40b130061262a8dd009f0457a65}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_VARIANT@{EET\_DATA\_DESCRIPTOR\_ADD\_VARIANT}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_VARIANT@{EET\_DATA\_DESCRIPTOR\_ADD\_VARIANT}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_VARIANT}{EET\_DATA\_DESCRIPTOR\_ADD\_VARIANT}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+VARIANT(\begin{DoxyParamCaption}\item[{}]{edd,  }\item[{}]{struct\+\_\+type,  }\item[{}]{name,  }\item[{}]{member,  }\item[{}]{type\+\_\+member,  }\item[{}]{unified\+\_\+type }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ struct\_type\ \_\_\_ett;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ eet\_data\_descriptor\_element\_add(edd,\ name,\ \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\_T\_UNKNOW}},\ \mbox{\hyperlink{group__Eet__Data__Group_ga2c61448d5d371152de980526819404dd}{EET\_G\_VARIANT}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett.type\_member))\ -\/\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keywordtype}{char}\ *)(\&\ (\_\_\_ett)),\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL,\ unified\_type);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \textcolor{keywordflow}{while}\ (0)}

\end{DoxyCode}


Adds a automatically selectable type to a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to add the type to. \\
\hline
{\em struct\+\_\+type} & The type of the struct. \\
\hline
{\em name} & The string name to use to encode/decode this member (must be a constant global and never change). \\
\hline
{\em member} & The struct member itself to be encoded. \\
\hline
{\em type\+\_\+member} & The member that give hints on what is in the union. \\
\hline
{\em unified\+\_\+type} & Describe all possible type the union could handle.\\
\hline
\end{DoxyParams}
This macro lets you easily define what the content of {\ttfamily member} points to depending of the content of {\ttfamily type\+\_\+member}. The type\+\_\+get and type\+\_\+set callback of unified\+\_\+type should be defined. If the the type is not know at the time of restoring it, eet will still call type\+\_\+set of {\ttfamily unified\+\_\+type} but the pointer will be set to a serialized binary representation of what eet know. This make it possible, to save this pointer again by just returning the string given previously and telling it by setting unknow to EINA\+\_\+\+TRUE.

\begin{DoxySince}{Since}
1.\+2.\+4 
\end{DoxySince}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_gad0daa543d93a64add80961ae5387d45a}\label{group__Eet__Data__Group_gad0daa543d93a64add80961ae5387d45a}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING@{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING@{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING}{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+MAPPING(\begin{DoxyParamCaption}\item[{}]{unified\+\_\+type,  }\item[{}]{name,  }\item[{}]{subtype }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \mbox{\hyperlink{group__Eet__Data__Group_ga450fd478c0c2531a5d2beb4f1af7cd34}{eet\_data\_descriptor\_element\_add}}(unified\_type,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ name,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\_T\_UNKNOW}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eet__Data__Group_gae97a13f08f6f48335a60e2a910aec41f}{EET\_G\_UNKNOWN}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ subtype)}

\end{DoxyCode}


Adds a mapping to a data descriptor that will be used by union, variant or inherited type. 


\begin{DoxyParams}{Parameters}
{\em unified\+\_\+type} & The data descriptor to add the mapping to. \\
\hline
{\em name} & The string name to get/set type. \\
\hline
{\em subtype} & The matching data descriptor.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+2.\+4 
\end{DoxySince}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_gaaf153807a88cd2c3483c5c34bb920a95}\label{group__Eet__Data__Group_gaaf153807a88cd2c3483c5c34bb920a95}} 
\index{Eet Data Serialization@{Eet Data Serialization}!EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING\_BASIC@{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING\_BASIC}}
\index{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING\_BASIC@{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING\_BASIC}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING\_BASIC}{EET\_DATA\_DESCRIPTOR\_ADD\_MAPPING\_BASIC}}
{\footnotesize\ttfamily \#define EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+MAPPING\+\_\+\+BASIC(\begin{DoxyParamCaption}\item[{}]{unified\+\_\+type,  }\item[{}]{name,  }\item[{}]{basic\+\_\+type }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \mbox{\hyperlink{group__Eet__Data__Group_ga450fd478c0c2531a5d2beb4f1af7cd34}{eet\_data\_descriptor\_element\_add}}(unified\_type,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ name,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ basic\_type,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eet__Data__Group_gae97a13f08f6f48335a60e2a910aec41f}{EET\_G\_UNKNOWN}},\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL)}

\end{DoxyCode}


Adds a mapping of a basic type to a data descriptor that will be used by a union type. 


\begin{DoxyParams}{Parameters}
{\em unified\+\_\+type} & The data descriptor to add the mapping to. \\
\hline
{\em name} & The string name to get/set type. \\
\hline
{\em basic\+\_\+type} & The matching basic type.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}.\end{Desc}


\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}\label{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Data\_Descriptor@{Eet\_Data\_Descriptor}}
\index{Eet\_Data\_Descriptor@{Eet\_Data\_Descriptor}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Data\_Descriptor}{Eet\_Data\_Descriptor}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}}}



Opaque handle that have information on a type members. 

Descriptors are created using an \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}}, and they describe the contents of the structure that will be serialized by Eet. Not all members need be described by it, just those that should be handled by Eet. This way it\textquotesingle{}s possible to have one structure with both data to be saved to a file, like application configuration, and runtime information that would be meaningless to store, but is appropriate to keep together during the program execution. The members are added by means of \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, \mbox{\hyperlink{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB()}}, \mbox{\hyperlink{group__Eet__Data__Group_gabb4c7833ba053f2322e6b667a9ec7f04}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST()}}, \mbox{\hyperlink{group__Eet__Data__Group_gad5e348ead4ba0b441c1e020f9bf23365}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+HASH()}} or \mbox{\hyperlink{group__Eet__Data__Group_ga450fd478c0c2531a5d2beb4f1af7cd34}{eet\+\_\+data\+\_\+descriptor\+\_\+element\+\_\+add()}}.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Group_ga5c2ad8edc9910f201b0dcbdbc5cc2694}{eet\+\_\+data\+\_\+descriptor\+\_\+stream\+\_\+new()}} 

\mbox{\hyperlink{group__Eet__Data__Group_gaa613c638dfb72d3f9bd2bd1d4c1bf844}{eet\+\_\+data\+\_\+descriptor\+\_\+file\+\_\+new()}} 

\mbox{\hyperlink{group__Eet__Data__Group_ga3e2b601720973d0e1f4683768a593c4d}{eet\+\_\+data\+\_\+descriptor\+\_\+free()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}\label{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Data\_Descriptor\_Class@{Eet\_Data\_Descriptor\_Class}}
\index{Eet\_Data\_Descriptor\_Class@{Eet\_Data\_Descriptor\_Class}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Data\_Descriptor\_Class}{Eet\_Data\_Descriptor\_Class}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}}}



Instructs Eet about memory management for different needs under serialization and parse process. 

Callback protoype for Eet\+\_\+\+Dump.


\begin{DoxyParams}{Parameters}
{\em data} & To passe to the callback \\
\hline
{\em str} & The string to dump \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_gaab1358cb471dce20be9da6febbdf8327}\label{group__Eet__Data__Group_gaab1358cb471dce20be9da6febbdf8327}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Hash\_Foreach\_Callback\_Callback@{Eet\_Descriptor\_Hash\_Foreach\_Callback\_Callback}}
\index{Eet\_Descriptor\_Hash\_Foreach\_Callback\_Callback@{Eet\_Descriptor\_Hash\_Foreach\_Callback\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Hash\_Foreach\_Callback\_Callback}{Eet\_Descriptor\_Hash\_Foreach\_Callback\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach\+\_\+\+Callback\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach\+\_\+\+Callback. 


\begin{DoxyParams}{Parameters}
{\em h} & The hash \\
\hline
{\em k} & The key \\
\hline
{\em dt} & The data \\
\hline
{\em fdt} & The data passed to the callback \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An integer 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eet__Data__Group_ga894af1ef8c006fc48235d8b48755e3d8}\label{group__Eet__Data__Group_ga894af1ef8c006fc48235d8b48755e3d8}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Mem\_Alloc\_Callback@{Eet\_Descriptor\_Mem\_Alloc\_Callback}}
\index{Eet\_Descriptor\_Mem\_Alloc\_Callback@{Eet\_Descriptor\_Mem\_Alloc\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Mem\_Alloc\_Callback}{Eet\_Descriptor\_Mem\_Alloc\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Mem\+\_\+\+Alloc\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Mem\+\_\+\+Alloc. 


\begin{DoxyParams}{Parameters}
{\em size} & Is the size of memory to alloc on call of the callback \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_gadc11123034dfc44c5bc31c6f5bdb55fb}\label{group__Eet__Data__Group_gadc11123034dfc44c5bc31c6f5bdb55fb}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Mem\_Free\_Callback@{Eet\_Descriptor\_Mem\_Free\_Callback}}
\index{Eet\_Descriptor\_Mem\_Free\_Callback@{Eet\_Descriptor\_Mem\_Free\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Mem\_Free\_Callback}{Eet\_Descriptor\_Mem\_Free\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Mem\+\_\+\+Free\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Mem\+\_\+\+Alloc. 


\begin{DoxyParams}{Parameters}
{\em mem} & Must be a pointer to free on call of the callback \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_ga014b92bba17d33ea41e31ebfd9a23a8b}\label{group__Eet__Data__Group_ga014b92bba17d33ea41e31ebfd9a23a8b}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Str\_Alloc\_Callback@{Eet\_Descriptor\_Str\_Alloc\_Callback}}
\index{Eet\_Descriptor\_Str\_Alloc\_Callback@{Eet\_Descriptor\_Str\_Alloc\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Str\_Alloc\_Callback}{Eet\_Descriptor\_Str\_Alloc\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Alloc\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Alloc. 


\begin{DoxyParams}{Parameters}
{\em str} & Must be the string to alloc \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
have Must be an allocated char $\ast$ for the given string
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em str} & The string to allocate \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An allocated pointer to the string 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eet__Data__Group_ga6e1c79f2b15a0315dd33c05d99cb065a}\label{group__Eet__Data__Group_ga6e1c79f2b15a0315dd33c05d99cb065a}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Str\_Free\_Callback@{Eet\_Descriptor\_Str\_Free\_Callback}}
\index{Eet\_Descriptor\_Str\_Free\_Callback@{Eet\_Descriptor\_Str\_Free\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Str\_Free\_Callback}{Eet\_Descriptor\_Str\_Free\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Free\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Str\+\_\+\+Free. 


\begin{DoxyParams}{Parameters}
{\em str} & Must be an allocated string to free\\
\hline
{\em str} & The string to free \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_ga4aef6ac18690983e6d608d0844b43e5d}\label{group__Eet__Data__Group_ga4aef6ac18690983e6d608d0844b43e5d}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_List\_Next\_Callback@{Eet\_Descriptor\_List\_Next\_Callback}}
\index{Eet\_Descriptor\_List\_Next\_Callback@{Eet\_Descriptor\_List\_Next\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_List\_Next\_Callback}{Eet\_Descriptor\_List\_Next\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Next\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Next. 


\begin{DoxyParams}{Parameters}
{\em l} & Must be a pointer to the list \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Must be a pointer to the list 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eet__Data__Group_ga7e6b656ac984d44d0e736655c45982de}\label{group__Eet__Data__Group_ga7e6b656ac984d44d0e736655c45982de}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_List\_Append\_Callback@{Eet\_Descriptor\_List\_Append\_Callback}}
\index{Eet\_Descriptor\_List\_Append\_Callback@{Eet\_Descriptor\_List\_Append\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_List\_Append\_Callback}{Eet\_Descriptor\_List\_Append\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Append\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Append. 


\begin{DoxyParams}{Parameters}
{\em l} & Must be a pointer to the list \\
\hline
{\em d} & The data to append to the list \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Must be a pointer to the list 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eet__Data__Group_ga1a75ebbc7a4d8bab9971974335599b04}\label{group__Eet__Data__Group_ga1a75ebbc7a4d8bab9971974335599b04}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_List\_Data\_Callback@{Eet\_Descriptor\_List\_Data\_Callback}}
\index{Eet\_Descriptor\_List\_Data\_Callback@{Eet\_Descriptor\_List\_Data\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_List\_Data\_Callback}{Eet\_Descriptor\_List\_Data\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Data\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Data. 


\begin{DoxyParams}{Parameters}
{\em l} & Must be a pointer to the list \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Must be a pointer to the list 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Eet__Data__Group_ga97f9bf8be3bcd13699c4890487bba66c}\label{group__Eet__Data__Group_ga97f9bf8be3bcd13699c4890487bba66c}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_List\_Free\_Callback@{Eet\_Descriptor\_List\_Free\_Callback}}
\index{Eet\_Descriptor\_List\_Free\_Callback@{Eet\_Descriptor\_List\_Free\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_List\_Free\_Callback}{Eet\_Descriptor\_List\_Free\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Free\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Free. 


\begin{DoxyParams}{Parameters}
{\em l} & Must be a pointer to the list to free \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_ga530125fcbeb48fb675d020f51b839151}\label{group__Eet__Data__Group_ga530125fcbeb48fb675d020f51b839151}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Hash\_Foreach\_Callback@{Eet\_Descriptor\_Hash\_Foreach\_Callback}}
\index{Eet\_Descriptor\_Hash\_Foreach\_Callback@{Eet\_Descriptor\_Hash\_Foreach\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Hash\_Foreach\_Callback}{Eet\_Descriptor\_Hash\_Foreach\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach\+\_\+\+Callback}



Callback for Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach. 


\begin{DoxyParams}{Parameters}
{\em h} & The hash \\
\hline
{\em func} & The function callback to call on each iteration \\
\hline
{\em fdt} & The data to pass to the callbac setted in param func \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_ga94d8c39d01f0c9064713eeb0a18dc6d2}\label{group__Eet__Data__Group_ga94d8c39d01f0c9064713eeb0a18dc6d2}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Hash\_Add\_Callback@{Eet\_Descriptor\_Hash\_Add\_Callback}}
\index{Eet\_Descriptor\_Hash\_Add\_Callback@{Eet\_Descriptor\_Hash\_Add\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Hash\_Add\_Callback}{Eet\_Descriptor\_Hash\_Add\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Add\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Add. 


\begin{DoxyParams}{Parameters}
{\em h} & The hash \\
\hline
{\em k} & The key \\
\hline
{\em d} & The data to associate with the \textquotesingle{}k\textquotesingle{} key \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_ga09d99991df39953b4b28de202f3109ab}\label{group__Eet__Data__Group_ga09d99991df39953b4b28de202f3109ab}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Hash\_Free\_Callback@{Eet\_Descriptor\_Hash\_Free\_Callback}}
\index{Eet\_Descriptor\_Hash\_Free\_Callback@{Eet\_Descriptor\_Hash\_Free\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Hash\_Free\_Callback}{Eet\_Descriptor\_Hash\_Free\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Free\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Free. 


\begin{DoxyParams}{Parameters}
{\em h} & The hash to free \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_gafd67014abf81fb9ff949f32db811253b}\label{group__Eet__Data__Group_gafd67014abf81fb9ff949f32db811253b}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Type\_Get\_Callback@{Eet\_Descriptor\_Type\_Get\_Callback}}
\index{Eet\_Descriptor\_Type\_Get\_Callback@{Eet\_Descriptor\_Type\_Get\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Type\_Get\_Callback}{Eet\_Descriptor\_Type\_Get\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Type\+\_\+\+Get\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Type\+\_\+\+Get. 


\begin{DoxyParams}{Parameters}
{\em data} & Data to pass to the callback \\
\hline
{\em unknow} & Eina\+\_\+\+Bool {\bfseries{FIXME}} \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_gad98f354bc1af39c65c306a2d6905879c}\label{group__Eet__Data__Group_gad98f354bc1af39c65c306a2d6905879c}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Type\_Set\_Callback@{Eet\_Descriptor\_Type\_Set\_Callback}}
\index{Eet\_Descriptor\_Type\_Set\_Callback@{Eet\_Descriptor\_Type\_Set\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Type\_Set\_Callback}{Eet\_Descriptor\_Type\_Set\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Type\+\_\+\+Set\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Type\+\_\+\+Set. 


\begin{DoxyParams}{Parameters}
{\em type} & The type to set \\
\hline
{\em data} & To pass to the callback \\
\hline
{\em unknow} & Eina\+\_\+\+Bool {\bfseries{FIXME}} \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_ga1782d84edeff89252c1fbaece4244c26}\label{group__Eet__Data__Group_ga1782d84edeff89252c1fbaece4244c26}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Array\_Alloc\_Callback@{Eet\_Descriptor\_Array\_Alloc\_Callback}}
\index{Eet\_Descriptor\_Array\_Alloc\_Callback@{Eet\_Descriptor\_Array\_Alloc\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Array\_Alloc\_Callback}{Eet\_Descriptor\_Array\_Alloc\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Array\+\_\+\+Alloc\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Array\+\_\+\+Alloc. 


\begin{DoxyParams}{Parameters}
{\em size} & The size of the array \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eet__Data__Group_ga466313985fc95944629db2a1d2edf08b}\label{group__Eet__Data__Group_ga466313985fc95944629db2a1d2edf08b}} 
\index{Eet Data Serialization@{Eet Data Serialization}!Eet\_Descriptor\_Array\_Free\_Callback@{Eet\_Descriptor\_Array\_Free\_Callback}}
\index{Eet\_Descriptor\_Array\_Free\_Callback@{Eet\_Descriptor\_Array\_Free\_Callback}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{Eet\_Descriptor\_Array\_Free\_Callback}{Eet\_Descriptor\_Array\_Free\_Callback}}
{\footnotesize\ttfamily Eet\+\_\+\+Descriptor\+\_\+\+Array\+\_\+\+Free\+\_\+\+Callback}



Callback prototype for Eet\+\_\+\+Descriptor\+\_\+\+Array\+\_\+\+Free. 


\begin{DoxyParams}{Parameters}
{\em size} & The size of the array \\
\hline
\end{DoxyParams}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eet__Data__Group_ga3e5530ce47cc9562b9f86e2e89ff503a}\label{group__Eet__Data__Group_ga3e5530ce47cc9562b9f86e2e89ff503a}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_descriptor\_new@{eet\_data\_descriptor\_new}}
\index{eet\_data\_descriptor\_new@{eet\_data\_descriptor\_new}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_descriptor\_new()}{eet\_data\_descriptor\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_gad5b2116495471db12a34bab9a34edfaa}{EINA\+\_\+\+DEPRECATED}} EAPI \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$ eet\+\_\+data\+\_\+descriptor\+\_\+new (\begin{DoxyParamCaption}\item[{const char $\ast$}]{name,  }\item[{int}]{size,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4aef6ac18690983e6d608d0844b43e5d}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Next\+\_\+\+Callback}}}]{func\+\_\+list\+\_\+next,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga7e6b656ac984d44d0e736655c45982de}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Append\+\_\+\+Callback}}}]{func\+\_\+list\+\_\+append,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga1a75ebbc7a4d8bab9971974335599b04}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Data\+\_\+\+Callback}}}]{func\+\_\+list\+\_\+data,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga97f9bf8be3bcd13699c4890487bba66c}{Eet\+\_\+\+Descriptor\+\_\+\+List\+\_\+\+Free\+\_\+\+Callback}}}]{func\+\_\+list\+\_\+free,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga530125fcbeb48fb675d020f51b839151}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Foreach\+\_\+\+Callback}}}]{func\+\_\+hash\+\_\+foreach,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga94d8c39d01f0c9064713eeb0a18dc6d2}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Add\+\_\+\+Callback}}}]{func\+\_\+hash\+\_\+add,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga09d99991df39953b4b28de202f3109ab}{Eet\+\_\+\+Descriptor\+\_\+\+Hash\+\_\+\+Free\+\_\+\+Callback}}}]{func\+\_\+hash\+\_\+free }\end{DoxyParamCaption})}



Creates a new empty data structure descriptor. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000059}{Deprecated}}]use \mbox{\hyperlink{group__Eet__Data__Group_ga5c2ad8edc9910f201b0dcbdbc5cc2694}{eet\+\_\+data\+\_\+descriptor\+\_\+stream\+\_\+new()}} or \mbox{\hyperlink{group__Eet__Data__Group_gaa613c638dfb72d3f9bd2bd1d4c1bf844}{eet\+\_\+data\+\_\+descriptor\+\_\+file\+\_\+new()}} \end{DoxyRefDesc}

\begin{DoxyParams}{Parameters}
{\em name} & The string name of this data structure (most be a global constant and never change). \\
\hline
{\em size} & The size of the struct (in bytes). \\
\hline
{\em func\+\_\+list\+\_\+next} & The function to get the next list node. \\
\hline
{\em func\+\_\+list\+\_\+append} & The function to append a member to a list. \\
\hline
{\em func\+\_\+list\+\_\+data} & The function to get the data from a list node. \\
\hline
{\em func\+\_\+list\+\_\+free} & The function to free an entire linked list. \\
\hline
{\em func\+\_\+hash\+\_\+foreach} & The function to iterate through all hash table entries. \\
\hline
{\em func\+\_\+hash\+\_\+add} & The function to add a member to a hash table. \\
\hline
{\em func\+\_\+hash\+\_\+free} & The function to free an entire hash table. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new empty data descriptor.
\end{DoxyReturn}
This function creates a new data descriptor and returns a handle to the new data descriptor. On creation it will be empty, containing no contents describing anything other than the shell of the data structure.

You add structure members to the data descriptor using the macros \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, \mbox{\hyperlink{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB()}} and \mbox{\hyperlink{group__Eet__Data__Group_gabb4c7833ba053f2322e6b667a9ec7f04}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST()}}, depending on what type of member you are adding to the description.

Once you have described all the members of a struct you want loaded, or saved eet can load and save those members for you, encode them into endian-\/independent serialised data chunks for transmission across a a network or more.

The function pointers to the list and hash table functions are only needed if you use those data types, else you can pass NULL instead.

\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4aa53189a11403c6960be06c64db38cd}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::hash\+\_\+add}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_abf243b76b96a607d529a8859801f8381}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::hash\+\_\+foreach}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a03fb64410b495a523cf65f3f08f76444}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::hash\+\_\+free}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a8045ac68cd6007be0cfc7ad698aa5723}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::list\+\_\+append}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_ab7019a85d63f3edfa40ae94a549150e2}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::list\+\_\+data}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a55fd4e50a2897767ab3228f9736820df}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::list\+\_\+free}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4be84e8957fc140f2a8597a34660b6c8}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::list\+\_\+next}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4cfe16ee62c58ab68bb6feb47829749f}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::name}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a5e55b214032157b06162b57eaac9fe66}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::size}}, and \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4e3696014d6907dadd55840bf6008317}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::version}}.

\mbox{\Hypertarget{group__Eet__Data__Group_ga5c2ad8edc9910f201b0dcbdbc5cc2694}\label{group__Eet__Data__Group_ga5c2ad8edc9910f201b0dcbdbc5cc2694}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_descriptor\_stream\_new@{eet\_data\_descriptor\_stream\_new}}
\index{eet\_data\_descriptor\_stream\_new@{eet\_data\_descriptor\_stream\_new}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_descriptor\_stream\_new()}{eet\_data\_descriptor\_stream\_new()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$ eet\+\_\+data\+\_\+descriptor\+\_\+stream\+\_\+new (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} $\ast$}]{eddc }\end{DoxyParamCaption})}



This function creates a new data descriptor and returns a handle to the new data descriptor. 

On creation it will be empty, containing no contents describing anything other than the shell of the data structure. 
\begin{DoxyParams}{Parameters}
{\em eddc} & The class from where to create the data descriptor. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A handle to the new data descriptor.
\end{DoxyReturn}
You add structure members to the data descriptor using the macros \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, \mbox{\hyperlink{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB()}} and \mbox{\hyperlink{group__Eet__Data__Group_gabb4c7833ba053f2322e6b667a9ec7f04}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST()}}, depending on what type of member you are adding to the description.

Once you have described all the members of a struct you want loaded or saved, eet can load and save those members for you, encode them into endian-\/independent serialised data chunks for transmission across a network or more.

This function specially ignores str\+\_\+direct\+\_\+alloc and str\+\_\+direct\+\_\+free. It is useful when the eet\+\_\+data you are reading doesn\textquotesingle{}t have a dictionary, like network stream or IPC. It also mean that all string will be allocated and duplicated in memory.

\begin{DoxySince}{Since}
1.\+2.\+3 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}, \mbox{\hyperlink{eet-data-nested_8c-example}{eet-\/data-\/nested.\+c}}, and \mbox{\hyperlink{eet-data-simple_8c-example}{eet-\/data-\/simple.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_gaa613c638dfb72d3f9bd2bd1d4c1bf844}\label{group__Eet__Data__Group_gaa613c638dfb72d3f9bd2bd1d4c1bf844}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_descriptor\_file\_new@{eet\_data\_descriptor\_file\_new}}
\index{eet\_data\_descriptor\_file\_new@{eet\_data\_descriptor\_file\_new}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_descriptor\_file\_new()}{eet\_data\_descriptor\_file\_new()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$ eet\+\_\+data\+\_\+descriptor\+\_\+file\+\_\+new (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} $\ast$}]{eddc }\end{DoxyParamCaption})}



This function creates a new data descriptor and returns a handle to the new data descriptor. 

On creation it will be empty, containing no contents describing anything other than the shell of the data structure. 
\begin{DoxyParams}{Parameters}
{\em eddc} & The class from where to create the data descriptor. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A handle to the new data descriptor.
\end{DoxyReturn}
You add structure members to the data descriptor using the macros \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, \mbox{\hyperlink{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB()}} and \mbox{\hyperlink{group__Eet__Data__Group_gabb4c7833ba053f2322e6b667a9ec7f04}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST()}}, depending on what type of member you are adding to the description.

Once you have described all the members of a struct you want loaded or saved, eet can load and save those members for you, encode them into endian-\/independent serialised data chunks for transmission across a a network or more.

This function uses str\+\_\+direct\+\_\+alloc and str\+\_\+direct\+\_\+free. It is useful when the eet\+\_\+data you are reading come from a file and have a dictionary. This will reduce memory use and improve the possibility for the OS to page this string out. However, the load speed and memory saving comes with some drawbacks to keep in mind. If you never modify the contents of the structures loaded from the file, all you need to remember is that closing the eet file will make the strings go away. On the other hand, should you need to free a string, before doing so you have to verify that it\textquotesingle{}s not part of the eet dictionary. You can do this in the following way, assuming {\ttfamily ef} is a valid Eet\+\_\+\+File and {\ttfamily str} is a string loaded from said file.


\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ eet\_string\_free(\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\_File}}\ *ef,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *str)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eet__File__Group_gaf0984c8280699ca5a3c4966f5580324c}{Eet\_Dictionary}}\ *dict\ =\ \mbox{\hyperlink{group__Eet__File__Group_gabac3fef94bb732840b9ac9cc2917c4c6}{eet\_dictionary\_get}}(ef);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (dict\ \&\&\ \mbox{\hyperlink{group__Eet__File__Group_ga53290da52edb929b85e51f25e79d27c8}{eet\_dictionary\_string\_check}}(dict,\ str))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{comment}{//\ The\ file\ contains\ a\ dictionary\ and\ the\ given\ string\ is\ a\ part\ of}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{comment}{//\ of\ it,\ so\ we\ can't\ free\ it,\ just\ return.}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return};}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \textcolor{comment}{//\ We\ assume\ eina\_stringshare\ was\ used\ on\ the\ descriptor}}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5538b4a134987b8a01744fad1a845ba4}{eina\_stringshare\_del}}(str);}
\DoxyCodeLine{\}}

\end{DoxyCode}


\begin{DoxySince}{Since}
1.\+2.\+3 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}, and \mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Eet__Data__Group_gac1fe86198291a7acb6642053301f317f}\label{group__Eet__Data__Group_gac1fe86198291a7acb6642053301f317f}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_eina\_stream\_data\_descriptor\_class\_set@{eet\_eina\_stream\_data\_descriptor\_class\_set}}
\index{eet\_eina\_stream\_data\_descriptor\_class\_set@{eet\_eina\_stream\_data\_descriptor\_class\_set}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_eina\_stream\_data\_descriptor\_class\_set()}{eet\_eina\_stream\_data\_descriptor\_class\_set()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} $\ast$}]{eddc,  }\item[{unsigned int}]{eddc\+\_\+size,  }\item[{const char $\ast$}]{name,  }\item[{int}]{size }\end{DoxyParamCaption})}



This function is an helper that set all the parameters of an Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class correctly when you use Eina data type with a stream. 


\begin{DoxyParams}{Parameters}
{\em eddc} & The Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class you want to set. \\
\hline
{\em eddc\+\_\+size} & The size of the Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class at the compilation time. \\
\hline
{\em name} & The name of the structure described by this class. \\
\hline
{\em size} & The size of the structure described by this class. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if the structure was correctly set (The only reason that could make it fail is if you did give wrong parameter).
\end{DoxyReturn}
\begin{DoxyNote}{Note}
Unless there\textquotesingle{}s a very specific reason to use this function directly, the EET\+\_\+\+EINA\+\_\+\+STREAM\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+SET macro is recommended.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2.\+3 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4e2b47d408bc6adb6ec071c477b577a1}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::array\+\_\+alloc}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a85f61e0051e53158e9fb0f7646a91c3b}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::array\+\_\+free}}, \mbox{\hyperlink{group__Eet__Data__Group_ga61a090586eff90415b429f1017acf8a7}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+VERSION}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}{eina\+\_\+list\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5538b4a134987b8a01744fad1a845ba4}{eina\+\_\+stringshare\+\_\+del()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4aa53189a11403c6960be06c64db38cd}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::hash\+\_\+add}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_abf243b76b96a607d529a8859801f8381}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::hash\+\_\+foreach}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a03fb64410b495a523cf65f3f08f76444}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::hash\+\_\+free}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a8045ac68cd6007be0cfc7ad698aa5723}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::list\+\_\+append}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_ab7019a85d63f3edfa40ae94a549150e2}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::list\+\_\+data}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a55fd4e50a2897767ab3228f9736820df}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::list\+\_\+free}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4be84e8957fc140f2a8597a34660b6c8}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::list\+\_\+next}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a847242dfd9340fe19216c24a4e5ba36e}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::mem\+\_\+alloc}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a3e2d04921950cc8bdd5c44517b4a9b96}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::mem\+\_\+free}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4cfe16ee62c58ab68bb6feb47829749f}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::name}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a5e55b214032157b06162b57eaac9fe66}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::size}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a5642e3cffba4782bba5f381e18a53356}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::str\+\_\+alloc}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_acb219dc91711c063f511f65de5a07d96}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::str\+\_\+direct\+\_\+alloc}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_ac011ee536fc332da54a5ba243b9af692}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::str\+\_\+direct\+\_\+free}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a988fde5bbb9dc98a748538931b22a566}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::str\+\_\+free}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_af71fcc4124973c0da6aa0e84dce426cb}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::type\+\_\+get}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a1b6477a2a52b797a662c3fff9793f97e}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::type\+\_\+set}}, and \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4e3696014d6907dadd55840bf6008317}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::version}}.



Referenced by \mbox{\hyperlink{group__Eet__Data__Group_ga61af07cced82f787f3c52d52834491c3}{eet\+\_\+eina\+\_\+file\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_ga61af07cced82f787f3c52d52834491c3}\label{group__Eet__Data__Group_ga61af07cced82f787f3c52d52834491c3}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_eina\_file\_data\_descriptor\_class\_set@{eet\_eina\_file\_data\_descriptor\_class\_set}}
\index{eet\_eina\_file\_data\_descriptor\_class\_set@{eet\_eina\_file\_data\_descriptor\_class\_set}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_eina\_file\_data\_descriptor\_class\_set()}{eet\_eina\_file\_data\_descriptor\_class\_set()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eet\+\_\+eina\+\_\+file\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__Data__Group_gace5d1ff83e06ad08d15aadef3916082f}{Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class}} $\ast$}]{eddc,  }\item[{unsigned int}]{eddc\+\_\+size,  }\item[{const char $\ast$}]{name,  }\item[{int}]{size }\end{DoxyParamCaption})}



This function is an helper that set all the parameter of an Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class correctly when you use Eina data type with a file. 


\begin{DoxyParams}{Parameters}
{\em eddc} & The Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class you want to set. \\
\hline
{\em eddc\+\_\+size} & The size of the Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class at the compilation time. \\
\hline
{\em name} & The name of the structure described by this class. \\
\hline
{\em size} & The size of the structure described by this class. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if the structure was correctly set (The only reason that could make it fail is if you did give wrong parameter).
\end{DoxyReturn}
\begin{DoxyNote}{Note}
Unless there\textquotesingle{}s a very specific reason to use this function directly, the EET\+\_\+\+EINA\+\_\+\+FILE\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+SET macro is recommended.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2.\+3 
\end{DoxySince}


References \mbox{\hyperlink{group__Eet__Data__Group_ga61a090586eff90415b429f1017acf8a7}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+CLASS\+\_\+\+VERSION}}, \mbox{\hyperlink{group__Eet__Data__Group_gac1fe86198291a7acb6642053301f317f}{eet\+\_\+eina\+\_\+stream\+\_\+data\+\_\+descriptor\+\_\+class\+\_\+set()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4aa53189a11403c6960be06c64db38cd}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::hash\+\_\+add}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_acb219dc91711c063f511f65de5a07d96}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::str\+\_\+direct\+\_\+alloc}}, \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_ac011ee536fc332da54a5ba243b9af692}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::str\+\_\+direct\+\_\+free}}, and \mbox{\hyperlink{struct__Eet__Data__Descriptor__Class_a4e3696014d6907dadd55840bf6008317}{\+\_\+\+Eet\+\_\+\+Data\+\_\+\+Descriptor\+\_\+\+Class\+::version}}.

\mbox{\Hypertarget{group__Eet__Data__Group_ga3e2b601720973d0e1f4683768a593c4d}\label{group__Eet__Data__Group_ga3e2b601720973d0e1f4683768a593c4d}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_descriptor\_free@{eet\_data\_descriptor\_free}}
\index{eet\_data\_descriptor\_free@{eet\_data\_descriptor\_free}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_descriptor\_free()}{eet\_data\_descriptor\_free()}}
{\footnotesize\ttfamily EAPI void eet\+\_\+data\+\_\+descriptor\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{edd }\end{DoxyParamCaption})}



This function frees a data descriptor when it is not needed anymore. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to free.\\
\hline
\end{DoxyParams}
This function takes a data descriptor handle as a parameter and frees all data allocated for the data descriptor and the handle itself. After this call the descriptor is no longer valid.

\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}, \mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}, \mbox{\hyperlink{eet-data-nested_8c-example}{eet-\/data-\/nested.\+c}}, and \mbox{\hyperlink{eet-data-simple_8c-example}{eet-\/data-\/simple.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eet__Data__Group_ga3e2b601720973d0e1f4683768a593c4d}{eet\+\_\+data\+\_\+descriptor\+\_\+free()}}.



Referenced by \mbox{\hyperlink{group__Eet__Data__Group_ga3e2b601720973d0e1f4683768a593c4d}{eet\+\_\+data\+\_\+descriptor\+\_\+free()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_gafb2ec7b42409c49ca80b0f83716412e7}\label{group__Eet__Data__Group_gafb2ec7b42409c49ca80b0f83716412e7}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_descriptor\_name\_get@{eet\_data\_descriptor\_name\_get}}
\index{eet\_data\_descriptor\_name\_get@{eet\_data\_descriptor\_name\_get}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_descriptor\_name\_get()}{eet\_data\_descriptor\_name\_get()}}
{\footnotesize\ttfamily EAPI const char $\ast$ eet\+\_\+data\+\_\+descriptor\+\_\+name\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{edd }\end{DoxyParamCaption})}



This function returns the name of a data descriptor. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to get name. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The name of the data descriptor.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+8.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Eet__Data__Group_ga450fd478c0c2531a5d2beb4f1af7cd34}\label{group__Eet__Data__Group_ga450fd478c0c2531a5d2beb4f1af7cd34}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_descriptor\_element\_add@{eet\_data\_descriptor\_element\_add}}
\index{eet\_data\_descriptor\_element\_add@{eet\_data\_descriptor\_element\_add}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_descriptor\_element\_add()}{eet\_data\_descriptor\_element\_add()}}
{\footnotesize\ttfamily EAPI void eet\+\_\+data\+\_\+descriptor\+\_\+element\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{edd,  }\item[{const char $\ast$}]{name,  }\item[{int}]{type,  }\item[{int}]{group\+\_\+type,  }\item[{int}]{offset,  }\item[{int}]{count,  }\item[{const char $\ast$}]{counter\+\_\+name,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{subtype }\end{DoxyParamCaption})}



This function is an internal used by macros. 

This function is used by macros \mbox{\hyperlink{group__Eet__Data__Group_gac38ce778d7eba37cfca8a19efb7a9b3a}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+BASIC()}}, \mbox{\hyperlink{group__Eet__Data__Group_ga6c1f33c4c503be76f64555c3ab999725}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+SUB()}} and \mbox{\hyperlink{group__Eet__Data__Group_gabb4c7833ba053f2322e6b667a9ec7f04}{EET\+\_\+\+DATA\+\_\+\+DESCRIPTOR\+\_\+\+ADD\+\_\+\+LIST()}}. It is complex to use by hand and should be left to be used by the macros, and thus is not documented.


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor handle to add element (member). \\
\hline
{\em name} & The name of element to be serialized. \\
\hline
{\em type} & The type of element to be serialized, like \mbox{\hyperlink{group__Eet__Data__Group_ga4e196733795867f14c6e387af7287baa}{EET\+\_\+\+T\+\_\+\+INT}}. If \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\+\_\+\+T\+\_\+\+UNKNOW}}, then it is considered to be a group, list or hash. \\
\hline
{\em group\+\_\+type} & If element type is \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\+\_\+\+T\+\_\+\+UNKNOW}}, then the {\ttfamily group\+\_\+type} will specify if it is a list (\mbox{\hyperlink{group__Eet__Data__Group_gadcfddbc1928d1068eba93326201c6232}{EET\+\_\+\+G\+\_\+\+LIST}}), array (\mbox{\hyperlink{group__Eet__Data__Group_ga0db274e50f3cc8c9e4844d94d63a4433}{EET\+\_\+\+G\+\_\+\+ARRAY}}) and so on. If \mbox{\hyperlink{group__Eet__Data__Group_gae97a13f08f6f48335a60e2a910aec41f}{EET\+\_\+\+G\+\_\+\+UNKNOWN}}, then the member is a subtype (pointer to another type defined by another \mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}}). \\
\hline
{\em offset} & byte offset inside the source memory to be serialized. \\
\hline
{\em count} & number of elements (if \mbox{\hyperlink{group__Eet__Data__Group_ga0db274e50f3cc8c9e4844d94d63a4433}{EET\+\_\+\+G\+\_\+\+ARRAY}} or \mbox{\hyperlink{group__Eet__Data__Group_gaa1ca41d2def763d6f5ce4d94eaf2581d}{EET\+\_\+\+G\+\_\+\+VAR\+\_\+\+ARRAY}}). \\
\hline
{\em counter\+\_\+name} & variable that defines the name of number of elements. \\
\hline
{\em subtype} & If contains a subtype, then its data descriptor.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eet__Data__Group_ga450fd478c0c2531a5d2beb4f1af7cd34}{eet\+\_\+data\+\_\+descriptor\+\_\+element\+\_\+add()}}, \mbox{\hyperlink{group__Eet__Data__Group_ga6f151c2439d3149c7efde702165f88e6}{EET\+\_\+\+G\+\_\+\+LAST}}, \mbox{\hyperlink{group__Eet__Data__Group_ga52795c9c05702fbcd4e7df2952b492da}{EET\+\_\+\+G\+\_\+\+UNION}}, \mbox{\hyperlink{group__Eet__Data__Group_gae97a13f08f6f48335a60e2a910aec41f}{EET\+\_\+\+G\+\_\+\+UNKNOWN}}, \mbox{\hyperlink{group__Eet__Data__Group_gaa1ca41d2def763d6f5ce4d94eaf2581d}{EET\+\_\+\+G\+\_\+\+VAR\+\_\+\+ARRAY}}, \mbox{\hyperlink{group__Eet__Data__Group_ga2c61448d5d371152de980526819404dd}{EET\+\_\+\+G\+\_\+\+VARIANT}}, \mbox{\hyperlink{group__Eet__Data__Group_ga74d89b710e845c708ae7b0ca98016957}{EET\+\_\+\+T\+\_\+\+CHAR}}, \mbox{\hyperlink{group__Eet__Data__Group_gac4e1fc36a3042aec9e90832046994a08}{EET\+\_\+\+T\+\_\+\+F32\+P32}}, \mbox{\hyperlink{group__Eet__Data__Group_ga844a1125845d282948fe8081c983975c}{EET\+\_\+\+T\+\_\+\+F8\+P24}}, \mbox{\hyperlink{group__Eet__Data__Group_ga6f7f811187af5c15535ca56c69bd5f7e}{EET\+\_\+\+T\+\_\+\+LAST}}, \mbox{\hyperlink{group__Eet__Data__Group_gac984c4b3f0ad353a14679cf39a70ebd7}{EET\+\_\+\+T\+\_\+\+ULONG\+\_\+\+LONG}}, \mbox{\hyperlink{group__Eet__Data__Group_ga23f233441eb2d0eccafe51c1641ff5c9}{EET\+\_\+\+T\+\_\+\+UNKNOW}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.



Referenced by \mbox{\hyperlink{group__Eet__Data__Group_ga450fd478c0c2531a5d2beb4f1af7cd34}{eet\+\_\+data\+\_\+descriptor\+\_\+element\+\_\+add()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_ga4c09f4dfb051baabc0c0551ea98b6830}\label{group__Eet__Data__Group_ga4c09f4dfb051baabc0c0551ea98b6830}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_read@{eet\_data\_read}}
\index{eet\_data\_read@{eet\_data\_read}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_read()}{eet\_data\_read()}}
{\footnotesize\ttfamily EAPI void $\ast$ eet\+\_\+data\+\_\+read (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{edd,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



Reads a data structure from an eet file and decodes it. 


\begin{DoxyParams}{Parameters}
{\em ef} & The eet file handle to read from. \\
\hline
{\em edd} & The data descriptor handle to use when decoding. \\
\hline
{\em name} & The key the data is stored under in the eet file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to the decoded data structure.
\end{DoxyReturn}
This function decodes a data structure stored in an eet file, returning a pointer to it if it decoded successfully, or NULL on failure. This can save a programmer dozens of hours of work in writing configuration file parsing and writing code, as eet does all that work for the program and presents a program-\/friendly data structure, just as the programmer likes. Eet can handle members being added or deleted from the data in storage and safely zero-\/fills unfilled members if they were not found in the data. It checks sizes and headers whenever it reads data, allowing the programmer to not worry about corrupt data.

Once a data structure has been described by the programmer with the fields they wish to save or load, storing or retrieving a data structure from an eet file, or from a chunk of memory is as simple as a single function call.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Cipher__Group_gae9ce74bcfb4be47d2bb8c7e87090812f}{eet\+\_\+data\+\_\+read\+\_\+cipher()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}, \mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}, \mbox{\hyperlink{eet-data-nested_8c-example}{eet-\/data-\/nested.\+c}}, and \mbox{\hyperlink{eet-data-simple_8c-example}{eet-\/data-\/simple.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eet__Data__Cipher__Group_gae9ce74bcfb4be47d2bb8c7e87090812f}{eet\+\_\+data\+\_\+read\+\_\+cipher()}}.



Referenced by \mbox{\hyperlink{Edje__Edit_8h_ad260faf7c12f8f81f3194f970f17fd13}{edje\+\_\+edit\+\_\+group\+\_\+copy()}}, and \mbox{\hyperlink{group__Edje__Object__File_ga73184b169c80006c15050d8638886517}{edje\+\_\+mmap\+\_\+color\+\_\+class\+\_\+used\+\_\+list()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_gac66d1c49e3490bc5d803982d833ff8aa}\label{group__Eet__Data__Group_gac66d1c49e3490bc5d803982d833ff8aa}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_write@{eet\_data\_write}}
\index{eet\_data\_write@{eet\_data\_write}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_write()}{eet\_data\_write()}}
{\footnotesize\ttfamily EAPI int eet\+\_\+data\+\_\+write (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{edd,  }\item[{const char $\ast$}]{name,  }\item[{const void $\ast$}]{data,  }\item[{int}]{compress }\end{DoxyParamCaption})}



Writes a data structure from memory and store in an eet file. 


\begin{DoxyParams}{Parameters}
{\em ef} & The eet file handle to write to. \\
\hline
{\em edd} & The data descriptor to use when encoding. \\
\hline
{\em name} & The key to store the data under in the eet file. \\
\hline
{\em data} & A pointer to the data structure to save and encode. \\
\hline
{\em compress} & Compression flags for storage. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
bytes Written on successful write, {\ttfamily 0} on failure.
\end{DoxyReturn}
This function is the reverse of \mbox{\hyperlink{group__Eet__Data__Group_ga4c09f4dfb051baabc0c0551ea98b6830}{eet\+\_\+data\+\_\+read()}}, saving a data structure to an eet file. The file must have been opening in write mode and the data will be kept in memory until the file is either closed or \mbox{\hyperlink{group__Eet__File__Group_gaf343f344180955ed898aa86b90ebefda}{eet\+\_\+sync()}} is called to flush any unwritten changes.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Cipher__Group_ga9e46230c55006296f141ed9a5807c759}{eet\+\_\+data\+\_\+write\+\_\+cipher()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-file_descriptor_01_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+01.\+c}}, \mbox{\hyperlink{eet-data-file_descriptor_02_8c-example}{eet-\/data-\/file\+\_\+descriptor\+\_\+02.\+c}}, \mbox{\hyperlink{eet-data-nested_8c-example}{eet-\/data-\/nested.\+c}}, and \mbox{\hyperlink{eet-data-simple_8c-example}{eet-\/data-\/simple.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eet__Data__Cipher__Group_ga9e46230c55006296f141ed9a5807c759}{eet\+\_\+data\+\_\+write\+\_\+cipher()}}.



Referenced by \mbox{\hyperlink{Edje__Edit_8h_ad260faf7c12f8f81f3194f970f17fd13}{edje\+\_\+edit\+\_\+group\+\_\+copy()}}, and \mbox{\hyperlink{Edje__Edit_8h_aa7d4471d51ba07723006725ae6c7f605}{edje\+\_\+edit\+\_\+without\+\_\+source\+\_\+save()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_ga4160a247c086955b4734af896b6fd270}\label{group__Eet__Data__Group_ga4160a247c086955b4734af896b6fd270}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_text\_dump@{eet\_data\_text\_dump}}
\index{eet\_data\_text\_dump@{eet\_data\_text\_dump}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_text\_dump()}{eet\_data\_text\_dump()}}
{\footnotesize\ttfamily EAPI int eet\+\_\+data\+\_\+text\+\_\+dump (\begin{DoxyParamCaption}\item[{const void $\ast$}]{data\+\_\+in,  }\item[{int}]{size\+\_\+in,  }\item[{Eet\+\_\+\+Dump\+\_\+\+Callback}]{dumpfunc,  }\item[{void $\ast$}]{dumpdata }\end{DoxyParamCaption})}



Dumps an eet encoded data structure into ascii text. 


\begin{DoxyParams}{Parameters}
{\em data\+\_\+in} & The pointer to the data to decode into a struct. \\
\hline
{\em size\+\_\+in} & The size of the data pointed to in bytes. \\
\hline
{\em dumpfunc} & The function to call passed a string when new data is converted to text \\
\hline
{\em dumpdata} & The data to pass to the {\ttfamily dumpfunc} callback. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily 1} on success, {\ttfamily 0} on failure
\end{DoxyReturn}
This function will take a chunk of data encoded by \mbox{\hyperlink{group__Eet__Data__Group_gac9b29a0c31eabcfb0e660946cdd49dc5}{eet\+\_\+data\+\_\+descriptor\+\_\+encode()}} and convert it into human readable ascii text. It does this by calling the {\ttfamily dumpfunc} callback for all new text that is generated. This callback should append to any existing text buffer and will be passed the pointer {\ttfamily dumpdata} as a parameter as well as a string with new text to be appended.

Example\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ output(\textcolor{keywordtype}{void}\ *data,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\textcolor{keywordtype}{string})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ printf(\textcolor{stringliteral}{"{}\%s"{}},\ \textcolor{keywordtype}{string});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ dump(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *file)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ FILE\ *f;}
\DoxyCodeLine{\ \ \textcolor{keywordtype}{int}\ len;}
\DoxyCodeLine{\ \ \textcolor{keywordtype}{void}\ *data;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ f\ =\ fopen(file,\ \textcolor{stringliteral}{"{}rb"{}});}
\DoxyCodeLine{\ \ fseek(f,\ 0,\ SEEK\_END);}
\DoxyCodeLine{\ \ len\ =\ ftell(f);}
\DoxyCodeLine{\ \ rewind(f);}
\DoxyCodeLine{\ \ data\ =\ malloc(len);}
\DoxyCodeLine{\ \ fread(data,\ len,\ 1,\ f);}
\DoxyCodeLine{\ \ fclose(f);}
\DoxyCodeLine{\ \ \mbox{\hyperlink{group__Eet__Data__Group_ga4160a247c086955b4734af896b6fd270}{eet\_data\_text\_dump}}(data,\ len,\ output,\ NULL);}
\DoxyCodeLine{\}}

\end{DoxyCode}


\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Cipher__Group_gac85bb8a9b46804288bb5e37caf21fd1c}{eet\+\_\+data\+\_\+text\+\_\+dump\+\_\+cipher()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eet__Data__Cipher__Group_gac85bb8a9b46804288bb5e37caf21fd1c}{eet\+\_\+data\+\_\+text\+\_\+dump\+\_\+cipher()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_gad9bc93de70df6130fad97f6f967212a5}\label{group__Eet__Data__Group_gad9bc93de70df6130fad97f6f967212a5}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_text\_undump@{eet\_data\_text\_undump}}
\index{eet\_data\_text\_undump@{eet\_data\_text\_undump}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_text\_undump()}{eet\_data\_text\_undump()}}
{\footnotesize\ttfamily EAPI void $\ast$ eet\+\_\+data\+\_\+text\+\_\+undump (\begin{DoxyParamCaption}\item[{const char $\ast$}]{text,  }\item[{int}]{textlen,  }\item[{int $\ast$}]{size\+\_\+ret }\end{DoxyParamCaption})}



Takes an ascii encoding from \mbox{\hyperlink{group__Eet__Data__Group_ga4160a247c086955b4734af896b6fd270}{eet\+\_\+data\+\_\+text\+\_\+dump()}} and re-\/encode in binary. 


\begin{DoxyParams}{Parameters}
{\em text} & The pointer to the string data to parse and encode. \\
\hline
{\em textlen} & The size of the string in bytes (not including 0 byte terminator). \\
\hline
{\em size\+\_\+ret} & This gets filled in with the encoded data blob size in bytes. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The encoded data on success, NULL on failure.
\end{DoxyReturn}
This function will parse the string pointed to by {\ttfamily text} and return an encoded data lump the same way \mbox{\hyperlink{group__Eet__Data__Group_gac9b29a0c31eabcfb0e660946cdd49dc5}{eet\+\_\+data\+\_\+descriptor\+\_\+encode()}} takes an in-\/memory data struct and encodes into a binary blob. {\ttfamily text} is a normal C string.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Cipher__Group_gae5d6e333a712e2ae0d85cca05e7bf9fe}{eet\+\_\+data\+\_\+text\+\_\+undump\+\_\+cipher()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eet__Data__Cipher__Group_gae5d6e333a712e2ae0d85cca05e7bf9fe}{eet\+\_\+data\+\_\+text\+\_\+undump\+\_\+cipher()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_ga33b90cc41fe0e6fffc6b4fb0c8c62a99}\label{group__Eet__Data__Group_ga33b90cc41fe0e6fffc6b4fb0c8c62a99}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_dump@{eet\_data\_dump}}
\index{eet\_data\_dump@{eet\_data\_dump}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_dump()}{eet\_data\_dump()}}
{\footnotesize\ttfamily EAPI int eet\+\_\+data\+\_\+dump (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{const char $\ast$}]{name,  }\item[{Eet\+\_\+\+Dump\+\_\+\+Callback}]{dumpfunc,  }\item[{void $\ast$}]{dumpdata }\end{DoxyParamCaption})}



Dumps an eet encoded data structure from an eet file into ascii text. 


\begin{DoxyParams}{Parameters}
{\em ef} & A valid eet file handle. \\
\hline
{\em name} & Name of the entry. eg\+: \char`\"{}/base/file\+\_\+i\+\_\+want\char`\"{}. \\
\hline
{\em dumpfunc} & The function to call passed a string when new data is converted to text \\
\hline
{\em dumpdata} & The data to pass to the {\ttfamily dumpfunc} callback. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily 1} on success, {\ttfamily 0} on failure
\end{DoxyReturn}
This function will take an open and valid eet file from \mbox{\hyperlink{group__Eet__File__Group_ga675160a758832ee812edf7f64ed30ee6}{eet\+\_\+open()}} request the data encoded by \mbox{\hyperlink{group__Eet__Data__Group_gac9b29a0c31eabcfb0e660946cdd49dc5}{eet\+\_\+data\+\_\+descriptor\+\_\+encode()}} corresponding to the key {\ttfamily name} and convert it into human readable ascii text. It does this by calling the {\ttfamily dumpfunc} callback for all new text that is generated. This callback should append to any existing text buffer and will be passed the pointer {\ttfamily dumpdata} as a parameter as well as a string with new text to be appended.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Cipher__Group_ga5f80e7c90720422ee595f229fd8fcbef}{eet\+\_\+data\+\_\+dump\+\_\+cipher()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eet__Data__Cipher__Group_ga5f80e7c90720422ee595f229fd8fcbef}{eet\+\_\+data\+\_\+dump\+\_\+cipher()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_gafb1d3207c31e349ed184645e21aa838d}\label{group__Eet__Data__Group_gafb1d3207c31e349ed184645e21aa838d}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_undump@{eet\_data\_undump}}
\index{eet\_data\_undump@{eet\_data\_undump}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_undump()}{eet\_data\_undump()}}
{\footnotesize\ttfamily EAPI int eet\+\_\+data\+\_\+undump (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__File__Group_ga8d9779184a9870c1a225f1f40c76e8a7}{Eet\+\_\+\+File}} $\ast$}]{ef,  }\item[{const char $\ast$}]{name,  }\item[{const char $\ast$}]{text,  }\item[{int}]{textlen,  }\item[{int}]{compress }\end{DoxyParamCaption})}



Takes an ascii encoding from \mbox{\hyperlink{group__Eet__Data__Group_ga33b90cc41fe0e6fffc6b4fb0c8c62a99}{eet\+\_\+data\+\_\+dump()}} and re-\/encode in binary. 


\begin{DoxyParams}{Parameters}
{\em ef} & A valid eet file handle. \\
\hline
{\em name} & Name of the entry. eg\+: \char`\"{}/base/file\+\_\+i\+\_\+want\char`\"{}. \\
\hline
{\em text} & The pointer to the string data to parse and encode. \\
\hline
{\em textlen} & The size of the string in bytes (not including 0 byte terminator). \\
\hline
{\em compress} & Compression flags (1 == compress, 0 = don\textquotesingle{}t compress). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily 1} on success, {\ttfamily 0} on failure
\end{DoxyReturn}
This function will parse the string pointed to by {\ttfamily text}, encode it the same way \mbox{\hyperlink{group__Eet__Data__Group_gac9b29a0c31eabcfb0e660946cdd49dc5}{eet\+\_\+data\+\_\+descriptor\+\_\+encode()}} takes an in-\/memory data struct and encodes into a binary blob.

The data (optionally compressed) will be in ram, pending a flush to disk (it will stay in ram till the eet file handle is closed though).

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Cipher__Group_ga58060eca71513b8634a32e076dc8dd85}{eet\+\_\+data\+\_\+undump\+\_\+cipher()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eet__Data__Cipher__Group_ga58060eca71513b8634a32e076dc8dd85}{eet\+\_\+data\+\_\+undump\+\_\+cipher()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_gaa050d172c60add6af4bbc30fc672f960}\label{group__Eet__Data__Group_gaa050d172c60add6af4bbc30fc672f960}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_descriptor\_decode@{eet\_data\_descriptor\_decode}}
\index{eet\_data\_descriptor\_decode@{eet\_data\_descriptor\_decode}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_descriptor\_decode()}{eet\_data\_descriptor\_decode()}}
{\footnotesize\ttfamily EAPI void $\ast$ eet\+\_\+data\+\_\+descriptor\+\_\+decode (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{edd,  }\item[{const void $\ast$}]{data\+\_\+in,  }\item[{int}]{size\+\_\+in }\end{DoxyParamCaption})}



Decodes a data structure from an arbitrary location in memory. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to use when decoding. \\
\hline
{\em data\+\_\+in} & The pointer to the data to decode into a struct. \\
\hline
{\em size\+\_\+in} & The size of the data pointed to in bytes. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
NULL on failure, or a valid decoded struct pointer on success.
\end{DoxyReturn}
This function will decode a data structure that has been encoded using \mbox{\hyperlink{group__Eet__Data__Group_gac9b29a0c31eabcfb0e660946cdd49dc5}{eet\+\_\+data\+\_\+descriptor\+\_\+encode()}}, and return a data structure with all its elements filled out, if successful, or NULL on failure.

The data to be decoded is stored at the memory pointed to by {\ttfamily data\+\_\+in}, and is described by the descriptor pointed to by {\ttfamily edd}. The data size is passed in as the value to {\ttfamily size\+\_\+in}, and must be greater than 0 to succeed.

This function is useful for decoding data structures delivered to the application by means other than an eet file, such as an IPC or socket connection, raw files, shared memory etc.

Please see \mbox{\hyperlink{group__Eet__Data__Group_ga4c09f4dfb051baabc0c0551ea98b6830}{eet\+\_\+data\+\_\+read()}} for more information.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Cipher__Group_ga29effd25b5a1b587e9e72289e23df01d}{eet\+\_\+data\+\_\+descriptor\+\_\+decode\+\_\+cipher()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eet__Data__Cipher__Group_ga29effd25b5a1b587e9e72289e23df01d}{eet\+\_\+data\+\_\+descriptor\+\_\+decode\+\_\+cipher()}}.

\mbox{\Hypertarget{group__Eet__Data__Group_gac9b29a0c31eabcfb0e660946cdd49dc5}\label{group__Eet__Data__Group_gac9b29a0c31eabcfb0e660946cdd49dc5}} 
\index{Eet Data Serialization@{Eet Data Serialization}!eet\_data\_descriptor\_encode@{eet\_data\_descriptor\_encode}}
\index{eet\_data\_descriptor\_encode@{eet\_data\_descriptor\_encode}!Eet Data Serialization@{Eet Data Serialization}}
\doxysubsubsection{\texorpdfstring{eet\_data\_descriptor\_encode()}{eet\_data\_descriptor\_encode()}}
{\footnotesize\ttfamily EAPI void $\ast$ eet\+\_\+data\+\_\+descriptor\+\_\+encode (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eet__Data__Group_ga4baec0e840012480a0958c5c3bca276d}{Eet\+\_\+\+Data\+\_\+\+Descriptor}} $\ast$}]{edd,  }\item[{const void $\ast$}]{data\+\_\+in,  }\item[{int $\ast$}]{size\+\_\+ret }\end{DoxyParamCaption})}



Encodes a dsata struct to memory and return that encoded data. 


\begin{DoxyParams}{Parameters}
{\em edd} & The data descriptor to use when encoding. \\
\hline
{\em data\+\_\+in} & The pointer to the struct to encode into data. \\
\hline
{\em size\+\_\+ret} & pointer to the an int to be filled with the decoded size. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
NULL on failure, or a valid encoded data chunk on success.
\end{DoxyReturn}
This function takes a data structure in memory and encodes it into a serialised chunk of data that can be decoded again by \mbox{\hyperlink{group__Eet__Data__Group_gaa050d172c60add6af4bbc30fc672f960}{eet\+\_\+data\+\_\+descriptor\+\_\+decode()}}. This is useful for being able to transmit data structures across sockets, pipes, IPC or shared file mechanisms, without having to worry about memory space, machine type, endianness etc.

The parameter {\ttfamily edd} must point to a valid data descriptor, and {\ttfamily data\+\_\+in} must point to the right data structure to encode. If not, the encoding may fail.

On success a non NULL valid pointer is returned and what {\ttfamily size\+\_\+ret} points to is set to the size of this decoded data, in bytes. When the encoded data is no longer needed, call free() on it. On failure NULL is returned and what {\ttfamily size\+\_\+ret} points to is set to 0.

Please see \mbox{\hyperlink{group__Eet__Data__Group_gac66d1c49e3490bc5d803982d833ff8aa}{eet\+\_\+data\+\_\+write()}} for more information.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eet__Data__Cipher__Group_gac31bca0d53d723a7fcb6b38135f348b7}{eet\+\_\+data\+\_\+descriptor\+\_\+encode\+\_\+cipher()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+0.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eet__Data__Cipher__Group_gac31bca0d53d723a7fcb6b38135f348b7}{eet\+\_\+data\+\_\+descriptor\+\_\+encode\+\_\+cipher()}}.

