On Fri, 28 Oct 2011 04:21:03 -0700 "Enlightenment SVN" <[email protected]> wrote:
> Log: > A new macro to support adding arrays of basic types. > > > Author: onefang > Date: 2011-10-28 04:21:03 -0700 (Fri, 28 Oct 2011) > New Revision: 64493 > Trac: http://trac.enlightenment.org/e/changeset/64493 > > Modified: > trunk/eet/src/lib/Eet.h > > Modified: trunk/eet/src/lib/Eet.h > =================================================================== > --- trunk/eet/src/lib/Eet.h 2011-10-28 11:15:33 UTC (rev 64492) > +++ trunk/eet/src/lib/Eet.h 2011-10-28 11:21:03 UTC (rev 64493) > @@ -3104,6 +3104,35 @@ > } while (0) > > /** > + * Add an array of basic data elements to a data descriptor. > + * @param edd The data descriptor to add the type to. > + * @param struct_type The type of the struct. > + * @param name The string name to use to encode/decode this member > + * (must be a constant global and never change). > + * @param member The struct member itself to be encoded. > + * @param type The type of the member to encode. > + * > + * This macro lets you easily add a fixed size array of basic data > + * types. All the parameters are the same as for > + * EET_DATA_DESCRIPTOR_ADD_BASIC(). > + * The array must be defined with a fixed size in the declaration of the > + * struct containing it. > + * > + * @since 1.5.0 > + * @ingroup Eet_Data_Group > + */ > +#define EET_DATA_DESCRIPTOR_ADD_BASIC_ARRAY(edd, struct_type, name, member, > type) \ > + do > { \ > + struct_type > ___ett; \ > + eet_data_descriptor_element_add(edd, name, type, > EET_G_ARRAY, \ > + (char *)(& (___ett.member)) > - \ > + (char *)(& > (___ett)), \ > + > sizeof(___ett.member) / \ > + > sizeof(___ett.member[0]), \ > + NULL, > NULL); \ > + } while(0) > + > +/** > * Add a fixed size array type to a data descriptor > * @param edd The data descriptor to add the type to. > * @param struct_type The type of the struct. > > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > enlightenment-svn mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn CHANGE. LOG. -- Mike Blumenkrantz Zentific: Doctor recommended, mother approved. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
