package obus
Pure Ocaml implementation of the D-Bus protocol
Install
Dune Dependency
Authors
Maintainers
Sources
1.2.3.tar.gz
sha256=75703f78015e15d03d0fdba1633a155875daf17d854225658429e72a0df06258
md5=3090a796f0af95e16838d81656ac4b97
doc/obus.internals/OBus_string/index.html
Module OBus_string
Source
Restriction on strings used with D-Bus
There are a lot of restrictions for strings used in D-Bus. OBus only verifies strings when a message is sent or received
Source
type error = {
typ : string;
(*Type of string ("string", "bus name", "error name", "path", ...)
*)str : string;
(*The string which fail to validate
*)ofs : int;
(*is the position in bytes where the validation failed
*)msg : string;
(*explains why the string failed to validate
*)
}
Error projections
Validators
Tests if a string is correct.
- if it is, returns
None
- if not, returns
Some(ofs, msg)
Raises Invalid_string
if the given string failed to validate
Common strings
Type for common strings, restrictions are:
- a string must be encoded in valid UTF-8
- a string must not contains the null byte
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page