annotate mcabber/src/hooks.h @ 1602:f4a2c6f767d1

Message Receipts support (XEP-0184)
author franky
date Wed, 24 Sep 2008 11:41:29 +0200
parents a087125d8fc8
children 14690e624e9d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
113
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
1 #ifndef __HOOKS_H__
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
2 #define __HOOKS_H__ 1
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
3
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
4 #include <time.h>
1598
a087125d8fc8 Replace libjabber with loudmouth
franky
parents: 1484
diff changeset
5 #include <loudmouth/loudmouth.h>
a087125d8fc8 Replace libjabber with loudmouth
franky
parents: 1484
diff changeset
6 #include "xmpp.h"
113
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
7
1484
7b36b91a4388 New UI message flag (O) when OTR is used
Mikael Berthe <mikael@lilotux.net>
parents: 1425
diff changeset
8 // These two defines are used by hk_message_{in,out} arguments
7b36b91a4388 New UI message flag (O) when OTR is used
Mikael Berthe <mikael@lilotux.net>
parents: 1425
diff changeset
9 #define ENCRYPTED_PGP 1
7b36b91a4388 New UI message flag (O) when OTR is used
Mikael Berthe <mikael@lilotux.net>
parents: 1425
diff changeset
10 #define ENCRYPTED_OTR 2
113
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
11
1425
b0cfd9ab4b9f Add a mainloop hook
Mikael Berthe <mikael@lilotux.net>
parents: 1398
diff changeset
12 void hk_mainloop(void);
1398
f8321420ed7a Remove useless inline's
Mikael Berthe <mikael@lilotux.net>
parents: 1352
diff changeset
13 void hk_message_in(const char *bjid, const char *resname,
1598
a087125d8fc8 Replace libjabber with loudmouth
franky
parents: 1484
diff changeset
14 time_t timestamp, const char *msg, LmMessageSubType type,
a087125d8fc8 Replace libjabber with loudmouth
franky
parents: 1484
diff changeset
15 guint encrypted);
1398
f8321420ed7a Remove useless inline's
Mikael Berthe <mikael@lilotux.net>
parents: 1352
diff changeset
16 void hk_message_out(const char *bjid, const char *nickname,
1602
f4a2c6f767d1 Message Receipts support (XEP-0184)
franky
parents: 1598
diff changeset
17 time_t timestamp, const char *msg,
f4a2c6f767d1 Message Receipts support (XEP-0184)
franky
parents: 1598
diff changeset
18 guint encrypted, gpointer xep184);
1398
f8321420ed7a Remove useless inline's
Mikael Berthe <mikael@lilotux.net>
parents: 1352
diff changeset
19 void hk_statuschange(const char *bjid, const char *resname, gchar prio,
1598
a087125d8fc8 Replace libjabber with loudmouth
franky
parents: 1484
diff changeset
20 time_t timestamp, enum imstatus status,
a087125d8fc8 Replace libjabber with loudmouth
franky
parents: 1484
diff changeset
21 char const *status_msg);
1398
f8321420ed7a Remove useless inline's
Mikael Berthe <mikael@lilotux.net>
parents: 1352
diff changeset
22 void hk_mystatuschange(time_t timestamp,
438
b44be19d6229 Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents: 393
diff changeset
23 enum imstatus old_status,
b44be19d6229 Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents: 393
diff changeset
24 enum imstatus new_status, const char *msg);
113
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
25
1352
61a54e172010 Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents: 1058
diff changeset
26 void hook_execute_internal(const char *hookname);
61a54e172010 Add internal hooks support
Mikael Berthe <mikael@lilotux.net>
parents: 1058
diff changeset
27
281
f562b9af2de7 Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents: 221
diff changeset
28 void hk_ext_cmd_init(const char *command);
1058
c0d44a9a99bc Code cleanup
Mikael Berthe <mikael@lilotux.net>
parents: 1055
diff changeset
29 void hk_ext_cmd(const char *bjid, guchar type, guchar info, const char *data);
160
44c6410b4845 [/trunk] Changeset 172 by mikael
mikael
parents: 116
diff changeset
30
113
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
31 #endif /* __HOOKS_H__ */
576
8b3db0b555a1 Add Vim modelines
Mikael Berthe <mikael@lilotux.net>
parents: 484
diff changeset
32
580
fed6d1e4d7a9 Fix modelines
Mikael Berthe <mikael@lilotux.net>
parents: 576
diff changeset
33 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */