Integration / D Bus Interview Questions
List the basic D-Bus data types?
D-Bus defines a fixed type system so every message's arguments are unambiguously typed and can be marshaled consistently across languages. Basic (non-container) types include:
| Signature | Type |
y | Byte |
b | Boolean |
i / u | 32-bit signed / unsigned integer |
x / t | 64-bit signed / unsigned integer |
d | Double-precision float |
s | UTF-8 string |
o | Object path |
g | Type signature itself |
Beyond these, D-Bus also has container types: arrays (a), structs, dictionaries (arrays of dict-entries, commonly written a{sv}), and the variant type (v) for values whose concrete type is only known at runtime.
More Related questions...