# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.33
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.

"""
This module contains python bindings for libotr (see http://www.cypherpunks.ca/otr/ for more information).
Some libotr functions have been stripped, as they were not useful for writing a frontend to OTR.
For further details on how to use this module, please refer to the documentation.
"""

import _otr
import new
new_instancemethod = new.instancemethod
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'PySwigObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError,name

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0
del types


OTRL_MSGSTATE_PLAINTEXT = _otr.OTRL_MSGSTATE_PLAINTEXT
OTRL_MSGSTATE_ENCRYPTED = _otr.OTRL_MSGSTATE_ENCRYPTED
OTRL_MSGSTATE_FINISHED = _otr.OTRL_MSGSTATE_FINISHED
class Fingerprint(_object):
    """Proxy of C Fingerprint struct"""
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Fingerprint, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Fingerprint, name)
    __repr__ = _swig_repr
    __swig_setmethods__["next"] = _otr.Fingerprint_next_set
    __swig_getmethods__["next"] = _otr.Fingerprint_next_get
    if _newclass:next = _swig_property(_otr.Fingerprint_next_get, _otr.Fingerprint_next_set)
    __swig_setmethods__["fingerprint"] = _otr.Fingerprint_fingerprint_set
    __swig_getmethods__["fingerprint"] = _otr.Fingerprint_fingerprint_get
    if _newclass:fingerprint = _swig_property(_otr.Fingerprint_fingerprint_get, _otr.Fingerprint_fingerprint_set)
    __swig_setmethods__["context"] = _otr.Fingerprint_context_set
    __swig_getmethods__["context"] = _otr.Fingerprint_context_get
    if _newclass:context = _swig_property(_otr.Fingerprint_context_get, _otr.Fingerprint_context_set)
    __swig_setmethods__["trust"] = _otr.Fingerprint_trust_set
    __swig_getmethods__["trust"] = _otr.Fingerprint_trust_get
    if _newclass:trust = _swig_property(_otr.Fingerprint_trust_get, _otr.Fingerprint_trust_set)
    __swig_destroy__ = _otr.delete_Fingerprint
    __del__ = lambda self : None;
    def __init__(self, *args): 
        """__init__(self) -> Fingerprint"""
        this = _otr.new_Fingerprint(*args)
        try: self.this.append(this)
        except: self.this = this
Fingerprint_swigregister = _otr.Fingerprint_swigregister
Fingerprint_swigregister(Fingerprint)

