em = calloc(1, sizeof (Evas_Module));
if (!em) return EINA_FALSE;
- em->public = module;
+ em->definition = module;
if (type == EVAS_MODULE_TYPE_ENGINE)
{
if (!module) return EINA_FALSE;
em = eina_hash_find(evas_modules[type], module->name);
- if (!em || em->public != module) return EINA_FALSE;
+ if (!em || em->definition != module) return EINA_FALSE;
if (type == EVAS_MODULE_TYPE_ENGINE)
eina_array_data_set(evas_engines, em->id_engine, NULL);
evas_module_load(Evas_Module *em)
{
if (em->loaded) return 1;
- if (em->public == NULL) return 0;
+ if (em->definition == NULL) return 0;
- if (!em->public->func.open(em)) return 0;
+ if (!em->definition->func.open(em)) return 0;
em->loaded = 1;
#ifdef BUILD_ASYNC_PRELOAD
{
if (!em->loaded)
return;
- if (em->public == NULL)
+ if (em->definition == NULL)
return ;
- em->public->func.close(em);
+ em->definition->func.close(em);
em->loaded = 0;
#ifdef BUILD_ASYNC_PRELOAD
/* the module structure */
struct _Evas_Module
{
- const Evas_Module_Api *public;
+ const Evas_Module_Api *definition;
void *functions; /* this are the functions exported by the module */
int id_engine; /* some internal data for the module i.e the id for engines */