|
|
@ -14,6 +14,7 @@ |
|
|
|
#include <pEp/message_api.h> |
|
|
|
#include <pEp/sync_api.h> |
|
|
|
#include <pEp/status_to_string.h> |
|
|
|
#include <pEp/media_key.h> |
|
|
|
|
|
|
|
// libpEpAdapter
|
|
|
|
#include <pEp/Adapter.hh> |
|
|
@ -198,6 +199,14 @@ namespace pEp { |
|
|
|
_throw_status(status); |
|
|
|
} |
|
|
|
|
|
|
|
void config_media_keys(dict value) { |
|
|
|
::stringpair_list_t *_spl = nullptr; |
|
|
|
strdict_attr(_spl, value); |
|
|
|
|
|
|
|
PEP_STATUS status = ::config_media_keys(Adapter::session(), _spl); |
|
|
|
_throw_status(status); |
|
|
|
} |
|
|
|
|
|
|
|
void testfunc() { |
|
|
|
_messageToSend(NULL); |
|
|
|
} |
|
|
@ -703,6 +712,10 @@ namespace pEp { |
|
|
|
"from the application upon user request\n" |
|
|
|
); |
|
|
|
|
|
|
|
def("config_media_keys", &config_media_keys, |
|
|
|
"Replace the session map with the given map" |
|
|
|
); |
|
|
|
|
|
|
|
// 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)); |
|
|
|