Small D-Bus client wrapper used by the systemd API.
This module intentionally keeps the surface tiny: connect to a bus and perform method calls, returning structured results or structured errors.
Summary
Functions
Sends a method call and returns a structured D-Bus result.
Sends a method call and returns only the decoded D-Bus body.
Connects to a D-Bus bus.
Types
Functions
@spec call(pid(), [call_option()]) :: {:ok, Systemd.DBus.Result.t()} | {:error, Systemd.Error.t()}
Sends a method call and returns a structured D-Bus result.
@spec call_body(pid(), [call_option()]) :: {:ok, [term()]} | {:error, Systemd.Error.t()}
Sends a method call and returns only the decoded D-Bus body.
@spec connect( bus(), keyword() ) :: {:ok, pid()} | {:error, Systemd.Error.t()}
Connects to a D-Bus bus.
Defaults to the system bus because systemd exposes its manager API there.