2007-09-25 07:26:36 -07:00
|
|
|
#include "e.h"
|
|
|
|
|
|
|
|
EAPI E_Config_DD *
|
|
|
|
e_config_descriptor_new(const char *name, int size)
|
|
|
|
{
|
|
|
|
Eet_Data_Descriptor_Class eddc;
|
2009-09-03 05:05:49 -07:00
|
|
|
|
2010-08-13 09:50:55 -07:00
|
|
|
if (!eet_eina_stream_data_descriptor_class_set(&eddc, sizeof (eddc), name, size))
|
2009-09-03 05:05:49 -07:00
|
|
|
return NULL;
|
|
|
|
|
2010-04-07 06:54:33 -07:00
|
|
|
/* FIXME: We can directly map string inside an Eet_File and reuse it.
|
|
|
|
But this need a break in all user of config every where in E.
|
|
|
|
*/
|
2009-09-03 05:05:49 -07:00
|
|
|
|
2010-04-07 06:54:33 -07:00
|
|
|
return (E_Config_DD *) eet_data_descriptor_stream_new(&eddc);
|
2007-09-25 07:26:36 -07:00
|
|
|
}
|