Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/hooks.h @ 1598:a087125d8fc8
Replace libjabber with loudmouth
author | franky |
---|---|
date | Sun, 11 Oct 2009 15:38:32 +0200 |
parents | 7b36b91a4388 |
children | f4a2c6f767d1 |
comparison
equal
deleted
inserted
replaced
1597:4f59a414217e | 1598:a087125d8fc8 |
---|---|
1 #ifndef __HOOKS_H__ | 1 #ifndef __HOOKS_H__ |
2 #define __HOOKS_H__ 1 | 2 #define __HOOKS_H__ 1 |
3 | 3 |
4 #include <time.h> | 4 #include <time.h> |
5 #include "jabglue.h" | 5 #include <loudmouth/loudmouth.h> |
6 #include "xmpp.h" | |
6 | 7 |
7 // These two defines are used by hk_message_{in,out} arguments | 8 // These two defines are used by hk_message_{in,out} arguments |
8 #define ENCRYPTED_PGP 1 | 9 #define ENCRYPTED_PGP 1 |
9 #define ENCRYPTED_OTR 2 | 10 #define ENCRYPTED_OTR 2 |
10 | 11 |
11 void hk_mainloop(void); | 12 void hk_mainloop(void); |
12 void hk_message_in(const char *bjid, const char *resname, | 13 void hk_message_in(const char *bjid, const char *resname, |
13 time_t timestamp, const char *msg, const char *type, | 14 time_t timestamp, const char *msg, LmMessageSubType type, |
14 guint encrypted); | 15 guint encrypted); |
15 void hk_message_out(const char *bjid, const char *nickname, | 16 void hk_message_out(const char *bjid, const char *nickname, |
16 time_t timestamp, const char *msg, guint encrypted); | 17 time_t timestamp, const char *msg, guint encrypted); |
17 void hk_statuschange(const char *bjid, const char *resname, gchar prio, | 18 void hk_statuschange(const char *bjid, const char *resname, gchar prio, |
18 time_t timestamp, enum imstatus status, | 19 time_t timestamp, enum imstatus status, |
19 char const *status_msg); | 20 char const *status_msg); |
20 void hk_mystatuschange(time_t timestamp, | 21 void hk_mystatuschange(time_t timestamp, |
21 enum imstatus old_status, | 22 enum imstatus old_status, |
22 enum imstatus new_status, const char *msg); | 23 enum imstatus new_status, const char *msg); |
23 | 24 |
24 void hook_execute_internal(const char *hookname); | 25 void hook_execute_internal(const char *hookname); |