/plugins unload command and completer

This commit is contained in:
James Booth
2016-06-30 23:14:05 +01:00
parent 56480ce9ea
commit ef6bad483e
7 changed files with 76 additions and 2 deletions

View File

@@ -172,6 +172,12 @@ plugins_load(const char *const name)
}
}
gboolean
plugins_unload(const char *const name)
{
return FALSE;
}
GSList *
plugins_get_list(void)
{
@@ -218,6 +224,20 @@ plugins_unloaded_list(void)
return result;
}
GSList*
plugins_loaded_list(void)
{
GSList *result = NULL;
GSList *curr = plugins;
while (curr) {
ProfPlugin *plugin = curr->data;
result = g_slist_append(result, plugin->name);
curr = g_slist_next(curr);
}
return result;
}
char *
plugins_autocomplete(const char * const input)
{