From 38a59f80b1f202da8737b05873d30fbc970f1431 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Thu, 1 Sep 2016 20:08:14 +0200 Subject: [PATCH] only in debug mode --- src/message_api.cc | 8 ++++++++ src/message_api.hh | 3 +++ src/pEpmodule.cc | 3 +++ 3 files changed, 14 insertions(+) diff --git a/src/message_api.cc b/src/message_api.cc index d9ef9c6..8693925 100644 --- a/src/message_api.cc +++ b/src/message_api.cc @@ -1,4 +1,5 @@ #include "message_api.hh" +#include #include 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 } } diff --git a/src/message_api.hh b/src/message_api.hh index 8f1ec59..94fc9c8 100644 --- a/src/message_api.hh +++ b/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 } } diff --git a/src/pEpmodule.cc b/src/pEpmodule.cc index f8491e2..66c26e9 100644 --- a/src/pEpmodule.cc +++ b/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