Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/file


Modified Files:
        evas_module.c 


Log Message:
don't load the same module several times
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/file/evas_module.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- evas_module.c       14 Jan 2006 19:58:55 -0000      1.6
+++ evas_module.c       14 Jan 2006 23:36:52 -0000      1.7
@@ -157,6 +157,7 @@
                  em->type = mp->type;
                  em->handle = NULL;
                  em->data = NULL;
+                  em->loaded = 0;
                  if (em->type == EVAS_MODULE_TYPE_ENGINE)
                    {
                       Evas_Module_Engine *eme;
@@ -211,6 +212,8 @@
    char buf[4096];
    void *handle;
    
+   if (em->loaded) return 1;
+
    snprintf(buf, sizeof(buf), "%s/%s/%s/module.so", 
            em->path, em->name, MODULE_ARCH);
    if (!evas_file_path_exists(buf))




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to