From 1e8bfe3252fa65e3122ebf3a1d383f6039ad13da Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 3 Sep 2016 08:56:20 +0200 Subject: [PATCH] make these methods available --- src/message_api.cc | 2 -- src/message_api.hh | 2 -- src/pEpmodule.cc | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/message_api.cc b/src/message_api.cc index 0a2e44f..293ac0a 100644 --- a/src/message_api.cc +++ b/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 } } diff --git a/src/message_api.hh b/src/message_api.hh index 2b93719..780c5c9 100644 --- a/src/message_api.hh +++ b/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 } } diff --git a/src/pEpmodule.cc b/src/pEpmodule.cc index 73b0e4b..631d574 100644 --- a/src/pEpmodule.cc +++ b/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