aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_config_data.c
blob: 2e6010323e5beee417b1ed409d05ba4169a9875f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
 */
#include "e.h"

EAPI E_Config_DD *
e_config_descriptor_new(const char *name, int size)
{
   Eet_Data_Descriptor_Class eddc;

   if (!eet_eina_file_data_descriptor_class_set(&eddc, name, size))
     return NULL;

   /* FIXME: We can directly map string inside an Eet_File as we
      need to change every config destructor in E for that. */
   eddc.func.str_direct_alloc = NULL;
   eddc.func.str_direct_free = NULL;

   return (E_Config_DD *) eet_data_descriptor_file_new(&eddc);
}