Skip to content

Commit

Permalink
Fixup 0def4f5 #2 (plugins: introduce load and unload functions for pl…
Browse files Browse the repository at this point in the history
…ugins)

Please squash!
  • Loading branch information
kugel- committed Sep 24, 2015
1 parent d148920 commit 85a1674
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/plugins.c
Expand Up @@ -1096,21 +1096,18 @@ static void
load_plugins_from_path(const gchar *path)
{
GSList *list, *item;
gchar *fname, *tmp;
gint count = 0;
PluginProxy *proxy;

list = utils_get_file_list(path, NULL, NULL);

for (item = list; item != NULL; item = g_slist_next(item))
{
fname = g_build_filename(path, item->data, NULL);
proxy = is_plugin(fname);
if (proxy != NULL)
{
if (plugin_new(proxy->plugin, fname, FALSE, TRUE))
gchar *fname = g_build_filename(path, item->data, NULL);
PluginProxy *proxy = is_plugin(fname);

if (proxy != NULL && plugin_new(proxy->plugin, fname, FALSE, TRUE))
count++;
}

g_free(fname);
}

Expand Down

0 comments on commit 85a1674

Please sign in to comment.