module OBus_bus:sig..end
typet =OBus_connection.t
val session : ?switch:Lwt_switch.t -> unit -> t Lwt.tsession ?switch () returns a connection to the user session
      message bus. Subsequent calls to OBus_bus.session will return the same
      bus.  OBus will automatically exits the program when an error
      happen on the session bus. You can change this behavior by
      calling OBus_connection.set_on_disconnect.val system : ?switch:Lwt_switch.t -> unit -> t Lwt.tsystem ?switch () returns a connection to the system message
      bus. As for OBus_bus.session, subsequent calls to OBus_bus.system will
      return the same bus. However, if the connection is closed or it
      crashes, OBus_bus.system will try to reopen it.val of_addresses : ?switch:Lwt_switch.t -> OBus_address.t list -> t Lwt.tval register_connection : OBus_connection.t -> unit Lwt.t
      If the connection is a connection to a message bus, created with
      one of the function of OBus_connection then
      OBus_bus.register_connection must be called on it before any other
      functions.
val exit_on_disconnect : exn -> 'a
exn is OBus_connection.Connection_lost, it exits
      program with a return code of 0exn is a fatal error, it prints a message on stderr and
      exits the program with an exit code of 1val get_peer : t -> OBus_name.bus -> OBus_peer.t Lwt.tget_peer bus name return the peer owning the bus name
      name. If the service is not activated and is activable, then
      it is startedval get_proxy : t -> OBus_name.bus -> OBus_path.t -> OBus_proxy.t Lwt.tget_proxy bus name path resolve name with OBus_bus.get_peer and
      return a proxy for the object with path path on this
      serviceval name : t -> OBus_name.busOBus_connection.name.val names : t -> Set.Make(String).t React.signalnames bus is the signal holding the set of all names we
      currently own. It raises Invalid_argument if the connection is
      not a connection to a message bus.val hello : t -> OBus_name.bus Lwt.thello connection sends an hello message to the message bus,
      which returns the unique connection name of the connection. Note
      that if the hello message has already been sent, it will
      fail.exception Access_denied of string
typerequest_name_result =[ `Already_owner | `Exists | `In_queue | `Primary_owner ]
val request_name : t ->
       ?allow_replacement:bool ->
       ?replace_existing:bool ->
       ?do_not_queue:bool -> OBus_name.bus -> request_name_result Lwt.t
      All optionnal parameters default to false, their meaning are:
allow_replacement: allow other application to steal you the namereplace_existing: replace any existing owner of the namedo_not_queue: do not queue if not availabletyperelease_name_result =[ `Non_existent | `Not_owner | `Released ]
val release_name : t -> OBus_name.bus -> release_name_result Lwt.texception Service_unknown of string
typestart_service_by_name_result =[ `Already_running | `Success ]
val start_service_by_name : t -> OBus_name.bus -> start_service_by_name_result Lwt.tval name_has_owner : t -> OBus_name.bus -> bool Lwt.ttrue if the service is currently running, i.e. some
      application offer it on the message busval list_names : t -> OBus_name.bus list Lwt.tval list_activatable_names : t -> OBus_name.bus list Lwt.tstart_service_by_nameexception Name_has_no_owner of string
val get_name_owner : t -> OBus_name.bus -> OBus_name.bus Lwt.tName_has_no_owner if the given name does not have an owner.val list_queued_owners : t -> OBus_name.bus -> OBus_name.bus list Lwt.texception Service_unknown of string
OBus_match.export and
    OBus_match.remove since they do not add duplicated rules
    several times.exception Match_rule_invalid of string
OBus_match.rule are always valid.val add_match : t -> OBus_match.rule -> unit Lwt.t
      It can raise OBus_error.No_memory.
exception Match_rule_not_found of string
val remove_match : t -> OBus_match.rule -> unit Lwt.tOBus_bus.Match_rule_not_found if the rule does not existsexception Adt_audit_data_unknown of string
exception Selinux_security_context_unknown of string
val update_activation_environment : t -> (string * string) list -> unit Lwt.t
val get_connection_unix_user : t -> OBus_name.bus -> int Lwt.t
val get_connection_unix_process_id : t -> OBus_name.bus -> int Lwt.t
val get_adt_audit_session_data : t -> OBus_name.bus -> string Lwt.t
val get_connection_selinux_security_context : t -> OBus_name.bus -> string Lwt.t
val reload_config : t -> unit Lwt.t
val get_id : t -> OBus_uuid.t Lwt.tval name_owner_changed : t -> (OBus_name.bus * OBus_name.bus * OBus_name.bus) OBus_signal.tval name_lost : t -> OBus_name.bus OBus_signal.t
val name_acquired : t -> OBus_name.bus OBus_signal.t