Crate zbus_lockstep
source ·Expand description
zbus-lockstep
Is a collection of helpers for retrieving DBus type signatures from XML descriptions.
Useful for comparing these with your types’ signatures to ensure that they are compatible.
It offers functions that retrieve the signature of a method’s argument type, of a method’s
return type, pf a signal’s body type or of a property’s type from DBus XML.
These functions require that you provide the file path to the XML file, the interface name, and the interface member wherein the signature resides.
Corresponding to each of these functions, macros are provided which do not require you to exactly point out where the signature is found. These will just search by interface member name.
The macros assume that the file path to the XML files is either:
xmlorXML, the default path forDBusXML files - or is set by theLOCKSTEP_XML_PATH, the env variable that overrides the default.
Macros
- Asserts equality of signatures.
- Asserts non-equality of signatures.
- Retrieve the signature of a method’s arguments.
- Retrieve the signature of a method’s return type.
- Retrieve the signature of a property’s type.
- Retrieve the signature of a signal’s body type.
Enums
Functions
- Retrieve the signature of a method’s argument type from XML.
- Retrieve the signature of a method’s return type from XML.
- Retrieve the signature of a property’s type from XML.
- Retrieve a signal’s body type signature from
DBusXML. - Resolve XML path from either:
- This is a helper function to check if two signatures are equal, ignoring the parentheses.