Rename public to definition as public is a reserved word in c++

SVN revision: 41077
This commit is contained in:
Lars Munch 2009-06-17 13:10:00 +00:00
parent 3f064e8818
commit b4c12e8efe
2 changed files with 7 additions and 7 deletions

View File

@ -256,7 +256,7 @@ evas_module_register(const Evas_Module_Api *module, Evas_Module_Type type)
em = calloc(1, sizeof (Evas_Module));
if (!em) return EINA_FALSE;
em->public = module;
em->definition = module;
if (type == EVAS_MODULE_TYPE_ENGINE)
{
@ -278,7 +278,7 @@ evas_module_unregister(const Evas_Module_Api *module, Evas_Module_Type type)
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);
@ -374,9 +374,9 @@ int
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
@ -390,10 +390,10 @@ evas_module_unload(Evas_Module *em)
{
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

View File

@ -39,7 +39,7 @@ struct _Evas_Module_Api
/* 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 */