Mercurial > hg
annotate mcabber/mcabber/otr.h @ 2357:6aeb142c8f12
Post-1.1.2 changes
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 19 Sep 2020 16:43:00 +0200 |
parents | 0dc317b5599d |
children |
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 | |
2336 | 8 #include <libotr/instag.h> |
1299 | 9 #include <libotr/proto.h> |
10 #include <libotr/message.h> | |
1301
37b41ed9ed35
Fixed compiler warnings
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1299
diff
changeset
|
11 #include <libotr/privkey.h> |
1299 | 12 |
13 enum otr_policy { | |
14 plain, | |
15 opportunistic, | |
16 manual, | |
17 always | |
18 }; | |
19 | |
1301
37b41ed9ed35
Fixed compiler warnings
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1299
diff
changeset
|
20 void otr_init(const char *jid); |
1299 | 21 void otr_terminate(void); |
22 | |
23 void otr_establish (const char * buddy); | |
24 void otr_disconnect (const char * buddy); | |
25 void otr_fingerprint(const char * buddy, const char * trust); | |
26 void otr_print_info (const char * buddy); | |
27 | |
28 void otr_smp_query (const char * buddy, const char * secret); | |
29 void otr_smp_respond(const char * buddy, const char * secret); | |
30 void otr_smp_abort (const char * buddy); | |
31 | |
32 void otr_key (void); | |
33 | |
2213
0c78d31c753d
Change otr_send() prototype
Mikael Berthe <mikael@lilotux.net>
parents:
2076
diff
changeset
|
34 int otr_receive (char **otr_data, const char * buddy, int * free_msg); |
0c78d31c753d
Change otr_send() prototype
Mikael Berthe <mikael@lilotux.net>
parents:
2076
diff
changeset
|
35 char *otr_send (const char * msg, const char * buddy, int * status); |
1299 | 36 |
37 #endif /* HAVE_LIBOTR */ | |
38 | |
39 int otr_enabled (void); | |
40 | |
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
41 #endif /* __MCABBER_OTR_H__ */ |
1299 | 42 |
1811 | 43 /* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2: For Vim users... */ |