package obus

  1. Overview
  2. Docs
Pure Ocaml implementation of the D-Bus protocol

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.0.tar.gz
sha256=b8a0707f03d525a98c1c5a380b07074e52f2d26918c7b2ad90b5cc0f99a67f2d
md5=0896d5078bfd486a65cf9fa73a984b3f

doc/obus/OBus_address/index.html

Module OBus_address

Manipulation of D-Bus addresses

Types
type guid = OBus_uuid.t

A unique address identifier. Each server's listening address has a unique one.

type t = {
  1. name : string;
    (*

    The transport name

    *)
  2. 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

val guid : t -> guid option

Returns the address guid, if any

To/from string conversion
exception Parse_failure of string * int * string
val of_string : string -> t list

of_string str parse str and return the list of addresses defined in it.

val to_string : t list -> string

to_string addresses return a string representation of a list of addresses

Well-known addresses
val system : t list Lwt.t Lazy.t

The list of addresses for system bus

val session : t list Lwt.t Lazy.t

The list of addresses for session bus

val default_system : t list

The default addresses for the system bus

val default_session : t list

The default addresses for the session bus

OCaml

Innovation. Community. Security.