Mercurial > hg
annotate mcabber/src/hooks.h @ 1508:86620c83123b
Handle quotes in group commands
Now it is possible to do things like /group fold ""
to shrink the default group.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 31 Aug 2008 12:20:54 +0200 |
parents | 7b36b91a4388 |
children | a087125d8fc8 |
rev | line source |
---|---|
113 | 1 #ifndef __HOOKS_H__ |
2 #define __HOOKS_H__ 1 | |
3 | |
4 #include <time.h> | |
5 #include "jabglue.h" | |
6 | |
1484
7b36b91a4388
New UI message flag (O) when OTR is used
Mikael Berthe <mikael@lilotux.net>
parents:
1425
diff
changeset
|
7 // These two defines are used by hk_message_{in,out} arguments |
7b36b91a4388
New UI message flag (O) when OTR is used
Mikael Berthe <mikael@lilotux.net>
parents:
1425
diff
changeset
|
8 #define ENCRYPTED_PGP 1 |
7b36b91a4388
New UI message flag (O) when OTR is used
Mikael Berthe <mikael@lilotux.net>
parents:
1425
diff
changeset
|
9 #define ENCRYPTED_OTR 2 |
113 | 10 |
1425 | 11 void hk_mainloop(void); |
1398
f8321420ed7a
Remove useless inline's
Mikael Berthe <mikael@lilotux.net>
parents:
1352
diff
changeset
|
12 void hk_message_in(const char *bjid, const char *resname, |
1055
6eb1efea75d0
PGP: Visual encryption flag
Mikael Berthe <mikael@lilotux.net>
parents:
580
diff
changeset
|
13 time_t timestamp, const char *msg, const char *type, |
6eb1efea75d0
PGP: Visual encryption flag
Mikael Berthe <mikael@lilotux.net>
parents:
580
diff
changeset
|
14 guint encrypted); |
1398
f8321420ed7a
Remove useless inline's
Mikael Berthe <mikael@lilotux.net>
parents:
1352
diff
changeset
|
15 void hk_message_out(const char *bjid, const char *nickname, |
1055
6eb1efea75d0
PGP: Visual encryption flag
Mikael Berthe <mikael@lilotux.net>
parents:
580
diff
changeset
|
16 time_t timestamp, const char *msg, guint encrypted); |
1398
f8321420ed7a
Remove useless inline's
Mikael Berthe <mikael@lilotux.net>
parents:
1352
diff
changeset
|
17 void hk_statuschange(const char *bjid, const char *resname, gchar prio, |
438
b44be19d6229
Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents:
393
diff
changeset
|
18 time_t timestamp, enum imstatus status, |
b44be19d6229
Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents:
393
diff
changeset
|
19 char const *status_msg); |
1398
f8321420ed7a
Remove useless inline's
Mikael Berthe <mikael@lilotux.net>
parents:
1352
diff
changeset
|
20 void hk_mystatuschange(time_t timestamp, |
438
b44be19d6229
Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents:
393
diff
changeset
|
21 enum imstatus old_status, |
b44be19d6229
Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents:
393
diff
changeset
|
22 enum imstatus new_status, const char *msg); |
113 | 23 |
1352
61a54e172010
Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents:
1058
diff
changeset
|
24 void hook_execute_internal(const char *hookname); |
61a54e172010
Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents:
1058
diff
changeset
|
25 |
281
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
221
diff
changeset
|
26 void hk_ext_cmd_init(const char *command); |
1058 | 27 void hk_ext_cmd(const char *bjid, guchar type, guchar info, const char *data); |
160 | 28 |
113 | 29 #endif /* __HOOKS_H__ */ |
576 | 30 |
580 | 31 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |