diff mcabber/src/commands.h @ 102:2b4cc6bc5bf2

[/trunk] Changeset 116 by mikael * Can now complete command parameters :-)
author mikael
date Thu, 21 Apr 2005 19:06:27 +0000
parents 8b2703ccc4be
children fe7257d251ac
line wrap: on
line diff
--- a/mcabber/src/commands.h	Thu Apr 21 17:31:28 2005 +0000
+++ b/mcabber/src/commands.h	Thu Apr 21 19:06:27 2005 +0000
@@ -3,7 +3,16 @@
 
 #include <glib.h>
 
+// Command structure
+typedef struct {
+  char name[32];
+  const char *help;
+  guint completion_flags[2];
+  void *(*func)();
+} cmd;
+
 void cmd_init(void);
+cmd *cmd_get(char *command);
 int  process_line(char *line);
 
 #endif /* __COMMANDS_H__ */