comparison mcabber/mcabber/hooks.h @ 1906:5d37cee8c6c6

Add "hook-subscription" hook and hk_subscription()
author Mikael Berthe <mikael@lilotux.net>
date Sat, 17 Apr 2010 14:03:37 +0200
parents 6ac5718f8d25
children e702073612de
comparison
equal deleted inserted replaced
1905:68a4f8dda3e7 1906:5d37cee8c6c6
20 #define HOOK_STATUS_CHANGE "hook-status-change" 20 #define HOOK_STATUS_CHANGE "hook-status-change"
21 #define HOOK_MY_STATUS_CHANGE "hook-my-status-change" 21 #define HOOK_MY_STATUS_CHANGE "hook-my-status-change"
22 #define HOOK_POST_CONNECT "hook-post-connect" 22 #define HOOK_POST_CONNECT "hook-post-connect"
23 #define HOOK_PRE_DISCONNECT "hook-pre-disconnect" 23 #define HOOK_PRE_DISCONNECT "hook-pre-disconnect"
24 #define HOOK_UNREAD_LIST_CHANGE "hook-unread-list-change" 24 #define HOOK_UNREAD_LIST_CHANGE "hook-unread-list-change"
25 #define HOOK_SUBSCRIPTION "hook-subscription"
25 26
26 typedef enum { 27 typedef enum {
27 HOOK_HANDLER_RESULT_ALLOW_MORE_HANDLERS = 0, 28 HOOK_HANDLER_RESULT_ALLOW_MORE_HANDLERS = 0,
28 HOOK_HANDLER_RESULT_NO_MORE_HANDLER, 29 HOOK_HANDLER_RESULT_NO_MORE_HANDLER,
29 HOOK_HANDLER_RESULT_NO_MORE_HANDLER_DROP_DATA, 30 HOOK_HANDLER_RESULT_NO_MORE_HANDLER_DROP_DATA,
60 void hk_predisconnect(void); 61 void hk_predisconnect(void);
61 62
62 void hk_unread_list_change(guint unread_count, guint attention_count, 63 void hk_unread_list_change(guint unread_count, guint attention_count,
63 guint muc_unread, guint muc_attention); 64 guint muc_unread, guint muc_attention);
64 65
66 guint hk_subscription(LmMessageSubType mstype, const gchar *bjid,
67 const gchar *msg);
68
65 void hk_ext_cmd_init(const char *command); 69 void hk_ext_cmd_init(const char *command);
66 void hk_ext_cmd(const char *bjid, guchar type, guchar info, const char *data); 70 void hk_ext_cmd(const char *bjid, guchar type, guchar info, const char *data);
67 71
68 #endif /* __MCABBER_HOOKS_H__ */ 72 #endif /* __MCABBER_HOOKS_H__ */
69 73