Mercurial > hg
annotate mcabber/src/commands.h @ 1614:816fb624801d
Slightly change debugging output
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 11 Oct 2009 21:37:02 +0200 |
parents | 14690e624e9d |
children | fca9a4c17432 |
rev | line source |
---|---|
47 | 1 #ifndef __COMMANDS_H__ |
2 #define __COMMANDS_H__ 1 | |
3 | |
94 | 4 #include <glib.h> |
5 | |
1607 | 6 #include "config.h" |
7 | |
102 | 8 // Command structure |
9 typedef struct { | |
10 char name[32]; | |
11 const char *help; | |
12 guint completion_flags[2]; | |
1059 | 13 void (*func)(char *); |
1607 | 14 #ifdef MODULES_ENABLE |
15 gpointer userdata; | |
16 #endif | |
102 | 17 } cmd; |
18 | |
96 | 19 void cmd_init(void); |
238 | 20 cmd *cmd_get(const char *command); |
1352
61a54e172010
Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents:
1187
diff
changeset
|
21 int process_line(const char *line); |
61a54e172010
Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents:
1187
diff
changeset
|
22 int process_command(const char *line, guint iscmd); |
61a54e172010
Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents:
1187
diff
changeset
|
23 char *expandalias(const char *line); |
1607 | 24 #ifdef MODULES_ENABLE |
25 void cmd_deinit(void); | |
26 gpointer cmd_del(const char *name); | |
27 void cmd_add(const char *name, const char *help, guint flags1, guint flags2, void (*f)(char*), gpointer userdata); | |
28 #endif | |
47 | 29 |
777
e6d42f239541
"/version" shows Mercurial changeset (if there's one)
Mikael Berthe <mikael@lilotux.net>
parents:
580
diff
changeset
|
30 extern char *mcabber_version(void); |
1359
7daf906fbcdc
The command /quit can be used in bindings, hooks and sourced files
Mikael Berthe <mikael@lilotux.net>
parents:
1352
diff
changeset
|
31 extern void mcabber_set_terminate_ui(void); |
298
35cda94e570d
Add /connect and /disconnect commands
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
32 |
1415
317f8d181626
Rename command public functions
Mikael Berthe <mikael@lilotux.net>
parents:
1359
diff
changeset
|
33 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
|
34 void cmd_room_leave(gpointer bud, char *arg); |
317f8d181626
Rename command public functions
Mikael Berthe <mikael@lilotux.net>
parents:
1359
diff
changeset
|
35 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
|
36 |
47 | 37 #endif /* __COMMANDS_H__ */ |
38 | |
580 | 39 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |