Browse Source

add leave_device_group()

PYADPT-55
Volker Birk 6 years ago
parent
commit
c013260d39
  1. 10
      src/pEpmodule.cc

10
src/pEpmodule.cc

@ -118,6 +118,10 @@ namespace pEp {
{ {
::set_debug_color(adapter.session(), ansi_color); ::set_debug_color(adapter.session(), ansi_color);
} }
void leave_device_group()
::leave_device_group(adapter.session());
}
} }
} }
@ -541,6 +545,12 @@ BOOST_PYTHON_MODULE(pEp)
def("debug_color", &pEp::PythonAdapter::debug_color, def("debug_color", &pEp::PythonAdapter::debug_color,
"for debug builds set ANSI color value"); "for debug builds set ANSI color value");
def("leave_device_group", &pEp::PythonAdapter::leave_device_group,
"leave_device_group()\n"
"\n"
"call this for a grouped device, which should leave\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));

Loading…
Cancel
Save