2009-08-13 08:10:54 -07:00
|
|
|
#include "Evry.h"
|
|
|
|
|
2009-06-21 03:31:38 -07:00
|
|
|
|
2009-08-10 04:36:37 -07:00
|
|
|
#define MAX_ITEMS 100
|
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
typedef struct _Plugin Plugin;
|
2009-06-21 03:31:38 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
struct _Plugin
|
2009-06-21 03:31:38 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
Evry_Plugin base;
|
|
|
|
|
2009-06-21 03:31:38 -07:00
|
|
|
const char *directory;
|
2009-08-10 04:36:37 -07:00
|
|
|
/* all files of directory */
|
2009-06-24 13:02:37 -07:00
|
|
|
Eina_List *items;
|
2009-08-10 04:36:37 -07:00
|
|
|
/* current list of files */
|
|
|
|
Eina_List *cur;
|
2009-08-11 06:31:38 -07:00
|
|
|
Eina_Bool command;
|
2009-08-21 15:42:06 -07:00
|
|
|
Ecore_Idler *idler;
|
2009-06-21 03:31:38 -07:00
|
|
|
};
|
|
|
|
|
2009-08-12 05:17:43 -07:00
|
|
|
static Evry_Plugin *p1;
|
2009-08-10 04:36:37 -07:00
|
|
|
static Evry_Plugin *p2;
|
2009-08-15 21:08:35 -07:00
|
|
|
static Evry_Action *act;
|
2009-08-21 15:42:06 -07:00
|
|
|
|
2009-07-04 04:10:28 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
static Evry_Item *
|
2009-08-21 15:42:06 -07:00
|
|
|
_item_add(Plugin *p, const char *directory, const char *file)
|
2009-06-21 03:31:38 -07:00
|
|
|
{
|
2009-08-11 06:31:38 -07:00
|
|
|
Evry_Item *it = NULL;
|
|
|
|
char buf[4096];
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
it = evry_item_new(&p->base, file, NULL);
|
2009-08-11 06:31:38 -07:00
|
|
|
if (!it) return NULL;
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
snprintf(buf, sizeof(buf), "%s/%s", directory, file);
|
|
|
|
it->uri = eina_stringshare_add(buf);
|
2009-06-24 13:02:37 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
return it;
|
|
|
|
}
|
2009-06-21 03:31:38 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
static void
|
|
|
|
_item_fill(Evry_Item *it)
|
|
|
|
{
|
2009-08-17 18:00:18 -07:00
|
|
|
const char *mime;
|
2009-08-18 07:29:30 -07:00
|
|
|
|
2009-08-17 17:47:09 -07:00
|
|
|
if (it->mime) return;
|
2009-08-10 04:36:37 -07:00
|
|
|
|
2009-08-17 17:47:09 -07:00
|
|
|
if (ecore_file_is_dir(it->uri))
|
2009-08-11 06:31:38 -07:00
|
|
|
{
|
|
|
|
it->mime = eina_stringshare_add("x-directory/normal");
|
|
|
|
it->browseable = EINA_TRUE;
|
2009-08-17 20:15:36 -07:00
|
|
|
return;
|
2009-08-17 17:47:09 -07:00
|
|
|
}
|
2009-08-17 20:15:36 -07:00
|
|
|
|
|
|
|
/* if ((ext = strrchr(it->label, '.')))
|
2009-08-17 18:00:18 -07:00
|
|
|
* {
|
|
|
|
* if (!strcmp(ext, ".desktop") || !strcmp(ext, ".directory"))
|
|
|
|
* {
|
|
|
|
* Efreet_Desktop *desktop;
|
|
|
|
* desktop = efreet_desktop_new(it->uri);
|
|
|
|
* if (!desktop) return;
|
2009-08-17 20:15:36 -07:00
|
|
|
* eina_stringshare_del(it->label);
|
2009-08-17 18:00:18 -07:00
|
|
|
* it->label = eina_stringshare_add(desktop->name);
|
|
|
|
* it->mime = eina_stringshare_add("None");
|
|
|
|
* efreet_desktop_free(desktop);
|
|
|
|
* return;
|
|
|
|
* }
|
|
|
|
* } */
|
2009-08-17 20:15:36 -07:00
|
|
|
|
|
|
|
if ((mime = efreet_mime_type_get(it->uri)))
|
2009-08-11 06:31:38 -07:00
|
|
|
{
|
|
|
|
it->mime = eina_stringshare_add(mime);
|
2009-08-17 20:15:36 -07:00
|
|
|
return;
|
2009-08-11 06:31:38 -07:00
|
|
|
}
|
2009-08-17 20:15:36 -07:00
|
|
|
|
|
|
|
it->mime = eina_stringshare_add("None");
|
2009-06-21 03:31:38 -07:00
|
|
|
}
|
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
static int
|
|
|
|
_cb_sort(const void *data1, const void *data2)
|
2009-06-21 03:31:38 -07:00
|
|
|
{
|
2009-08-14 07:44:18 -07:00
|
|
|
const Evry_Item *it1 = data1;
|
|
|
|
const Evry_Item *it2 = data2;
|
2009-08-11 06:31:38 -07:00
|
|
|
|
2009-08-14 07:44:18 -07:00
|
|
|
if (it1->browseable && !it2->browseable)
|
|
|
|
return -1;
|
2009-08-11 06:31:38 -07:00
|
|
|
|
2009-08-14 07:44:18 -07:00
|
|
|
if (!it1->browseable && it2->browseable)
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
if (it1->fuzzy_match - it2->fuzzy_match)
|
|
|
|
return (it1->fuzzy_match - it2->fuzzy_match);
|
|
|
|
|
|
|
|
return strcasecmp(it1->label, it2->label);
|
2009-08-11 06:31:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
_dirbrowse_idler(void *data)
|
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
Plugin *p = data;
|
2009-08-11 06:31:38 -07:00
|
|
|
Eina_List *l;
|
|
|
|
Evry_Item *it;
|
2009-08-21 15:42:06 -07:00
|
|
|
int cnt = 10;
|
2009-08-11 06:31:38 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
EINA_LIST_FOREACH(p->items, l, it)
|
2009-08-11 06:31:38 -07:00
|
|
|
{
|
|
|
|
if (!it->mime)
|
|
|
|
{
|
|
|
|
_item_fill(it);
|
|
|
|
cnt--;
|
|
|
|
}
|
|
|
|
if (cnt == 0) break;
|
|
|
|
}
|
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
l = p->base.items;
|
2009-08-11 06:31:38 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
p->base.items = eina_list_sort(l, eina_list_count(l), _cb_sort);
|
|
|
|
evry_plugin_async_update(&p->base, EVRY_ASYNC_UPDATE_ADD);
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
if (cnt > 0)
|
|
|
|
{
|
|
|
|
p->idler = NULL;
|
|
|
|
return 0;
|
2009-08-11 06:31:38 -07:00
|
|
|
}
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
return 1;
|
2009-06-21 03:31:38 -07:00
|
|
|
}
|
|
|
|
|
2009-08-12 12:14:45 -07:00
|
|
|
static void
|
2009-08-21 15:42:06 -07:00
|
|
|
_read_directory(Plugin *p)
|
2009-06-21 03:31:38 -07:00
|
|
|
{
|
2009-08-10 04:36:37 -07:00
|
|
|
char *file;
|
|
|
|
Eina_List *files;
|
2009-08-12 12:14:45 -07:00
|
|
|
Evry_Item *it;
|
2009-07-04 04:10:28 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
files = ecore_file_ls(p->directory);
|
2009-08-12 05:17:43 -07:00
|
|
|
|
|
|
|
EINA_LIST_FREE(files, file)
|
2009-07-10 08:47:19 -07:00
|
|
|
{
|
2009-08-12 05:17:43 -07:00
|
|
|
it = NULL;
|
|
|
|
|
|
|
|
if (file[0] == '.')
|
|
|
|
{
|
|
|
|
free(file);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
it = _item_add(p, p->directory, file);
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-12 05:17:43 -07:00
|
|
|
if (it)
|
2009-08-21 15:42:06 -07:00
|
|
|
p->items = eina_list_append(p->items, it);
|
2009-08-12 05:17:43 -07:00
|
|
|
|
|
|
|
free(file);
|
2009-07-10 08:47:19 -07:00
|
|
|
}
|
2009-08-12 05:17:43 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
p->idler = ecore_idler_add(_dirbrowse_idler, p);
|
2009-08-12 12:14:45 -07:00
|
|
|
}
|
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
static Evry_Plugin *
|
|
|
|
_begin(Evry_Plugin *plugin, const Evry_Item *it)
|
2009-08-12 12:14:45 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
Plugin *p;
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
/* is FILE ? */
|
|
|
|
if (it && (it->plugin->type_out == plugin->type_in))
|
|
|
|
{
|
|
|
|
if (!it->uri || !ecore_file_is_dir(it->uri))
|
|
|
|
return NULL;
|
2009-06-21 03:31:38 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
p = E_NEW(Plugin, 1);
|
|
|
|
p->base = *plugin;
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
p->directory = eina_stringshare_add(it->uri);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
p = E_NEW(Plugin, 1);
|
|
|
|
p->base = *plugin;
|
2009-08-12 05:17:43 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
p->directory = eina_stringshare_add(e_user_homedir_get());
|
|
|
|
}
|
|
|
|
|
|
|
|
_read_directory(p);
|
2009-08-12 13:26:27 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
return &p->base;
|
2009-06-21 03:31:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2009-08-21 15:42:06 -07:00
|
|
|
_cleanup(Evry_Plugin *plugin)
|
2009-06-21 03:31:38 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
Plugin *p = (Plugin*) plugin;
|
2009-08-10 04:36:37 -07:00
|
|
|
Evry_Item *it;
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
if (p->directory)
|
|
|
|
eina_stringshare_del(p->directory);
|
2009-07-04 04:10:28 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
EINA_LIST_FREE(p->items, it)
|
2009-08-13 15:42:40 -07:00
|
|
|
evry_item_free(it);
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
if (p->idler)
|
|
|
|
ecore_idler_del(p->idler);
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
if (plugin->items)
|
|
|
|
eina_list_free(plugin->items);
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
E_FREE(p);
|
2009-06-21 03:31:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2009-08-21 15:42:06 -07:00
|
|
|
_fetch(Evry_Plugin *plugin, const char *input)
|
2009-06-21 03:31:38 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
Plugin *p = (Plugin*) plugin;
|
2009-06-21 03:31:38 -07:00
|
|
|
Evry_Item *it;
|
2009-08-10 04:36:37 -07:00
|
|
|
Eina_List *l;
|
|
|
|
int cnt = 0;
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
if (!p->command)
|
2009-08-11 06:31:38 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
if (p->base.items) eina_list_free(p->base.items);
|
|
|
|
plugin->items = NULL;
|
2009-08-11 06:31:38 -07:00
|
|
|
}
|
2009-08-12 05:17:43 -07:00
|
|
|
|
2009-07-10 07:08:06 -07:00
|
|
|
/* input is command ? */
|
|
|
|
if (input)
|
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
if (!strncmp(input, "/", 1))
|
|
|
|
{
|
|
|
|
if (p->command) return 1;
|
|
|
|
|
|
|
|
it = evry_item_new(&p->base, "/", NULL);
|
|
|
|
if (!it) return 0;
|
|
|
|
it->uri = eina_stringshare_add("/");
|
|
|
|
p->base.items = eina_list_append(p->base.items, it);
|
|
|
|
p->command = EINA_TRUE;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
else if (!strncmp(input, "..", 2))
|
|
|
|
{
|
|
|
|
char *end;
|
|
|
|
char dir[4096];
|
|
|
|
char *tmp;
|
|
|
|
int prio = 0;
|
|
|
|
|
|
|
|
if (p->command) return 1;
|
|
|
|
|
|
|
|
if (!strcmp(p->directory, "/")) return 0;
|
|
|
|
|
|
|
|
snprintf(dir, 4096, "%s", p->directory);
|
|
|
|
end = strrchr(dir, '/');
|
|
|
|
|
|
|
|
while (end != dir)
|
|
|
|
{
|
|
|
|
tmp = strdup(dir);
|
|
|
|
snprintf(dir, (end - dir) + 1, "%s", tmp);
|
|
|
|
it = evry_item_new(&p->base, dir, NULL);
|
|
|
|
if (!it) break;
|
|
|
|
it->uri = eina_stringshare_add(dir);
|
|
|
|
it->priority = prio;
|
|
|
|
p->base.items = eina_list_append(p->base.items, it);
|
|
|
|
end = strrchr(dir, '/');
|
|
|
|
free(tmp);
|
|
|
|
prio--;
|
|
|
|
}
|
|
|
|
|
|
|
|
it = evry_item_new(&p->base, "/", NULL);
|
|
|
|
if (!it) return 0;
|
|
|
|
it->uri = eina_stringshare_add("/");
|
|
|
|
it->priority = prio;
|
|
|
|
p->base.items = eina_list_append(p->base.items, it);
|
|
|
|
p->command = EINA_TRUE;
|
|
|
|
return 1;
|
|
|
|
}
|
2009-07-10 07:08:06 -07:00
|
|
|
}
|
2009-08-11 06:31:38 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
if (p->command)
|
2009-08-11 06:31:38 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
p->command = EINA_FALSE;
|
|
|
|
EINA_LIST_FREE(p->base.items, it)
|
|
|
|
evry_item_free(it);
|
2009-08-11 06:31:38 -07:00
|
|
|
}
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
EINA_LIST_FOREACH(p->items, l, it)
|
2009-06-21 03:31:38 -07:00
|
|
|
{
|
2009-06-21 16:39:24 -07:00
|
|
|
if (input)
|
|
|
|
{
|
2009-08-14 11:55:35 -07:00
|
|
|
int match;
|
|
|
|
if ((match = evry_fuzzy_match(it->label, input)))
|
2009-08-17 16:54:16 -07:00
|
|
|
it->fuzzy_match = match;
|
2009-08-14 07:44:18 -07:00
|
|
|
else
|
|
|
|
it = NULL;
|
2009-06-21 16:39:24 -07:00
|
|
|
}
|
2009-08-10 04:36:37 -07:00
|
|
|
|
|
|
|
if (it)
|
2009-06-21 16:39:24 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
p->base.items = eina_list_append(p->base.items, it);
|
|
|
|
if (cnt++ >= MAX_ITEMS) break;
|
2009-06-21 16:39:24 -07:00
|
|
|
}
|
2009-06-21 03:31:38 -07:00
|
|
|
}
|
2009-06-21 16:25:39 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
if (p->base.items)
|
2009-08-10 04:36:37 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
p->base.items = eina_list_sort
|
|
|
|
(p->base.items, eina_list_count(p->base.items), _cb_sort);
|
|
|
|
|
2009-08-10 04:36:37 -07:00
|
|
|
return 1;
|
|
|
|
}
|
2009-08-12 12:00:25 -07:00
|
|
|
|
2009-06-21 16:25:39 -07:00
|
|
|
return 0;
|
2009-06-21 03:31:38 -07:00
|
|
|
}
|
|
|
|
|
2009-08-10 04:36:37 -07:00
|
|
|
static Evas_Object *
|
2009-08-17 20:15:36 -07:00
|
|
|
_icon_get(Evry_Plugin *p __UNUSED__, const Evry_Item *it, Evas *e)
|
2009-06-21 03:31:38 -07:00
|
|
|
{
|
2009-08-12 12:00:25 -07:00
|
|
|
Evas_Object *o = NULL;
|
2009-06-21 03:31:38 -07:00
|
|
|
|
2009-08-10 04:36:37 -07:00
|
|
|
if (!it->mime)
|
2009-08-12 05:17:43 -07:00
|
|
|
_item_fill((Evry_Item *)it);
|
2009-08-10 04:36:37 -07:00
|
|
|
|
|
|
|
if (!it->mime) return NULL;
|
2009-07-04 04:10:28 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
if (it->browseable)
|
2009-08-18 07:29:30 -07:00
|
|
|
o = evry_icon_theme_get("folder", e);
|
2009-06-21 03:31:38 -07:00
|
|
|
else
|
2009-08-21 15:42:06 -07:00
|
|
|
o = evry_icon_mime_get(it->mime, e);
|
2009-06-21 03:31:38 -07:00
|
|
|
|
2009-08-12 12:00:25 -07:00
|
|
|
return o;
|
2009-06-21 03:31:38 -07:00
|
|
|
}
|
|
|
|
|
2009-08-15 21:08:35 -07:00
|
|
|
|
|
|
|
static int
|
|
|
|
_open_folder_check(Evry_Action *act __UNUSED__, const Evry_Item *it)
|
|
|
|
{
|
2009-08-16 09:26:49 -07:00
|
|
|
return (it->browseable && e_action_find("fileman"));
|
2009-08-15 21:08:35 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2009-08-21 15:42:06 -07:00
|
|
|
_open_folder_action(Evry_Action *act __UNUSED__, const Evry_Item *it,
|
|
|
|
const Evry_Item *it2 __UNUSED__, const char *input __UNUSED__)
|
2009-08-15 21:47:43 -07:00
|
|
|
{
|
2009-08-15 21:08:35 -07:00
|
|
|
E_Action *action = e_action_find("fileman");
|
2009-08-15 21:47:43 -07:00
|
|
|
char *path;
|
2009-08-15 21:08:35 -07:00
|
|
|
Eina_List *m;
|
2009-08-15 21:47:43 -07:00
|
|
|
|
2009-08-15 21:08:35 -07:00
|
|
|
if (!action) return 0;
|
|
|
|
|
|
|
|
m = e_manager_list();
|
2009-08-15 21:47:43 -07:00
|
|
|
|
|
|
|
if (!it->browseable)
|
|
|
|
{
|
|
|
|
path = ecore_file_dir_get(it->uri);
|
|
|
|
if (!path) return 0;
|
|
|
|
action->func.go(E_OBJECT(m->data), path);
|
|
|
|
free(path);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
action->func.go(E_OBJECT(m->data), it->uri);
|
|
|
|
}
|
2009-08-15 21:08:35 -07:00
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
static Eina_Bool
|
|
|
|
_init(void)
|
2009-06-21 03:31:38 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
p1 = evry_plugin_new(NULL, "Files", type_subject, "FILE", "FILE", 0, NULL, NULL,
|
|
|
|
_begin, _cleanup, _fetch, NULL, _icon_get,
|
2009-08-17 20:15:36 -07:00
|
|
|
NULL, NULL);
|
2009-07-04 04:10:28 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
p2 = evry_plugin_new(NULL, "Files", type_object, "FILE", "FILE", 0, NULL, NULL,
|
|
|
|
_begin, _cleanup, _fetch, NULL, _icon_get,
|
2009-08-17 20:15:36 -07:00
|
|
|
NULL, NULL);
|
2009-08-18 07:29:30 -07:00
|
|
|
|
2009-08-17 20:15:36 -07:00
|
|
|
evry_plugin_register(p1, 3);
|
2009-08-16 09:26:49 -07:00
|
|
|
evry_plugin_register(p2, 1);
|
2009-06-21 03:31:38 -07:00
|
|
|
|
2009-08-21 15:42:06 -07:00
|
|
|
act = evry_action_new("Open Folder (EFM)", "FILE", NULL, NULL, "folder-open",
|
2009-08-18 07:29:30 -07:00
|
|
|
_open_folder_action, _open_folder_check, NULL);
|
|
|
|
|
2009-08-15 21:08:35 -07:00
|
|
|
evry_action_register(act);
|
2009-08-15 21:47:43 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
return EINA_TRUE;
|
2009-06-21 03:31:38 -07:00
|
|
|
}
|
2009-08-10 04:36:37 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
static void
|
|
|
|
_shutdown(void)
|
2009-08-10 04:36:37 -07:00
|
|
|
{
|
2009-08-21 15:42:06 -07:00
|
|
|
evry_plugin_free(p1, 1);
|
|
|
|
evry_plugin_free(p2, 1);
|
|
|
|
|
2009-08-18 07:29:30 -07:00
|
|
|
evry_action_free(act);
|
2009-08-10 04:36:37 -07:00
|
|
|
}
|
2009-08-11 06:31:38 -07:00
|
|
|
|
2009-08-18 07:29:30 -07:00
|
|
|
|
2009-08-11 06:31:38 -07:00
|
|
|
EINA_MODULE_INIT(_init);
|
|
|
|
EINA_MODULE_SHUTDOWN(_shutdown);
|