]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: add ListInhibitors Varlink method 41561/head
authorYaping Li <202858510+YapingLi04@users.noreply.github.com>
Sun, 10 May 2026 14:50:13 +0000 (14:50 +0000)
committerYaping Li <202858510+YapingLi04@users.noreply.github.com>
Fri, 22 May 2026 02:56:24 +0000 (02:56 +0000)
commitd2bdaab55e8c875bae8efc6ca6328b968521ce7a
tree8590b42c68cb351b3424424ed494e1a11fbcc21f
parentb4de3e5759963eaabeb96b7d17770214bc8700b9
logind: add ListInhibitors Varlink method

The Varlink ListInhibitors method is the counterpart of D-Bus
ListInhibitors. Like its D-Bus counterpart it is zero-filter and streams
the full list of currently registered inhibitors using the
SD_VARLINK_METHOD_MORE pattern, returning InhibitorInfo objects with
Id, What, Who, Why, Mode, UID, PID, and Since fields.

There is no D-Bus GetInhibitor getter to fold in, so no unique-key
filter is introduced here.
src/login/logind-inhibit.c
src/login/logind-inhibit.h
src/login/logind-varlink.c
src/shared/varlink-io.systemd.Login.c
src/shared/varlink-io.systemd.Login.h
src/test/test-varlink-idl-login.c
test/units/TEST-35-LOGIN.sh