class ConnContext(_object):
    """Proxy of C ConnContext struct"""
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ConnContext, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ConnContext, name)
    __repr__ = _swig_repr
    __swig_setmethods__["next"] = _otr.ConnContext_next_set
    __swig_getmethods__["next"] = _otr.ConnContext_next_get
    if _newclass:next = _swig_property(_otr.ConnContext_next_get, _otr.ConnContext_next_set)
    __swig_setmethods__["username"] = _otr.ConnContext_username_set
    __swig_getmethods__["username"] = _otr.ConnContext_username_get
    if _newclass:username = _swig_property(_otr.ConnContext_username_get, _otr.ConnContext_username_set)
    __swig_setmethods__["accountname"] = _otr.ConnContext_accountname_set
    __swig_getmethods__["accountname"] = _otr.ConnContext_accountname_get
    if _newclass:accountname = _swig_property(_otr.ConnContext_accountname_get, _otr.ConnContext_accountname_set)
    __swig_setmethods__["protocol"] = _otr.ConnContext_protocol_set
    __swig_getmethods__["protocol"] = _otr.ConnContext_protocol_get
    if _newclass:protocol = _swig_property(_otr.ConnContext_protocol_get, _otr.ConnContext_protocol_set)
    __swig_setmethods__["fragment"] = _otr.ConnContext_fragment_set
    __swig_getmethods__["fragment"] = _otr.ConnContext_fragment_get
    if _newclass:fragment = _swig_property(_otr.ConnContext_fragment_get, _otr.ConnContext_fragment_set)
    __swig_setmethods__["fragment_len"] = _otr.ConnContext_fragment_len_set
    __swig_getmethods__["fragment_len"] = _otr.ConnContext_fragment_len_get
    if _newclass:fragment_len = _swig_property(_otr.ConnContext_fragment_len_get, _otr.ConnContext_fragment_len_set)
    __swig_setmethods__["fragment_n"] = _otr.ConnContext_fragment_n_set
    __swig_getmethods__["fragment_n"] = _otr.ConnContext_fragment_n_get
    if _newclass:fragment_n = _swig_property(_otr.ConnContext_fragment_n_get, _otr.ConnContext_fragment_n_set)
    __swig_setmethods__["fragment_k"] = _otr.ConnContext_fragment_k_set
    __swig_getmethods__["fragment_k"] = _otr.ConnContext_fragment_k_get
    if _newclass:fragment_k = _swig_property(_otr.ConnContext_fragment_k_get, _otr.ConnContext_fragment_k_set)
    __swig_setmethods__["msgstate"] = _otr.ConnContext_msgstate_set
    __swig_getmethods__["msgstate"] = _otr.ConnContext_msgstate_get
    if _newclass:msgstate = _swig_property(_otr.ConnContext_msgstate_get, _otr.ConnContext_msgstate_set)
    __swig_setmethods__["fingerprint_root"] = _otr.ConnContext_fingerprint_root_set
    __swig_getmethods__["fingerprint_root"] = _otr.ConnContext_fingerprint_root_get
    if _newclass:fingerprint_root = _swig_property(_otr.ConnContext_fingerprint_root_get, _otr.ConnContext_fingerprint_root_set)
    __swig_setmethods__["active_fingerprint"] = _otr.ConnContext_active_fingerprint_set
    __swig_getmethods__["active_fingerprint"] = _otr.ConnContext_active_fingerprint_get
    if _newclass:active_fingerprint = _swig_property(_otr.ConnContext_active_fingerprint_get, _otr.ConnContext_active_fingerprint_set)
    __swig_setmethods__["their_keyid"] = _otr.ConnContext_their_keyid_set
    __swig_getmethods__["their_keyid"] = _otr.ConnContext_their_keyid_get
    if _newclass:their_keyid = _swig_property(_otr.ConnContext_their_keyid_get, _otr.ConnContext_their_keyid_set)
    __swig_setmethods__["our_keyid"] = _otr.ConnContext_our_keyid_set
    __swig_getmethods__["our_keyid"] = _otr.ConnContext_our_keyid_get
    if _newclass:our_keyid = _swig_property(_otr.ConnContext_our_keyid_get, _otr.ConnContext_our_keyid_set)
    __swig_setmethods__["sessionid"] = _otr.ConnContext_sessionid_set
    __swig_getmethods__["sessionid"] = _otr.ConnContext_sessionid_get
    if _newclass:sessionid = _swig_property(_otr.ConnContext_sessionid_get, _otr.ConnContext_sessionid_set)
    __swig_setmethods__["sessionid_half"] = _otr.ConnContext_sessionid_half_set
    __swig_getmethods__["sessionid_half"] = _otr.ConnContext_sessionid_half_get
    if _newclass:sessionid_half = _swig_property(_otr.ConnContext_sessionid_half_get, _otr.ConnContext_sessionid_half_set)
    __swig_setmethods__["protocol_version"] = _otr.ConnContext_protocol_version_set
    __swig_getmethods__["protocol_version"] = _otr.ConnContext_protocol_version_get
    if _newclass:protocol_version = _swig_property(_otr.ConnContext_protocol_version_get, _otr.ConnContext_protocol_version_set)
    __swig_setmethods__["generation"] = _otr.ConnContext_generation_set
    __swig_getmethods__["generation"] = _otr.ConnContext_generation_get
    if _newclass:generation = _swig_property(_otr.ConnContext_generation_get, _otr.ConnContext_generation_set)
    __swig_setmethods__["lastsent"] = _otr.ConnContext_lastsent_set
    __swig_getmethods__["lastsent"] = _otr.ConnContext_lastsent_get
    if _newclass:lastsent = _swig_property(_otr.ConnContext_lastsent_get, _otr.ConnContext_lastsent_set)
    __swig_setmethods__["lastmessage"] = _otr.ConnContext_lastmessage_set
    __swig_getmethods__["lastmessage"] = _otr.ConnContext_lastmessage_get
    if _newclass:lastmessage = _swig_property(_otr.ConnContext_lastmessage_get, _otr.ConnContext_lastmessage_set)
    __swig_setmethods__["may_retransmit"] = _otr.ConnContext_may_retransmit_set
    __swig_getmethods__["may_retransmit"] = _otr.ConnContext_may_retransmit_get
    if _newclass:may_retransmit = _swig_property(_otr.ConnContext_may_retransmit_get, _otr.ConnContext_may_retransmit_set)
    __swig_setmethods__["otr_offer"] = _otr.ConnContext_otr_offer_set
    __swig_getmethods__["otr_offer"] = _otr.ConnContext_otr_offer_get
    if _newclass:otr_offer = _swig_property(_otr.ConnContext_otr_offer_get, _otr.ConnContext_otr_offer_set)
    __swig_setmethods__["app_data"] = _otr.ConnContext_app_data_set
    __swig_getmethods__["app_data"] = _otr.ConnContext_app_data_get
    if _newclass:app_data = _swig_property(_otr.ConnContext_app_data_get, _otr.ConnContext_app_data_set)
    __swig_setmethods__["smstate"] = _otr.ConnContext_smstate_set
    __swig_getmethods__["smstate"] = _otr.ConnContext_smstate_get
    if _newclass:smstate = _swig_property(_otr.ConnContext_smstate_get, _otr.ConnContext_smstate_set)
    __swig_destroy__ = _otr.delete_ConnContext
    __del__ = lambda self : None;
    def __init__(self, *args): 
        """__init__(self) -> ConnContext"""
        this = _otr.new_ConnContext(*args)
        try: self.this.append(this)
        except: self.this = this
