Browse Source

only in debug mode

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

8
src/message_api.cc

@ -1,4 +1,5 @@
#include "message_api.hh"
#include <pEp/pEpEngine.h>
#include <pEp/message_api.h>
namespace pEp {
@ -58,6 +59,13 @@ 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);
}
#endif
}
}

3
src/message_api.hh

@ -8,6 +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);
#endif
}
}

3
src/pEpmodule.cc

@ -204,6 +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");
#endif
// key sync API

Loading…
Cancel
Save