Enlightenment CVS committal Author : chaos Project : e17 Module : proto
Dir : e17/proto/entropy/src Modified Files: entropy_core.c plugin_helper.c Log Message: * Plugin-finding API * Etk-Iconbox first commit! =================================================================== RCS file: /cvs/e/e17/proto/entropy/src/entropy_core.c,v retrieving revision 1.75 retrieving revision 1.76 diff -u -3 -r1.75 -r1.76 --- entropy_core.c 5 Apr 2006 11:25:09 -0000 1.75 +++ entropy_core.c 8 Apr 2006 08:13:35 -0000 1.76 @@ -353,7 +353,6 @@ { Entropy_Config_Mime_Binding* binding; Evas_List* l; - int found = 0; for (l = core_core->config->Loaded_Config->mime_bindings; l; ) { binding = l->data; @@ -739,8 +738,11 @@ plugin = (*entropy_plugin_init)(entropy_core_get_core()); plugin->dl_ref = dl_ref; + plugin->functions.entropy_plugin_init = entropy_plugin_init; strncpy(plugin->filename, filename, 254); + + plugin->name = entropy_plugin_plugin_identify(plugin); return plugin; } =================================================================== RCS file: /cvs/e/e17/proto/entropy/src/plugin_helper.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- plugin_helper.c 4 Apr 2006 00:06:07 -0000 1.16 +++ plugin_helper.c 8 Apr 2006 08:13:36 -0000 1.17 @@ -60,6 +60,26 @@ } +entropy_plugin* entropy_plugin_gui_get_by_name_toolkit(char* toolkit, char* name) { + entropy_plugin* plugin; + + entropy_plugin* list_item; + + Ecore_List* plugins = entropy_core_get_core()->plugin_list; + + ecore_list_goto_first(plugins); + while ( (list_item = ecore_list_next(plugins)) ) { + /*printf("Scanning '%s' for first\n", list_item->filename);*/ + if (list_item->toolkit && list_item->name) { + if (!strcmp(list_item->toolkit, toolkit) && !(strcmp(list_item->name, name))) { + return list_item; + } + } + } + + return NULL; +} + entropy_plugin* entropy_plugins_type_get_first(int type, int subtype) { entropy_plugin* list_item; ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs