comparison mcabber/mcabber/hooks.h @ 1683:b09f82f61745

Split HOOK_INTERNAL
author Myhailo Danylenko <isbear@ukrpost.net>
date Tue, 19 Jan 2010 16:09:27 +0200
parents 41c26b7d2890
children 250ad919f03f
comparison
equal deleted inserted replaced
1682:d1e8fb14ce2d 1683:b09f82f61745
15 15
16 #define HOOK_MESSAGE_IN ( 0x00000001 ) 16 #define HOOK_MESSAGE_IN ( 0x00000001 )
17 #define HOOK_MESSAGE_OUT ( 0x00000002 ) 17 #define HOOK_MESSAGE_OUT ( 0x00000002 )
18 #define HOOK_STATUS_CHANGE ( 0x00000004 ) 18 #define HOOK_STATUS_CHANGE ( 0x00000004 )
19 #define HOOK_MY_STATUS_CHANGE ( 0x00000008 ) 19 #define HOOK_MY_STATUS_CHANGE ( 0x00000008 )
20 #define HOOK_INTERNAL ( 0x00000010 ) 20 #define HOOK_POST_CONNECT ( 0x00000010 )
21 #define HOOK_PRE_DISCONNECT ( 0x00000020 )
22 #define HOOK_INTERNAL ( HOOK_POST_CONNECT | HOOK_PRE_DISCONNECT )
21 23
22 typedef struct { 24 typedef struct {
23 const char *name; 25 const char *name;
24 const char *value; 26 const char *value;
25 } hk_arg_t; 27 } hk_arg_t;
41 char const *status_msg); 43 char const *status_msg);
42 void hk_mystatuschange(time_t timestamp, 44 void hk_mystatuschange(time_t timestamp,
43 enum imstatus old_status, 45 enum imstatus old_status,
44 enum imstatus new_status, const char *msg); 46 enum imstatus new_status, const char *msg);
45 47
46 void hook_execute_internal(const char *hookname); 48 void hk_postconnect(void);
49 void hk_predisconnect(void);
47 50
48 void hk_ext_cmd_init(const char *command); 51 void hk_ext_cmd_init(const char *command);
49 void hk_ext_cmd(const char *bjid, guchar type, guchar info, const char *data); 52 void hk_ext_cmd(const char *bjid, guchar type, guchar info, const char *data);
50 53
51 #endif /* __MCABBER_HOOKS_H__ */ 54 #endif /* __MCABBER_HOOKS_H__ */