package obus
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=75703f78015e15d03d0fdba1633a155875daf17d854225658429e72a0df06258
md5=3090a796f0af95e16838d81656ac4b97
doc/obus.internals/OBus_name/index.html
Module OBus_name
Source
D-Bus names
For specific restrictions on D-Bus names, see
General restrictions include:
- names must not be empty
- names must contains only ascii characters
Bus names
example: "org.freedesktop.DBus", ":1.1"
Interface names
example: "org.freedesktop.DBus.Introspectable"
Methods/signals/properties names
example: "StartServiceByName"
Error names
example: "org.freedesktop.Error.UnknownMethod"
D-Bus name translation
Split a name into longest blocks matched by the regular expression "A-Z
*^A-Z.
*":
split "SetCPUFreqGovernor" = ["Set"; "CPUFreq"; "Governor"]
, split "org.freedesktop.DBus" = ["org"; "freedesktop"; "DBus"]
Translate a D-Bus name into an ocaml-style lower-identifier:
caml_lid "SetCPUFreqGovernor" = "set_cpufreq_governor"
Translate a D-Bus name into an ocaml-style upper-identifier:
caml_uid "org.freedesktop.DBus" = "Org_freedesktop_dbus"
Translate a D-Bus name into an haskell-style lower-identifier:
haskell_lid "SetCPUFreqGovernor" = "setCPUFreqGovernor"
Translate a D-Bus name into an haskell-style upper-identifier:
haskell_uid "org.freedesktop.DBus" = "OrgFreedesktopDBus"