]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolvectl: re-implement normal status output using varlink (#40529)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 4 Feb 2026 06:47:02 +0000 (15:47 +0900)
committerGitHub <noreply@github.com>
Wed, 4 Feb 2026 06:47:02 +0000 (15:47 +0900)
commit89591e04a2ff879534e45ba2e17a71cc09663972
treeb796826423cb0238fc5747c8bba8e03590d8f653
parent5a35a6d9d44bc6ca21d6bc9d8bb20beab956da99
parenta4750a6612b20cf108d56cd2acc5e109adfa91c3
resolvectl: re-implement normal status output using varlink (#40529)

Currently, `resolvectl status` (and other status commands like
`resolvectl dns $iface`) uses varlink when asked to print JSON, but uses
dbus otherwise. This PR re-implements the regular status output to use
varlink instead of dbus.

This both simplifies the `resolvectl status` code, and is an incremental
step in replacing dbus usage with varlink throughout `resolvectl`.

The first several commits move `dns-configuration.[ch]` from
`src/network/wait-online` to `src/shared`, and complete the JSON
dispatching so that all fields are available in a concrete type. The
next few commits re-implement global, link, and delegate status output.
Finally, the last commits consolidate and simplify the status logic
since varlink and the `DNSConfiguration` type can be used in all cases.
src/shared/meson.build