package obus

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

D-Bus values

type basic =
  1. | Byte of char
  2. | Boolean of bool
  3. | Int16 of int
  4. | Int32 of int32
  5. | Int64 of int64
  6. | Uint16 of int
  7. | Uint32 of int32
  8. | Uint64 of int64
  9. | Double of float
  10. | String of string
  11. | Signature of signature
  12. | Object_path of OBus_path.t
  13. | Unix_fd of Unix.file_descr
type single = private
  1. | Basic of basic
  2. | Array of T.single * single list
  3. | Byte_array of string
  4. | Dict of T.basic * T.single * (basic * single) list
  5. | Structure of single list
  6. | Variant of single
type sequence = single list
Constructors
val byte : char -> basic
val boolean : bool -> basic
val int16 : int -> basic
val int32 : int32 -> basic
val int64 : int64 -> basic
val uint16 : int -> basic
val uint32 : int32 -> basic
val uint64 : int64 -> basic
val double : float -> basic
val string : string -> basic
val signature : signature -> basic
val object_path : OBus_path.t -> basic
val unix_fd : Unix.file_descr -> basic
val basic : basic -> single
val array : T.single -> single list -> single
val byte_array : string -> single
val dict : T.basic -> T.single -> (basic * single) list -> single
val structure : single list -> single
val variant : single -> single
val basic_byte : char -> single
val basic_boolean : bool -> single
val basic_int16 : int -> single
val basic_int32 : int32 -> single
val basic_int64 : int64 -> single
val basic_uint16 : int -> single
val basic_uint32 : int32 -> single
val basic_uint64 : int64 -> single
val basic_double : float -> single
val basic_string : string -> single
val basic_signature : signature -> single
val basic_object_path : OBus_path.t -> single
val basic_unix_fd : Unix.file_descr -> single
Typing
val type_of_basic : basic -> T.basic
val type_of_single : single -> T.single
val type_of_sequence : sequence -> T.sequence
Pretty printing
val print_basic : Format.formatter -> basic -> unit
val print_single : Format.formatter -> single -> unit
val print_sequence : Format.formatter -> sequence -> unit
val string_of_basic : basic -> string
val string_of_single : single -> string
val string_of_sequence : sequence -> string
File descriptors utils
val basic_dup : basic -> basic
val single_dup : single -> single
val sequence_dup : sequence -> sequence

Duplicates all file descriptors of the given value

val basic_close : basic -> unit Lwt.t
val single_close : single -> unit Lwt.t
val sequence_close : sequence -> unit Lwt.t

Closes all file descriptors of the given value

OCaml

Innovation. Community. Security.