about summary refs log tree commit diff stats
path: root/src/plugins/callbacks.h
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-06-29 23:35:57 +0100
committerJames Booth <boothj5@gmail.com>2016-06-29 23:35:57 +0100
commita01eb5d08e1b39d60a6f8fc26e5a87ceb92ec18f (patch)
treebe77126865e0cb26963859ad384a225e9c993c9e /src/plugins/callbacks.h
parent61a09476c511c33abd9b6be3d5786fee1fa93b94 (diff)
downloadprofani-tty-a01eb5d08e1b39d60a6f8fc26e5a87ceb92ec18f.tar.gz
WIP - Unload plugin commands
Diffstat (limited to 'src/plugins/callbacks.h')
-rw-r--r--src/plugins/callbacks.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/callbacks.h b/src/plugins/callbacks.h
index 9b175d0a..a8253e21 100644
--- a/src/plugins/callbacks.h
+++ b/src/plugins/callbacks.h
@@ -40,7 +40,8 @@
 #include "command/cmd_defs.h"
 
 typedef struct p_command {
-    const char *command_name;
+    char *plugin_name;
+    char *command_name;
     int min_args;
     int max_args;
     CommandHelp *help;
@@ -65,6 +66,7 @@ void callbacks_init(void);
 void callbacks_close(void);
 
 void callbacks_add_command(PluginCommand *command);
+void callbacks_remove_commands(const char *const plugin_name);
 void callbacks_add_timed(PluginTimedFunction *timed_function);
 void callbacks_add_window_handler(const char *tag, PluginWindowCallback *window_callback);
 void * callbacks_get_window_handler(const char *tag);