Mercurial > ~mikael > mcabber > hg
annotate mcabber/mcabber/commands.h @ 1909:9c14153e2580
Do not display unhandled IQ result messages to the log window
We display the message only in the debug log file, because these messages
are usually ignored anyway (ideally we would create a handler explicitly
when sending the initial IQ request).
Thanks to VarLog for the report!
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 18 Apr 2010 14:14:05 +0200 |
parents | e6d355e50d7a |
children | 26e437e79e60 |
rev | line source |
---|---|
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1653
diff
changeset
|
1 #ifndef __MCABBER_COMMANDS_H__ |
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1653
diff
changeset
|
2 #define __MCABBER_COMMANDS_H__ 1 |
47 | 3 |
94 | 4 #include <glib.h> |
5 | |
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1653
diff
changeset
|
6 #include <mcabber/config.h> |
1607 | 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 |
1415
317f8d181626
Rename command public functions
Mikael Berthe <mikael@lilotux.net>
parents:
1359
diff
changeset
|
30 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
|
31 void cmd_room_leave(gpointer bud, char *arg); |
317f8d181626
Rename command public functions
Mikael Berthe <mikael@lilotux.net>
parents:
1359
diff
changeset
|
32 void cmd_setstatus(const char *recipient, const char *arg); |
1740
391863b7952c
Rename do_say_internal() and export it as say_cmd()
Mikael Berthe <mikael@lilotux.net>
parents:
1668
diff
changeset
|
33 void say_cmd(char *arg, int parse_flags); |
837
7c74eef1d0e0
New option "muc_auto_whois"
Mikael Berthe <mikael@lilotux.net>
parents:
777
diff
changeset
|
34 |
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1653
diff
changeset
|
35 #endif /* __MCABBER_COMMANDS_H__ */ |
47 | 36 |
1811 | 37 /* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */ |