/plugins unload command and completer
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -100,11 +100,13 @@ typedef struct prof_plugin_t {
|
||||
void plugins_init(void);
|
||||
GSList* plugins_get_list(void);
|
||||
GSList *plugins_unloaded_list(void);
|
||||
GSList *plugins_loaded_list(void);
|
||||
char* plugins_autocomplete(const char *const input);
|
||||
void plugins_reset_autocomplete(void);
|
||||
void plugins_shutdown(void);
|
||||
|
||||
gboolean plugins_load(const char *const name);
|
||||
gboolean plugins_unload(const char *const name);
|
||||
|
||||
void plugins_on_start(void);
|
||||
void plugins_on_shutdown(void);
|
||||
|
||||
Reference in New Issue
Block a user