]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolvectl: consolidate JSON and regular status output paths
authorNick Rosbrook <enr0n@ubuntu.com>
Fri, 30 Jan 2026 20:10:49 +0000 (15:10 -0500)
committerNick Rosbrook <enr0n@ubuntu.com>
Tue, 3 Feb 2026 20:07:41 +0000 (15:07 -0500)
commit480ebdfdddbe61c7c47d41ee1be31f867eb0269f
tree98e86567fdb495d89fb322e9495fe8b71e316ce7
parent67746cd3b234a869dd91390eb263cb8794c54e90
resolvectl: consolidate JSON and regular status output paths

Now that varlink is always used for status output, consolidate the JSON
and regular status code paths. Add status_full(), which is the single
point that calls DumpDNSConfiguration, filters based on link names and
mode if needed, and prints the output in the appropriate format.

This simplifies status_ifindex(), and removes the need for a separate
status_json().
src/resolve/resolvectl.c