Browse Source

make these methods available

PYADPT-55
Volker Birk 9 years ago
parent
commit
1e8bfe3252
  1. 2
      src/message_api.cc
  2. 2
      src/message_api.hh
  3. 2
      src/pEpmodule.cc

2
src/message_api.cc

@ -61,7 +61,6 @@ namespace pEp {
return (int) ::color_from_rating((PEP_rating) rating);
}
#ifndef NDEBUG
void _config_keep_sync_msg(bool enabled)
{
::config_keep_sync_msg(session, enabled);
@ -98,7 +97,6 @@ namespace pEp {
return object(handle<>(ba));
}
#endif
}
}

2
src/message_api.hh

@ -8,11 +8,9 @@ namespace pEp {
int enc_format = 4, int flags = 0);
boost::python::tuple decrypt_message(Message src);
int _color(int rating);
#ifndef NDEBUG
void _config_keep_sync_msg(bool enabled);
string sync_decode(object buffer);
object sync_encode(string text);
#endif
}
}

2
src/pEpmodule.cc

@ -204,11 +204,9 @@ BOOST_PYTHON_MODULE(pEp)
def("outgoing_message", &outgoing_message, "create an outgoing message using an own identity");
def("color", &_color, "calculate color value out of rating");
def("trustwords", &_trustwords, "calculate trustwords for two Identities");
#ifndef NDEBUG
def("config_keep_sync_msg", &_config_keep_sync_msg, "configure if sync messages are being kept or not");
def("sync_decode", &sync_decode, "decode sync message to XER/XML text");
def("sync_encode", &sync_encode, "encode sync message from XER/XML text");
#endif
// key sync API

Loading…
Cancel
Save