ConnContext_swigregister = _otr.ConnContext_swigregister
ConnContext_swigregister(ConnContext)
OFFER_NOT = _otr.OFFER_NOT
OFFER_SENT = _otr.OFFER_SENT
OFFER_REJECTED = _otr.OFFER_REJECTED
OFFER_ACCEPTED = _otr.OFFER_ACCEPTED


def otrl_context_find(*args):
  """
    otrl_context_find(OtrlUserState us, char user, char accountname, char protocol, 
        int add_if_missing, int addedp, void add_app_data)
    """
  return _otr.otrl_context_find(*args)

def otrl_context_find_fingerprint(*args):
  """otrl_context_find_fingerprint( context, char fingerprint, int add_if_missing, int addedp)"""
  return _otr.otrl_context_find_fingerprint(*args)

def otrl_context_set_trust(*args):
  """otrl_context_set_trust( fprint, char trust)"""
  return _otr.otrl_context_set_trust(*args)

def otrl_context_force_finished(*args):
  """otrl_context_force_finished( context)"""
  return _otr.otrl_context_force_finished(*args)

def otrl_context_force_plaintext(*args):
  """otrl_context_force_plaintext( context)"""
  return _otr.otrl_context_force_plaintext(*args)
class OtrlPrivKey(_object):
    """Proxy of C OtrlPrivKey struct"""
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, OtrlPrivKey, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, OtrlPrivKey, name)
    __repr__ = _swig_repr
    __swig_setmethods__["next"] = _otr.OtrlPrivKey_next_set
    __swig_getmethods__["next"] = _otr.OtrlPrivKey_next_get
    if _newclass:next = _swig_property(_otr.OtrlPrivKey_next_get, _otr.OtrlPrivKey_next_set)
    __swig_setmethods__["tous"] = _otr.OtrlPrivKey_tous_set
    __swig_getmethods__["tous"] = _otr.OtrlPrivKey_tous_get
    if _newclass:tous = _swig_property(_otr.OtrlPrivKey_tous_get, _otr.OtrlPrivKey_tous_set)
    __swig_setmethods__["accountname"] = _otr.OtrlPrivKey_accountname_set
    __swig_getmethods__["accountname"] = _otr.OtrlPrivKey_accountname_get
    if _newclass:accountname = _swig_property(_otr.OtrlPrivKey_accountname_get, _otr.OtrlPrivKey_accountname_set)
    __swig_setmethods__["protocol"] = _otr.OtrlPrivKey_protocol_set
    __swig_getmethods__["protocol"] = _otr.OtrlPrivKey_protocol_get
    if _newclass:protocol = _swig_property(_otr.OtrlPrivKey_protocol_get, _otr.OtrlPrivKey_protocol_set)
    __swig_setmethods__["pubkey_type"] = _otr.OtrlPrivKey_pubkey_type_set
    __swig_getmethods__["pubkey_type"] = _otr.OtrlPrivKey_pubkey_type_get
    if _newclass:pubkey_type = _swig_property(_otr.OtrlPrivKey_pubkey_type_get, _otr.OtrlPrivKey_pubkey_type_set)
    __swig_setmethods__["privkey"] = _otr.OtrlPrivKey_privkey_set
    __swig_getmethods__["privkey"] = _otr.OtrlPrivKey_privkey_get
    if _newclass:privkey = _swig_property(_otr.OtrlPrivKey_privkey_get, _otr.OtrlPrivKey_privkey_set)
    __swig_setmethods__["pubkey_data"] = _otr.OtrlPrivKey_pubkey_data_set
    __swig_getmethods__["pubkey_data"] = _otr.OtrlPrivKey_pubkey_data_get
    if _newclass:pubkey_data = _swig_property(_otr.OtrlPrivKey_pubkey_data_get, _otr.OtrlPrivKey_pubkey_data_set)
    __swig_setmethods__["pubkey_datalen"] = _otr.OtrlPrivKey_pubkey_datalen_set
    __swig_getmethods__["pubkey_datalen"] = _otr.OtrlPrivKey_pubkey_datalen_get
    if _newclass:pubkey_datalen = _swig_property(_otr.OtrlPrivKey_pubkey_datalen_get, _otr.OtrlPrivKey_pubkey_datalen_set)
    def __init__(self, *args): 
        """__init__(self) -> OtrlPrivKey"""
        this = _otr.new_OtrlPrivKey(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _otr.delete_OtrlPrivKey
    __del__ = lambda self : None;
OtrlPrivKey_swigregister = _otr.OtrlPrivKey_swigregister
OtrlPrivKey_swigregister(OtrlPrivKey)


def otrl_privkey_hash_to_human(*args):
  """otrl_privkey_hash_to_human(char MYOUT, char hash)"""
  return _otr.otrl_privkey_hash_to_human(*args)

def otrl_privkey_fingerprint(*args):
  """otrl_privkey_fingerprint(OtrlUserState us, char MYOUT, char accountname, char protocol) -> void"""
  return _otr.otrl_privkey_fingerprint(*args)

def otrl_privkey_fingerprint_raw(*args):
  """
    otrl_privkey_fingerprint_raw(OtrlUserState us, char NOTNULLTERMINATED, char accountname, 
        char protocol) -> void
    """
  return _otr.otrl_privkey_fingerprint_raw(*args)

def otrl_privkey_read(*args):
  """otrl_privkey_read(OtrlUserState us, char filename) -> gcry_error_t"""
  return _otr.otrl_privkey_read(*args)

def otrl_privkey_generate(*args):
  """
    otrl_privkey_generate(OtrlUserState us, char filename, char accountname, 
        char protocol) -> gcry_error_t
    """
  return _otr.otrl_privkey_generate(*args)

def otrl_privkey_read_fingerprints(*args):
  """otrl_privkey_read_fingerprints(OtrlUserState us, char filename, void add_app_data) -> gcry_error_t"""
  return _otr.otrl_privkey_read_fingerprints(*args)

def otrl_privkey_write_fingerprints(*args):
  """otrl_privkey_write_fingerprints(OtrlUserState us, char filename) -> gcry_error_t"""
  return _otr.otrl_privkey_write_fingerprints(*args)
class s_OtrlUserState(_object):
    """Proxy of C s_OtrlUserState struct"""
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, s_OtrlUserState, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, s_OtrlUserState, name)
    __repr__ = _swig_repr
    __swig_setmethods__["context_root"] = _otr.s_OtrlUserState_context_root_set
    __swig_getmethods__["context_root"] = _otr.s_OtrlUserState_context_root_get
    if _newclass:context_root = _swig_property(_otr.s_OtrlUserState_context_root_get, _otr.s_OtrlUserState_context_root_set)
    __swig_setmethods__["privkey_root"] = _otr.s_OtrlUserState_privkey_root_set
    __swig_getmethods__["privkey_root"] = _otr.s_OtrlUserState_privkey_root_get
    if _newclass:privkey_root = _swig_property(_otr.s_OtrlUserState_privkey_root_get, _otr.s_OtrlUserState_privkey_root_set)
    __swig_destroy__ = _otr.delete_s_OtrlUserState
    __del__ = lambda self : None;
    def __init__(self, *args): 
        """__init__(self) -> s_OtrlUserState"""
        this = _otr.new_s_OtrlUserState(*args)
        try: self.this.append(this)
        except: self.this = this
