package obus

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.2.tar.gz
sha256=3bf0aeb00bf90cd4111483b37cefcb39af38ad6db1aeb6949a2fbecc13ff9a90
md5=7dd48f9bde3e069898fa08e9972596b5

doc/obus.internals/OBus_path/index.html

Module OBus_path

Manipulation of dbus object paths

type element = string

A path component

type t = element list

A complete path

val compare : t -> t -> int

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

Construction
val empty : t

Empty path

val after : t -> t -> t option

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

val of_string : string -> t

Create an object path from a string.

val to_string : t -> string

Return a string representation of an object path

Helpers
val escape : string -> element

Escape an arbitrary string into a valid element

val unescape : element -> string

Interpret escape sequence to get back the original string

val generate : unit -> t

generate () generate a new unique path

Validation
val validate : OBus_string.validator
val validate_element : OBus_string.validator
OCaml

Innovation. Community. Security.