diff mcabber/src/commands.h @ 1607:14690e624e9d

Add modules
author Myhailo Danylenko <isbear@ukrpost.net>
date Sun, 11 Oct 2009 16:01:52 +0200
parents a087125d8fc8
children fca9a4c17432
line wrap: on
line diff
--- a/mcabber/src/commands.h	Sun Oct 11 16:01:31 2009 +0200
+++ b/mcabber/src/commands.h	Sun Oct 11 16:01:52 2009 +0200
@@ -3,12 +3,17 @@
 
 #include <glib.h>
 
+#include "config.h"
+
 // Command structure
 typedef struct {
   char name[32];
   const char *help;
   guint completion_flags[2];
   void (*func)(char *);
+#ifdef MODULES_ENABLE
+  gpointer userdata;
+#endif
 } cmd;
 
 void cmd_init(void);
@@ -16,6 +21,11 @@
 int  process_line(const char *line);
 int  process_command(const char *line, guint iscmd);
 char *expandalias(const char *line);
+#ifdef MODULES_ENABLE
+void cmd_deinit(void);
+gpointer cmd_del(const char *name);
+void cmd_add(const char *name, const char *help, guint flags1, guint flags2, void (*f)(char*), gpointer userdata);
+#endif
 
 extern char *mcabber_version(void);
 extern void mcabber_set_terminate_ui(void);