view mcabber/mcabber/otr.h @ 2308:e8c8665c824e

Let <Enter> (un)fold groups in vi mode When the input line is empty and the user hits the <Enter> key on a roster group name, (un)fold that group even if vi_mode is set to 1. --- mcabber/mcabber/screen.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
author Holger Weiß <holger@zedat.fu-berlin.de>
date Sun, 26 Jul 2015 22:45:56 +0200
parents 0c78d31c753d
children 0dc317b5599d
line wrap: on
line source

#ifndef __MCABBER_OTR_H__
#define __MCABBER_OTR_H__ 1

#include <mcabber/config.h>

#ifdef HAVE_LIBOTR

#ifndef HAVE_LIBOTR3
# include <libotr/instag.h>
#endif
#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);
char *otr_send      (const char * msg, const char * buddy, int * status);

#endif /* HAVE_LIBOTR */

int  otr_enabled    (void);

#endif /* __MCABBER_OTR_H__ */

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