obus
Pure Ocaml implementation of the D-Bus protocol
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
back to documentation root
package obus
-
obus
-
obus.hal
-
obus.network_manager
-
obus.notification
-
obus.ppx
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library obus
Module
OBus_address
Types
type guid = OBus_uuid.t
A unique address identifier. Each server's listening address has a unique one.
type t = {
name : string; | (* The transport name *) |
args : (string * string) list; | (* Arguments of the address *) |
}
Type of an address
val name : t -> string
name
projection
val args : t -> (string * string) list
args
Projection
val make : name:string -> args:(string * string) list -> t
Creates an address
val arg : string -> t -> string option
arg key address
returns the value of argument key
, if any
To/from string conversion
Parse_failure(string, position, reason)
exception raised when parsing a string failed.
val of_string : string -> t list
of_string str
parse str
and return the list of addresses defined in it.
- raises Parse_failure
if the string contains an invalid address
val to_string : t list -> string
to_string addresses
return a string representation of a list of addresses
Well-known addresses
val default_system : t list
The default addresses for the system bus
val default_session : t list
The default addresses for the session bus
ON THIS PAGE