package obus

  1. Overview
  2. Docs
A pure OCaml implementation of DBus

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.1.8.tar.gz
sha256=84aa0003157b0299e43b20a4127b7af04a0fd99878d7ce540bbbfbc6157dfe4f
md5=976947861f1dfa3d3da68378f25377c1

doc/obus/OBus_message/index.html

Module OBus_message

type serial = int32
type typ =
  1. | Method_call of OBus_path.t * OBus_name.interface * OBus_name.member
  2. | Method_return of serial
  3. | Error of serial * OBus_name.error
  4. | Signal of OBus_path.t * OBus_name.interface * OBus_name.member
type flags = {
  1. no_reply_expected : bool;
  2. no_auto_start : bool;
}
val no_reply_expected : flags -> bool
val no_auto_start : flags -> bool
val make_flags : ?no_reply_expected:bool -> ?no_auto_start:bool -> unit -> flags
val default_flags : flags
type t = {
  1. flags : flags;
  2. serial : serial;
  3. typ : typ;
  4. destination : OBus_name.bus;
  5. sender : OBus_name.bus;
  6. body : body;
}
val flags : t -> flags
val serial : t -> serial
val typ : t -> typ
val destination : t -> OBus_name.bus
val sender : t -> OBus_name.bus
val body : t -> body
val make : ?flags:flags -> ?serial:serial -> ?sender:OBus_name.bus -> ?destination:OBus_name.bus -> typ:typ -> body -> t
val method_call : ?flags:flags -> ?serial:serial -> ?sender:OBus_name.bus -> ?destination:OBus_name.bus -> path:OBus_path.t -> ?interface:OBus_name.interface -> member:OBus_name.member -> body -> t
val method_return : ?flags:flags -> ?serial:serial -> ?sender:OBus_name.bus -> ?destination:OBus_name.bus -> reply_serial:serial -> body -> t
val error : ?flags:flags -> ?serial:serial -> ?sender:OBus_name.bus -> ?destination:OBus_name.bus -> reply_serial:serial -> error_name:OBus_name.error -> body -> t
val signal : ?flags:flags -> ?serial:serial -> ?sender:OBus_name.bus -> ?destination:OBus_name.bus -> path:OBus_path.t -> interface:OBus_name.interface -> member:OBus_name.member -> body -> t
exception Invalid_reply of string
val invalid_reply : method_call:t -> expected_signature:OBus_value.signature -> method_return:t -> exn
val print : Format.formatter -> t -> unit