]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: rename manager_item_for_handle() → handle_action_lookup()
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Feb 2022 12:26:31 +0000 (13:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Mar 2022 15:34:00 +0000 (16:34 +0100)
commit48bccaa92e57ec1449937c2464a93b6d2c4bbb37
treef754057b93788501cfdcb54314d643fbbb55e809
parent5e06260b2cf294b3776ec0c619c53f98e8650c23
logind: rename manager_item_for_handle() → handle_action_lookup()

The function has nothing to do with any Manager object, hence drop that
from the name. And it actually looks something up by handle *action* not
by *handle*, hence the old name was a bit misnomer. Let's call it
handle_action_lookup(), as it queries handle action metainfo for a
handle action.

Also, let's make sure it behaves more like our usual functions that
lookup some fixed data from some enum value/int: let's return NULL if we
don't find it.
src/login/logind-action.c
src/login/logind-action.h
src/login/logind-dbus.c