Mercurial > ~mikael > mcabber > hg
annotate mcabber/mcabber/otr.h @ 1909:9c14153e2580
Do not display unhandled IQ result messages to the log window
We display the message only in the debug log file, because these messages
are usually ignored anyway (ideally we would create a handler explicitly
when sending the initial IQ request).
Thanks to VarLog for the report!
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 18 Apr 2010 14:14:05 +0200 |
parents | e6d355e50d7a |
children | 9fb1ccf291cc |
rev | line source |
---|---|
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
1 #ifndef __MCABBER_OTR_H__ |
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
2 #define __MCABBER_OTR_H__ 1 |
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
3 |
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
4 #include <mcabber/config.h> |
1299 | 5 |
6 #ifdef HAVE_LIBOTR | |
7 | |
8 #include <libotr/proto.h> | |
9 #include <libotr/message.h> | |
1301
37b41ed9ed35
Fixed compiler warnings
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1299
diff
changeset
|
10 #include <libotr/privkey.h> |
1299 | 11 |
12 enum otr_policy { | |
13 plain, | |
14 opportunistic, | |
15 manual, | |
16 always | |
17 }; | |
18 | |
1301
37b41ed9ed35
Fixed compiler warnings
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1299
diff
changeset
|
19 void otr_init(const char *jid); |
1299 | 20 void otr_terminate(void); |
21 | |
22 void otr_establish (const char * buddy); | |
23 void otr_disconnect (const char * buddy); | |
24 void otr_fingerprint(const char * buddy, const char * trust); | |
25 void otr_print_info (const char * buddy); | |
26 | |
27 void otr_smp_query (const char * buddy, const char * secret); | |
28 void otr_smp_respond(const char * buddy, const char * secret); | |
29 void otr_smp_abort (const char * buddy); | |
30 | |
31 void otr_key (void); | |
32 | |
33 int otr_receive (char **otr_data, const char * buddy, int * free_msg); | |
34 int otr_send (char **msg, const char *buddy); | |
35 | |
36 #endif /* HAVE_LIBOTR */ | |
37 | |
38 int otr_enabled (void); | |
39 | |
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
40 #endif /* __MCABBER_OTR_H__ */ |
1299 | 41 |
1811 | 42 /* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2: For Vim users... */ |