Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/hooks.h @ 1784:250ad919f03f
Small code cleanup in hooks.[ch]
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 14 Mar 2010 14:07:25 +0100 |
parents | b09f82f61745 |
children | 47699a09ceb3 |
comparison
equal
deleted
inserted
replaced
1783:af3de54ef986 | 1784:250ad919f03f |
---|---|
26 const char *value; | 26 const char *value; |
27 } hk_arg_t; | 27 } hk_arg_t; |
28 | 28 |
29 typedef void (*hk_handler_t) (guint32 flags, hk_arg_t *args, gpointer userdata); | 29 typedef void (*hk_handler_t) (guint32 flags, hk_arg_t *args, gpointer userdata); |
30 | 30 |
31 void hk_add_handler (hk_handler_t handler, guint32 flags, gpointer userdata); | 31 void hk_add_handler(hk_handler_t handler, guint32 flags, gpointer userdata); |
32 void hk_del_handler (hk_handler_t handler, gpointer userdata); | 32 void hk_del_handler(hk_handler_t handler, gpointer userdata); |
33 #endif | 33 #endif |
34 | 34 |
35 void hk_message_in(const char *bjid, const char *resname, | 35 void hk_message_in(const char *bjid, const char *resname, |
36 time_t timestamp, const char *msg, LmMessageSubType type, | 36 time_t timestamp, const char *msg, LmMessageSubType type, |
37 guint encrypted); | 37 guint encrypted); |
40 guint encrypted, gpointer xep184); | 40 guint encrypted, gpointer xep184); |
41 void hk_statuschange(const char *bjid, const char *resname, gchar prio, | 41 void hk_statuschange(const char *bjid, const char *resname, gchar prio, |
42 time_t timestamp, enum imstatus status, | 42 time_t timestamp, enum imstatus status, |
43 char const *status_msg); | 43 char const *status_msg); |
44 void hk_mystatuschange(time_t timestamp, | 44 void hk_mystatuschange(time_t timestamp, |
45 enum imstatus old_status, | 45 enum imstatus old_status, enum imstatus new_status, |
46 enum imstatus new_status, const char *msg); | 46 const char *msg); |
47 | 47 |
48 void hk_postconnect(void); | 48 void hk_postconnect(void); |
49 void hk_predisconnect(void); | 49 void hk_predisconnect(void); |
50 | 50 |
51 void hk_ext_cmd_init(const char *command); | 51 void hk_ext_cmd_init(const char *command); |