From 389a812d3dfad22457d4bf71c2218bd04dc78249 Mon Sep 17 00:00:00 2001 From: heck Date: Fri, 26 Aug 2022 14:19:04 +0200 Subject: [PATCH] #8 - add function config_media_keys() --- src/pEp/_pEp/pEpmodule.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/pEp/_pEp/pEpmodule.cc b/src/pEp/_pEp/pEpmodule.cc index de90d39..b92543e 100644 --- a/src/pEp/_pEp/pEpmodule.cc +++ b/src/pEp/_pEp/pEpmodule.cc @@ -14,6 +14,7 @@ #include #include #include +#include // libpEpAdapter #include @@ -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));