Mercurial > hg
annotate mcabber/src/commands.h @ 698:60522cf6d325
Propagate context to IQ callback functions
It will allow to deal with timeouts and errors more easily.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 12 Feb 2006 11:06:26 +0100 |
parents | fed6d1e4d7a9 |
children | e6d42f239541 |
rev | line source |
---|---|
47 | 1 #ifndef __COMMANDS_H__ |
2 #define __COMMANDS_H__ 1 | |
3 | |
94 | 4 #include <glib.h> |
5 | |
102 | 6 // Command structure |
7 typedef struct { | |
8 char name[32]; | |
9 const char *help; | |
10 guint completion_flags[2]; | |
104 | 11 void (*func)(); |
102 | 12 } cmd; |
13 | |
96 | 14 void cmd_init(void); |
238 | 15 cmd *cmd_get(const char *command); |
96 | 16 int process_line(char *line); |
288 | 17 int process_command(char *line); |
285 | 18 char *expandalias(char *line); |
47 | 19 |
298
35cda94e570d
Add /connect and /disconnect commands
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
20 extern void mcabber_connect(void); |
35cda94e570d
Add /connect and /disconnect commands
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
21 |
47 | 22 #endif /* __COMMANDS_H__ */ |
23 | |
580 | 24 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |