From 23e1e6ac988521016b3a3e72a3da01787632c8ad Mon Sep 17 00:00:00 2001 From: heck Date: Fri, 26 Aug 2022 13:31:49 +0200 Subject: [PATCH] #8 - add function sync_reinit() --- src/pEp/_pEp/pEpmodule.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/pEp/_pEp/pEpmodule.cc b/src/pEp/_pEp/pEpmodule.cc index 5009a15..de90d39 100644 --- a/src/pEp/_pEp/pEpmodule.cc +++ b/src/pEp/_pEp/pEpmodule.cc @@ -193,6 +193,11 @@ namespace pEp { ::disable_all_sync_channels(Adapter::session()); } + void sync_reinit() { + PEP_STATUS status = ::sync_reinit(Adapter::session()); + _throw_status(status); + } + void testfunc() { _messageToSend(NULL); } @@ -693,6 +698,11 @@ namespace pEp { "Disable sync for all identities\n" ); + def("sync_reinit", &sync_reinit, + "Explicitly reinitialize Sync. This is meant to be explicitly called\n" + "from the application upon user request\n" + ); + // codecs call< object >(((object)(import("codecs").attr("register"))).ptr(), make_function(sync_search)); call< object >(((object)(import("codecs").attr("register"))).ptr(), make_function(distribution_search));