Mercurial > ~mikael > mcabber > hg
annotate mcabber/mcabber/otr.h @ 2225:dc3b3ac1ba76
Free the buffdata structures when buffers are closed
Free the buffdata strcutures when buffers are closed and there are no
more users (these structures can be shared if the "symlink" shared history
is used).
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 07 Nov 2015 12:21:12 +0100 |
parents | 0c78d31c753d |
children | 0dc317b5599d |
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 | |
2076
9fb1ccf291cc
Switch to libotr v4 API
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1811
diff
changeset
|
8 #ifndef HAVE_LIBOTR3 |
9fb1ccf291cc
Switch to libotr v4 API
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1811
diff
changeset
|
9 # include <libotr/instag.h> |
9fb1ccf291cc
Switch to libotr v4 API
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1811
diff
changeset
|
10 #endif |
1299 | 11 #include <libotr/proto.h> |
12 #include <libotr/message.h> | |
1301
37b41ed9ed35
Fixed compiler warnings
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1299
diff
changeset
|
13 #include <libotr/privkey.h> |
1299 | 14 |
15 enum otr_policy { | |
16 plain, | |
17 opportunistic, | |
18 manual, | |
19 always | |
20 }; | |
21 | |
1301
37b41ed9ed35
Fixed compiler warnings
Frank Zschockelt <mcabber_otr[at]freakysoft.de>
parents:
1299
diff
changeset
|
22 void otr_init(const char *jid); |
1299 | 23 void otr_terminate(void); |
24 | |
25 void otr_establish (const char * buddy); | |
26 void otr_disconnect (const char * buddy); | |
27 void otr_fingerprint(const char * buddy, const char * trust); | |
28 void otr_print_info (const char * buddy); | |
29 | |
30 void otr_smp_query (const char * buddy, const char * secret); | |
31 void otr_smp_respond(const char * buddy, const char * secret); | |
32 void otr_smp_abort (const char * buddy); | |
33 | |
34 void otr_key (void); | |
35 | |
2213
0c78d31c753d
Change otr_send() prototype
Mikael Berthe <mikael@lilotux.net>
parents:
2076
diff
changeset
|
36 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
|
37 char *otr_send (const char * msg, const char * buddy, int * status); |
1299 | 38 |
39 #endif /* HAVE_LIBOTR */ | |
40 | |
41 int otr_enabled (void); | |
42 | |
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1301
diff
changeset
|
43 #endif /* __MCABBER_OTR_H__ */ |
1299 | 44 |
1811 | 45 /* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2: For Vim users... */ |