]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-dbus.c
bus-util: simplify bus_verify_polkit_async() a bit
authorLennart Poettering <lennart@poettering.net>
Mon, 18 Aug 2014 15:44:17 +0000 (17:44 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Aug 2014 15:49:53 +0000 (17:49 +0200)
commitf38857914ab5c9cc55aac05795e1886963a5fd04
treee03443f7f0f673a2fcd604df5ea7b603f7c1e589
parentcaa829849d6ac9f6e173f585f732054358311ae1
bus-util: simplify bus_verify_polkit_async() a bit

First, let's drop the "bus" argument, we can determine it from the
message anyway.

Secondly, determine the right callback/userdata pair automatically from
what is currently is being dispatched. This should simplify things a lot
for us, since it makes it unnecessary to pass pointers through the
original handlers through all functions when we process messages, which
might require authentication.
src/hostname/hostnamed.c
src/libsystemd/sd-bus/bus-util.c
src/libsystemd/sd-bus/bus-util.h
src/locale/localed.c
src/login/logind-dbus.c
src/timedate/timedated.c