about summary refs log tree commit diff stats
path: root/src/plugins/callbacks.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-02-18 21:53:20 +0000
committerJames Booth <boothj5@gmail.com>2016-02-18 21:53:20 +0000
commit0ed3b53bd2a160b81cf16d1b4915164138205eb2 (patch)
tree86fab412fd899b445c161b32b2a966a468e84069 /src/plugins/callbacks.c
parenta152d7fb8eee8b1d39445d5a4c40cfc973aff11a (diff)
downloadprofani-tty-0ed3b53bd2a160b81cf16d1b4915164138205eb2.tar.gz
Integrated plugins with /help command
Diffstat (limited to 'src/plugins/callbacks.c')
-rw-r--r--src/plugins/callbacks.c15
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;
+}