Rename public to definition as public is a reserved word in c++
authorlmunch <lmunch@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 17 Jun 2009 13:10:00 +0000 (13:10 +0000)
committerlmunch <lmunch@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 17 Jun 2009 13:10:00 +0000 (13:10 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@41077 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/file/evas_module.c
src/lib/file/evas_module.h

index da5a382..6d44fe4 100644 (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
index 591f8b9..8699b6b 100644 (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 */