s_OtrlUserState_swigregister = _otr.s_OtrlUserState_swigregister
s_OtrlUserState_swigregister(s_OtrlUserState)


def otrl_userstate_create(*args):
  """otrl_userstate_create() -> OtrlUserState"""
  return _otr.otrl_userstate_create(*args)
class OtrlTLV(_object):
    """Proxy of C OtrlTLV struct"""
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, OtrlTLV, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, OtrlTLV, name)
    __repr__ = _swig_repr
    __swig_setmethods__["type"] = _otr.OtrlTLV_type_set
    __swig_getmethods__["type"] = _otr.OtrlTLV_type_get
    if _newclass:type = _swig_property(_otr.OtrlTLV_type_get, _otr.OtrlTLV_type_set)
    __swig_setmethods__["len"] = _otr.OtrlTLV_len_set
    __swig_getmethods__["len"] = _otr.OtrlTLV_len_get
    if _newclass:len = _swig_property(_otr.OtrlTLV_len_get, _otr.OtrlTLV_len_set)
    __swig_setmethods__["data"] = _otr.OtrlTLV_data_set
    __swig_getmethods__["data"] = _otr.OtrlTLV_data_get
    if _newclass:data = _swig_property(_otr.OtrlTLV_data_get, _otr.OtrlTLV_data_set)
    __swig_setmethods__["next"] = _otr.OtrlTLV_next_set
    __swig_getmethods__["next"] = _otr.OtrlTLV_next_get
    if _newclass:next = _swig_property(_otr.OtrlTLV_next_get, _otr.OtrlTLV_next_set)
    __swig_destroy__ = _otr.delete_OtrlTLV
    __del__ = lambda self : None;
    def __init__(self, *args): 
        """__init__(self) -> OtrlTLV"""
        this = _otr.new_OtrlTLV(*args)
        try: self.this.append(this)
        except: self.this = this
