package obus

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

Install

Dune Dependency

Authors

Maintainers

Sources

obus-1.2.5.tar.gz
md5=81eb1034c6ef4421a2368a9b352199de
sha512=4b540497188a7d78f4f14f94c6b7fdff47dd06436a34e650ff378dd77bb3e2acb7afd45cd72daf4ddba06e732e9944d560c2882dc37862f1b1f1bb6df37e6205

doc/obus.internals/OBus_path/index.html

Module OBus_pathSource

Manipulation of dbus object paths

Sourcetype element = string

A path component

Sourcetype t = element list

A complete path

Sourceval compare : t -> t -> int

Same as Stdlib.compare. It allows this module to be used as argument to the functors Set.Make and Map.Make.

Construction
Sourceval empty : t

Empty path

Sourceval after : t -> t -> t option

after prefix path if path = prefix @ p return Some p, and None if not

Sourceval of_string : string -> t

Create an object path from a string.

Sourceval to_string : t -> string

Return a string representation of an object path

Helpers
Sourceval escape : string -> element

Escape an arbitrary string into a valid element

Sourceval unescape : element -> string

Interpret escape sequence to get back the original string

Sourceval generate : unit -> t

generate () generate a new unique path

Validation
Sourceval validate_element : OBus_string.validator
OCaml

Innovation. Community. Security.