OBus_nameD-Bus names
For specific restrictions on D-Bus names, see
General restrictions include:
type bus = OBus_string.tBus names
example: "org.freedesktop.DBus", ":1.1"
val validate_bus : OBus_string.validatorval is_unique : bus -> boolTell wether a bus name is a unique connection name or not.
type interface = OBus_string.tInterface names
example: "org.freedesktop.DBus.Introspectable"
val validate_interface : OBus_string.validatortype member = OBus_string.tMethods/signals/properties names
example: "StartServiceByName"
val validate_member : OBus_string.validatortype error = OBus_string.tError names
example: "org.freedesktop.Error.UnknownMethod"
val validate_error : OBus_string.validatorSplit 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"