Mercurial > hg
annotate mcabber/src/commands.h @ 1475:ef09de538e8f
Fix compilation error (reported by H. D. Oezbilen)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 15 Apr 2008 07:48:46 +0200 |
parents | 317f8d181626 |
children | a087125d8fc8 |
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]; | |
1059 | 11 void (*func)(char *); |
102 | 12 } cmd; |
13 | |
96 | 14 void cmd_init(void); |
238 | 15 cmd *cmd_get(const char *command); |
1352
61a54e172010
Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents:
1187
diff
changeset
|
16 int process_line(const char *line); |
61a54e172010
Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents:
1187
diff
changeset
|
17 int process_command(const char *line, guint iscmd); |
61a54e172010
Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents:
1187
diff
changeset
|
18 char *expandalias(const char *line); |
47 | 19 |
777
e6d42f239541
"/version" shows Mercurial changeset (if there's one)
Mikael Berthe <mikael@lilotux.net>
parents:
580
diff
changeset
|
20 extern char *mcabber_version(void); |
298
35cda94e570d
Add /connect and /disconnect commands
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
21 extern void mcabber_connect(void); |
1359
7daf906fbcdc
The command /quit can be used in bindings, hooks and sourced files
Mikael Berthe <mikael@lilotux.net>
parents:
1352
diff
changeset
|
22 extern void mcabber_set_terminate_ui(void); |
298
35cda94e570d
Add /connect and /disconnect commands
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
23 |
1415
317f8d181626
Rename command public functions
Mikael Berthe <mikael@lilotux.net>
parents:
1359
diff
changeset
|
24 void cmd_room_whois(gpointer bud, char *nick_locale, guint interactive); |
317f8d181626
Rename command public functions
Mikael Berthe <mikael@lilotux.net>
parents:
1359
diff
changeset
|
25 void cmd_room_leave(gpointer bud, char *arg); |
317f8d181626
Rename command public functions
Mikael Berthe <mikael@lilotux.net>
parents:
1359
diff
changeset
|
26 void cmd_setstatus(const char *recipient, const char *arg); |
837
7c74eef1d0e0
New option "muc_auto_whois"
Mikael Berthe <mikael@lilotux.net>
parents:
777
diff
changeset
|
27 |
47 | 28 #endif /* __COMMANDS_H__ */ |
29 | |
580 | 30 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |