diff options
author | James Booth <boothj5@gmail.com> | 2016-02-18 21:53:20 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-02-18 21:53:20 +0000 |
commit | 0ed3b53bd2a160b81cf16d1b4915164138205eb2 (patch) | |
tree | 86fab412fd899b445c161b32b2a966a468e84069 /src/plugins/callbacks.c | |
parent | a152d7fb8eee8b1d39445d5a4c40cfc973aff11a (diff) | |
download | profani-tty-0ed3b53bd2a160b81cf16d1b4915164138205eb2.tar.gz |
Integrated plugins with /help command
Diffstat (limited to 'src/plugins/callbacks.c')
-rw-r--r-- | src/plugins/callbacks.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/callbacks.c b/src/plugins/callbacks.c index 7951904d..a3cbfc1d 100644 --- a/src/plugins/callbacks.c +++ b/src/plugins/callbacks.c @@ -143,3 +143,18 @@ plugins_run_timed(void) } return; } + +GList* +plugins_get_command_names(void) +{ + GList *result = NULL; + + GSList *curr = p_commands; + while (curr) { + PluginCommand *command = curr->data; + result = g_list_append(result, (char*)command->command_name); + curr = g_slist_next(curr); + } + + return result; +} |