Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/otr.h @ 1668:41c26b7d2890
Install mcabber headers
* Change mcabber headers naming scheme
* Move 'src/' -> 'mcabber/'
* Add missing include <mcabber/config.h>'s
* Create and install clean config.h version in 'include/'
* Move "dirty" config.h version to 'mcabber/'
* Add $(top_srcdir) to compiler include path
* Update modules HOWTO
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Mon, 18 Jan 2010 15:36:19 +0200 |
parents | mcabber/src/otr.h@37b41ed9ed35 |
children | e6d355e50d7a |
comparison
equal
deleted
inserted
replaced
1667:8af0e0ad20ad | 1668:41c26b7d2890 |
---|---|
1 #ifndef __MCABBER_OTR_H__ | |
2 #define __MCABBER_OTR_H__ 1 | |
3 | |
4 #include <mcabber/config.h> | |
5 | |
6 #ifdef HAVE_LIBOTR | |
7 | |
8 #include <libotr/proto.h> | |
9 #include <libotr/message.h> | |
10 #include <libotr/privkey.h> | |
11 | |
12 enum otr_policy { | |
13 plain, | |
14 opportunistic, | |
15 manual, | |
16 always | |
17 }; | |
18 | |
19 void otr_init(const char *jid); | |
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 | |
40 #endif /* __MCABBER_OTR_H__ */ | |
41 | |
42 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |