|
@ -207,8 +207,6 @@ BOOST_PYTHON_MODULE(pEp) |
|
|
def("color", &_color, "calculate color value out of rating"); |
|
|
def("color", &_color, "calculate color value out of rating"); |
|
|
def("trustwords", &_trustwords, "calculate trustwords for two Identities"); |
|
|
def("trustwords", &_trustwords, "calculate trustwords for two Identities"); |
|
|
def("config_keep_sync_msg", &_config_keep_sync_msg, "configure if sync messages are being kept or not"); |
|
|
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"); |
|
|
|
|
|
|
|
|
|
|
|
// key sync API
|
|
|
// key sync API
|
|
|
|
|
|
|
|
@ -223,6 +221,10 @@ BOOST_PYTHON_MODULE(pEp) |
|
|
.def("deliverHandshakeResult", &SyncMixIn::deliverHandshakeResult, |
|
|
.def("deliverHandshakeResult", &SyncMixIn::deliverHandshakeResult, |
|
|
"call to deliver the handshake result"); |
|
|
"call to deliver the handshake result"); |
|
|
|
|
|
|
|
|
|
|
|
// codecs
|
|
|
|
|
|
|
|
|
|
|
|
call< object >(((object)(import("codecs").attr("register"))).ptr(), make_function(sync_search)); |
|
|
|
|
|
|
|
|
// init() and release()
|
|
|
// init() and release()
|
|
|
|
|
|
|
|
|
PyModuleDef * _def = PyModule_GetDef(scope().ptr()); |
|
|
PyModuleDef * _def = PyModule_GetDef(scope().ptr()); |
|
|