package obus
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/OBus_message/index.html
Module OBus_message
Source
Message description
Message structure
The body is a sequence of dynamically typed values
Source
type typ =
| Method_call of OBus_path.t * OBus_name.interface * OBus_name.member
| Method_return of serial
| Error of serial * OBus_name.error
| Signal of OBus_path.t * OBus_name.interface * OBus_name.member
flags
Creates message flags. All optional arguments default to false
Source
type t = {
flags : flags;
serial : serial;
typ : typ;
destination : OBus_name.bus;
sender : OBus_name.bus;
body : body;
}
Projections
Helpers for creating messages
Note that when creating a message the serial field is not relevant, it is overridden by OBus_connection
at sending-time
Source
val make :
?flags:flags ->
?serial:serial ->
?sender:OBus_name.bus ->
?destination:OBus_name.bus ->
typ:typ ->
body ->
t
Source
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
Source
val method_return :
?flags:flags ->
?serial:serial ->
?sender:OBus_name.bus ->
?destination:OBus_name.bus ->
reply_serial:serial ->
body ->
t
Source
val error :
?flags:flags ->
?serial:serial ->
?sender:OBus_name.bus ->
?destination:OBus_name.bus ->
reply_serial:serial ->
error_name:OBus_name.error ->
body ->
t
Source
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
Errors
Exception raised when the signature of the reply to a method call does not match the expected signature. The argument is an error message.
Source
val invalid_reply :
method_call:t ->
expected_signature:OBus_value.signature ->
method_return:t ->
exn
invalid_reply ~method_call ~expected_signature ~method_return
Pretty-printing
Print a message on a formatter
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page