30-bluez-midi-monitor.lua 414 B

12345678910111213141516171819
  1. bluez_midi_monitor = {}
  2. bluez_midi_monitor.properties = {}
  3. bluez_midi_monitor.rules = {}
  4. function bluez_midi_monitor.enable()
  5. if bluez_midi_monitor.enabled == false then
  6. return
  7. end
  8. load_monitor("bluez-midi", {
  9. properties = bluez_midi_monitor.properties,
  10. rules = bluez_midi_monitor.rules,
  11. })
  12. if bluez_midi_monitor.properties["with-logind"] then
  13. load_optional_module("logind")
  14. end
  15. end