Mercurial > hg
comparison mcabber/src/hooks.h @ 1607:14690e624e9d
Add modules
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sun, 11 Oct 2009 16:01:52 +0200 |
parents | f4a2c6f767d1 |
children | b008ac166b91 |
comparison
equal
deleted
inserted
replaced
1606:d7f26538c24c | 1607:14690e624e9d |
---|---|
6 #include "xmpp.h" | 6 #include "xmpp.h" |
7 | 7 |
8 // These two defines are used by hk_message_{in,out} arguments | 8 // These two defines are used by hk_message_{in,out} arguments |
9 #define ENCRYPTED_PGP 1 | 9 #define ENCRYPTED_PGP 1 |
10 #define ENCRYPTED_OTR 2 | 10 #define ENCRYPTED_OTR 2 |
11 | |
12 #include "config.h" | |
13 #ifdef MODULES_ENABLE | |
14 #include <glib.h> | |
15 | |
16 typedef struct { | |
17 const char *name; | |
18 const char *value; | |
19 } hk_arg_t; | |
20 | |
21 typedef void (*hk_handler_t) (hk_arg_t *args, gpointer userdata); | |
22 | |
23 void hk_add_handler (hk_handler_t handler, gpointer userdata); | |
24 void hk_del_handler (hk_handler_t handler, gpointer userdata); | |
25 #endif | |
11 | 26 |
12 void hk_mainloop(void); | 27 void hk_mainloop(void); |
13 void hk_message_in(const char *bjid, const char *resname, | 28 void hk_message_in(const char *bjid, const char *resname, |
14 time_t timestamp, const char *msg, LmMessageSubType type, | 29 time_t timestamp, const char *msg, LmMessageSubType type, |
15 guint encrypted); | 30 guint encrypted); |