35 lines
2 KiB
Markdown
35 lines
2 KiB
Markdown
# System bus contract
|
|
|
|
`org.archipelago.System1.xml` is the shared RFC-0012/RFC-0013 interface artifact.
|
|
It defines the Manager, Transaction, HostExtensions and ManagedOverlays
|
|
signatures. D-095 removes PackageKitBroker. It is **not** a list of implemented capabilities.
|
|
The RFCs define the dictionary fields, authorization and lifecycle semantics.
|
|
|
|
Wire mappings:
|
|
|
|
| D-Bus | Rust service | GDBus | QtDBus |
|
|
|---|---|---|---|
|
|
| `a{sv}` | `HashMap<String, OwnedValue>` | `GVariant` dictionary | `QVariantMap` |
|
|
| `aa{sv}` | `Vec<HashMap<String, OwnedValue>>` | `GVariant` array | `QList<QVariantMap>` |
|
|
| `o` | `OwnedObjectPath` | object-path string | `QDBusObjectPath` |
|
|
| `t` | `u64` | `guint64` | `qulonglong` |
|
|
| `h` | Unix FD through the bus | handle + `GUnixFDList` | `QDBusUnixFileDescriptor` |
|
|
|
|
Omit unknown optional dictionary fields. Empty deployment maps mean absent or
|
|
not yet observed; inspect `reconciling`. Empty target/plan strings are used only
|
|
where the RFC requires them. UTC timestamps are microseconds, not milliseconds.
|
|
Qt array annotations and GDBus UnixFD annotations preserve the same wire types.
|
|
Before the Qt mutation client is enabled, register `QList<QVariantMap>` with
|
|
`qDBusRegisterMetaType`; generation/compilation alone does not provide transport
|
|
acceptance or original-subject authorization.
|
|
|
|
The regular infrastructure adapter builds generate and compile GDBus/QtDBus
|
|
proxies from this XML. Both archive its hash. Rust currently implements only the
|
|
read-only Manager slice and returns the exact contract Unsupported error for
|
|
disabled Manager methods. Native GUI call sites are not migrated yet.
|
|
|
|
`src/system_bus.rs` supplies stable IDs, error categories, state/phase vocabulary,
|
|
method-specific option validation and the journal version. Transport callers
|
|
cannot deserialize an authenticated `Caller`; the service derives it from the
|
|
message sender and the bus authority. The shared XML also describes future APIs;
|
|
clients must always consult `GetCapabilities` before enabling actions.
|