MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / clear_ipc_bindings

Method clear_ipc_bindings

plugins/single_plugins/command.cpp:426–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424 };
425
426 void clear_ipc_bindings(std::function<bool(const ipc_binding_t&)> filter)
427 {
428 ipc_bindings.remove_if([&] (const ipc_binding_t& binding)
429 {
430 if (filter(binding))
431 {
432 wf::get_core().bindings->rem_binding((void*)&binding.callback);
433 return true;
434 }
435
436 return false;
437 });
438 }
439
440 wf::ipc::method_callback on_clear_ipc_bindings = [&] (const wf::json_t& js)
441 {

Callers

nothing calls this directly

Calls 1

rem_bindingMethod · 0.45

Tested by

no test coverage detected