Browse Source

#8 - add function sync_reinit()

gitea-008
heck 3 years ago
parent
commit
23e1e6ac98
  1. 10
      src/pEp/_pEp/pEpmodule.cc

10
src/pEp/_pEp/pEpmodule.cc

@ -193,6 +193,11 @@ namespace pEp {
::disable_all_sync_channels(Adapter::session()); ::disable_all_sync_channels(Adapter::session());
} }
void sync_reinit() {
PEP_STATUS status = ::sync_reinit(Adapter::session());
_throw_status(status);
}
void testfunc() { void testfunc() {
_messageToSend(NULL); _messageToSend(NULL);
} }
@ -693,6 +698,11 @@ namespace pEp {
"Disable sync for all identities\n" "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 // codecs
call< object >(((object)(import("codecs").attr("register"))).ptr(), make_function(sync_search)); call< object >(((object)(import("codecs").attr("register"))).ptr(), make_function(sync_search));
call< object >(((object)(import("codecs").attr("register"))).ptr(), make_function(distribution_search)); call< object >(((object)(import("codecs").attr("register"))).ptr(), make_function(distribution_search));

Loading…
Cancel
Save