view 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
line wrap: on
line source

#ifndef __MCABBER_OTR_H__
#define __MCABBER_OTR_H__ 1

#include <mcabber/config.h>

#ifdef HAVE_LIBOTR

#include <libotr/proto.h>
#include <libotr/message.h>
#include <libotr/privkey.h>

enum otr_policy {
  plain,
  opportunistic,
  manual,
  always
};

void otr_init(const char *jid);
void otr_terminate(void);

void otr_establish  (const char * buddy);
void otr_disconnect (const char * buddy);
void otr_fingerprint(const char * buddy, const char * trust);
void otr_print_info (const char * buddy);

void otr_smp_query  (const char * buddy, const char * secret);
void otr_smp_respond(const char * buddy, const char * secret);
void otr_smp_abort  (const char * buddy);

void otr_key        (void);

int  otr_receive    (char **otr_data, const char * buddy, int * free_msg);
int  otr_send       (char **msg, const char *buddy);

#endif /* HAVE_LIBOTR */

int  otr_enabled    (void);

#endif /* __MCABBER_OTR_H__ */

/* vim: set expandtab cindent cinoptions=>2\:2(0:  For Vim users... */