Enlightenment CVS committal
Author : devilhorns
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore
Modified Files:
ecore_plugin.c
Log Message:
Format to 'E' style.
Note: No functional changes, only formatting.
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_plugin.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ecore_plugin.c 6 Jan 2006 17:58:12 -0000 1.7
+++ ecore_plugin.c 23 Jun 2006 06:41:20 -0000 1.8
@@ -1,7 +1,7 @@
#ifndef WIN32
-#include <dlfcn.h>
-#include "ecore_private.h"
-#include "Ecore_Data.h"
+# include <dlfcn.h>
+# include "ecore_private.h"
+# include "Ecore_Data.h"
static Ecore_List *loaded_plugins = NULL;
@@ -22,44 +22,44 @@
EAPI Ecore_Plugin *
ecore_plugin_load(int group_id, char *plugin_name)
{
- char *path;
- char temp[PATH_MAX];
+ char *path;
+ char temp[PATH_MAX];
- Ecore_Plugin *plugin;
- void *handle = NULL;
+ Ecore_Plugin *plugin;
+ void *handle = NULL;
- CHECK_PARAM_POINTER_RETURN("plugin_name", plugin_name, NULL);
+ CHECK_PARAM_POINTER_RETURN("plugin_name", plugin_name, NULL);
- snprintf(temp, PATH_MAX, "%s.so", plugin_name);
- path = ecore_path_group_find(group_id, temp);
- if (!path)
- return NULL;
+ snprintf(temp, PATH_MAX, "%s.so", plugin_name);
+ path = ecore_path_group_find(group_id, temp);
+ if (!path)
+ return NULL;
- handle = dlopen(path, RTLD_LAZY);
- if (!handle)
- return NULL;
+ handle = dlopen(path, RTLD_LAZY);
+ if (!handle)
+ return NULL;
- /*
- * Allocate the new plugin and initialize it's fields
- */
- plugin = malloc(sizeof(Ecore_Plugin));
- memset(plugin, 0, sizeof(Ecore_Plugin));
+ /*
+ * Allocate the new plugin and initialize it's fields
+ */
+ plugin = malloc(sizeof(Ecore_Plugin));
+ memset(plugin, 0, sizeof(Ecore_Plugin));
- plugin->group = group_id;
- plugin->name = strdup(plugin_name);
- plugin->handle = handle;
+ plugin->group = group_id;
+ plugin->name = strdup(plugin_name);
+ plugin->handle = handle;
- /*
- * Now add it to the list of the groups loaded plugins
- */
- if (!loaded_plugins)
- loaded_plugins = ecore_list_new();
+ /*
+ * Now add it to the list of the groups loaded plugins
+ */
+ if (!loaded_plugins)
+ loaded_plugins = ecore_list_new();
- ecore_list_append(loaded_plugins, plugin);
+ ecore_list_append(loaded_plugins, plugin);
- FREE(path);
+ FREE(path);
- return plugin;
+ return plugin;
}
/**
@@ -68,20 +68,20 @@
* @ingroup Ecore_Plugin
*/
EAPI void
-ecore_plugin_unload(Ecore_Plugin * plugin)
+ecore_plugin_unload(Ecore_Plugin *plugin)
{
- CHECK_PARAM_POINTER("plugin", plugin);
+ CHECK_PARAM_POINTER("plugin", plugin);
- if (!plugin->handle)
- return;
+ if (!plugin->handle)
+ return;
- if (ecore_list_goto(loaded_plugins, plugin))
- ecore_list_remove(loaded_plugins);
+ if (ecore_list_goto(loaded_plugins, plugin))
+ ecore_list_remove(loaded_plugins);
- dlclose(plugin->handle);
+ dlclose(plugin->handle);
- FREE(plugin->name);
- FREE(plugin);
+ FREE(plugin->name);
+ FREE(plugin);
}
/*
@@ -92,18 +92,18 @@
* @ingroup Ecore_Plugin
*/
EAPI void *
-ecore_plugin_call(Ecore_Plugin * plugin, char *symbol_name)
+ecore_plugin_call(Ecore_Plugin *plugin, char *symbol_name)
{
- void *ret;
+ void *ret;
- CHECK_PARAM_POINTER_RETURN("plugin", plugin, NULL);
- CHECK_PARAM_POINTER_RETURN("symbol_name", symbol_name, NULL);
+ CHECK_PARAM_POINTER_RETURN("plugin", plugin, NULL);
+ CHECK_PARAM_POINTER_RETURN("symbol_name", symbol_name, NULL);
- if (!plugin->handle)
- return NULL;
+ if (!plugin->handle)
+ return NULL;
- ret = dlsym(plugin->handle, symbol_name);
+ ret = dlsym(plugin->handle, symbol_name);
- return ret;
+ return ret;
}
#endif
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs