|
@ -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)); |
|
|