]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-dbus.c
logind: add infrastructure to watch busnames
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 17 Sep 2013 15:39:55 +0000 (17:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Sep 2013 16:30:44 +0000 (11:30 -0500)
commite8b212fe56f7f4e1778474777a7a2959244d0047
treeb3d30b51e14d95cbda6245ee96b04e7a781f6b21
parent718d006a63f773c42106494e823250c48942cf08
logind: add infrastructure to watch busnames

If we want to track bus-names to allow exclusive resource-access, we need
a way to get notified when a bus-name is gone. We make logind watch for
NameOwnerChanged dbus events and check whether the name is currently
watched. If it is, we remove it from the watch-list (notification for
other objects can be added in follow-up patches).
src/login/logind-dbus.c
src/login/logind.c
src/login/logind.h