Browse Source

#8 - add function config_media_keys()

gitea-008
heck 3 years ago
parent
commit
389a812d3d
  1. 13
      src/pEp/_pEp/pEpmodule.cc

13
src/pEp/_pEp/pEpmodule.cc

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

Loading…
Cancel
Save