OtrlTLV_swigregister = _otr.OtrlTLV_swigregister
OtrlTLV_swigregister(OtrlTLV)
cvar = _otr.cvar
OTRL_TLV_PADDING = cvar.OTRL_TLV_PADDING
OTRL_TLV_DISCONNECTED = cvar.OTRL_TLV_DISCONNECTED
OTRL_TLV_SMP1 = cvar.OTRL_TLV_SMP1
OTRL_TLV_SMP1Q = cvar.OTRL_TLV_SMP1Q
OTRL_TLV_SMP2 = cvar.OTRL_TLV_SMP2
OTRL_TLV_SMP3 = cvar.OTRL_TLV_SMP3
OTRL_TLV_SMP4 = cvar.OTRL_TLV_SMP4
OTRL_TLV_SMP_ABORT = cvar.OTRL_TLV_SMP_ABORT


def otrl_tlv_find(*args):
  """otrl_tlv_find( tlvs, unsigned short type)"""
  return _otr.otrl_tlv_find(*args)
OTRL_SESSIONID_FIRST_HALF_BOLD = _otr.OTRL_SESSIONID_FIRST_HALF_BOLD
OTRL_SESSIONID_SECOND_HALF_BOLD = _otr.OTRL_SESSIONID_SECOND_HALF_BOLD
OTRL_SMP_EXPECT1 = _otr.OTRL_SMP_EXPECT1
OTRL_SMP_EXPECT2 = _otr.OTRL_SMP_EXPECT2
OTRL_SMP_EXPECT3 = _otr.OTRL_SMP_EXPECT3
OTRL_SMP_EXPECT4 = _otr.OTRL_SMP_EXPECT4
OTRL_SMP_EXPECT5 = _otr.OTRL_SMP_EXPECT5
OTRL_SMP_PROG_OK = _otr.OTRL_SMP_PROG_OK
OTRL_SMP_PROG_CHEATED = _otr.OTRL_SMP_PROG_CHEATED
OTRL_SMP_PROG_FAILED = _otr.OTRL_SMP_PROG_FAILED
OTRL_SMP_PROG_SUCCEEDED = _otr.OTRL_SMP_PROG_SUCCEEDED
class OtrlSMState(_object):
    """Proxy of C OtrlSMState struct"""
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, OtrlSMState, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, OtrlSMState, name)
    __repr__ = _swig_repr
    __swig_setmethods__["nextExpected"] = _otr.OtrlSMState_nextExpected_set
    __swig_getmethods__["nextExpected"] = _otr.OtrlSMState_nextExpected_get
    if _newclass:nextExpected = _swig_property(_otr.OtrlSMState_nextExpected_get, _otr.OtrlSMState_nextExpected_set)
    __swig_setmethods__["received_question"] = _otr.OtrlSMState_received_question_set
    __swig_getmethods__["received_question"] = _otr.OtrlSMState_received_question_get
    if _newclass:received_question = _swig_property(_otr.OtrlSMState_received_question_get, _otr.OtrlSMState_received_question_set)
    __swig_setmethods__["sm_prog_state"] = _otr.OtrlSMState_sm_prog_state_set
    __swig_getmethods__["sm_prog_state"] = _otr.OtrlSMState_sm_prog_state_get
    if _newclass:sm_prog_state = _swig_property(_otr.OtrlSMState_sm_prog_state_get, _otr.OtrlSMState_sm_prog_state_set)
    def __init__(self, *args): 
        """__init__(self) -> OtrlSMState"""
        this = _otr.new_OtrlSMState(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _otr.delete_OtrlSMState
    __del__ = lambda self : None;
OtrlSMState_swigregister = _otr.OtrlSMState_swigregister
OtrlSMState_swigregister(OtrlSMState)

OTRL_MSGTYPE_NOTOTR = _otr.OTRL_MSGTYPE_NOTOTR
OTRL_MSGTYPE_TAGGEDPLAINTEXT = _otr.OTRL_MSGTYPE_TAGGEDPLAINTEXT
OTRL_MSGTYPE_QUERY = _otr.OTRL_MSGTYPE_QUERY
OTRL_MSGTYPE_DH_COMMIT = _otr.OTRL_MSGTYPE_DH_COMMIT
OTRL_MSGTYPE_DH_KEY = _otr.OTRL_MSGTYPE_DH_KEY
OTRL_MSGTYPE_REVEALSIG = _otr.OTRL_MSGTYPE_REVEALSIG
OTRL_MSGTYPE_SIGNATURE = _otr.OTRL_MSGTYPE_SIGNATURE
OTRL_MSGTYPE_V1_KEYEXCH = _otr.OTRL_MSGTYPE_V1_KEYEXCH
OTRL_MSGTYPE_DATA = _otr.OTRL_MSGTYPE_DATA
OTRL_MSGTYPE_ERROR = _otr.OTRL_MSGTYPE_ERROR
OTRL_MSGTYPE_UNKNOWN = _otr.OTRL_MSGTYPE_UNKNOWN
OTRL_FRAGMENT_SEND_ALL = _otr.OTRL_FRAGMENT_SEND_ALL
OTRL_FRAGMENT_SEND_ALL_BUT_FIRST = _otr.OTRL_FRAGMENT_SEND_ALL_BUT_FIRST
OTRL_FRAGMENT_SEND_ALL_BUT_LAST = _otr.OTRL_FRAGMENT_SEND_ALL_BUT_LAST

def otrl_proto_message_type(*args):
  """otrl_proto_message_type(char message) -> OtrlMessageType"""
  return _otr.otrl_proto_message_type(*args)
OTRL_NOTIFY_ERROR = _otr.OTRL_NOTIFY_ERROR
OTRL_NOTIFY_WARNING = _otr.OTRL_NOTIFY_WARNING
OTRL_NOTIFY_INFO = _otr.OTRL_NOTIFY_INFO

def otrl_message_sending(*args):
  """
    otrl_message_sending(OtrlUserState us, OtrlMessageAppOps ops, char accountname, 
        char protocol, char recipient, char message, 
         tlvs, char messagep, void add_appdata) -> gcry_error_t
    """
  return _otr.otrl_message_sending(*args)

def otrl_message_receiving(*args):
  """
    otrl_message_receiving(OtrlUserState us, OtrlMessageAppOps ops, char accountname, 
        char protocol, char sender, char message, 
        void add_appdata) -> PyObject
    """
  return _otr.otrl_message_receiving(*args)

def otrl_message_fragment_and_send(*args):
  """
    otrl_message_fragment_and_send(OtrlMessageAppOps ops,  context, char message, OtrlFragmentPolicy fragPolicy, 
        char returnFragment) -> gcry_error_t
    """
  return _otr.otrl_message_fragment_and_send(*args)

def otrl_message_disconnect(*args):
  """
    otrl_message_disconnect(OtrlUserState us, OtrlMessageAppOps ops, char accountname, 
        char protocol, char username)
    """
  return _otr.otrl_message_disconnect(*args)

def otrl_message_initiate_smp(*args):
  """
    otrl_message_initiate_smp(OtrlUserState us, OtrlMessageAppOps ops,  context, 
        unsigned char secret)
    """
  return _otr.otrl_message_initiate_smp(*args)

def otrl_message_initiate_smp_q(*args):
  """
    otrl_message_initiate_smp_q(OtrlUserState us, OtrlMessageAppOps ops,  context, 
        char question, unsigned char secret)
    """
  return _otr.otrl_message_initiate_smp_q(*args)

def otrl_message_respond_smp(*args):
  """
    otrl_message_respond_smp(OtrlUserState us, OtrlMessageAppOps ops,  context, 
        unsigned char secret)
    """
  return _otr.otrl_message_respond_smp(*args)

def otrl_message_abort_smp(*args):
  """otrl_message_abort_smp(OtrlUserState us, OtrlMessageAppOps ops,  context)"""
  return _otr.otrl_message_abort_smp(*args)

OTRL_MESSAGE_TAG_BASE = cvar.OTRL_MESSAGE_TAG_BASE
OTRL_MESSAGE_TAG_V1 = cvar.OTRL_MESSAGE_TAG_V1
OTRL_MESSAGE_TAG_V2 = cvar.OTRL_MESSAGE_TAG_V2
OTRL_MSGFLAGS_IGNORE_UNREADABLE = cvar.OTRL_MSGFLAGS_IGNORE_UNREADABLE
OTRL_POLICY_ALLOW_V1 = cvar.OTRL_POLICY_ALLOW_V1
OTRL_POLICY_ALLOW_V2 = cvar.OTRL_POLICY_ALLOW_V2
OTRL_POLICY_REQUIRE_ENCRYPTION = cvar.OTRL_POLICY_REQUIRE_ENCRYPTION
OTRL_POLICY_SEND_WHITESPACE_TAG = cvar.OTRL_POLICY_SEND_WHITESPACE_TAG
OTRL_POLICY_WHITESPACE_START_AKE = cvar.OTRL_POLICY_WHITESPACE_START_AKE
OTRL_POLICY_ERROR_START_AKE = cvar.OTRL_POLICY_ERROR_START_AKE
OTRL_POLICY_VERSION_MASK = cvar.OTRL_POLICY_VERSION_MASK
OTRL_POLICY_NEVER = cvar.OTRL_POLICY_NEVER
OTRL_POLICY_OPPORTUNISTIC = cvar.OTRL_POLICY_OPPORTUNISTIC
OTRL_POLICY_MANUAL = cvar.OTRL_POLICY_MANUAL
OTRL_POLICY_ALWAYS = cvar.OTRL_POLICY_ALWAYS
OTRL_POLICY_DEFAULT = cvar.OTRL_POLICY_DEFAULT

