summaryrefslogtreecommitdiff
path: root/src/login/logind-action.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-02-22 13:19:44 +0100
committerLennart Poettering <lennart@poettering.net>2022-03-09 16:24:11 +0100
commitb0a3a5e53899438def7139c0d7ae7f9f984b744b (patch)
tree00a632232b87c4779a68701260a6446400cd60f9 /src/login/logind-action.c
parent6800876608f906e862f75d926e0fb2f380b138fc (diff)
downloadsystemd-b0a3a5e53899438def7139c0d7ae7f9f984b744b.tar.gz
logind: rename ActionTableItem → HandleActionData
It stores meta-info about various HandleActions, hence let's name it after that. The fact that it can be seen as stored inside some form of a table is an implementation detail of logind-action.c, and should not leak into other modules, hence let's focus on what it is, not how it is stored.
Diffstat (limited to 'src/login/logind-action.c')
-rw-r--r--src/login/logind-action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-action.c b/src/login/logind-action.c
index 50feb7e651..7d1d4bf685 100644
--- a/src/login/logind-action.c
+++ b/src/login/logind-action.c
@@ -18,7 +18,7 @@
#include "terminal-util.h"
#include "user-util.h"
-static const ActionTableItem action_table[_HANDLE_ACTION_MAX] = {
+static const HandleActionData action_table[_HANDLE_ACTION_MAX] = {
[HANDLE_POWEROFF] = {
.handle = HANDLE_POWEROFF,
.target = SPECIAL_POWEROFF_TARGET,
@@ -113,7 +113,7 @@ static const ActionTableItem action_table[_HANDLE_ACTION_MAX] = {
},
};
-const ActionTableItem* manager_item_for_handle(HandleAction handle) {
+const HandleActionData* manager_item_for_handle(HandleAction handle) {
assert(handle >= 0);
assert(handle < (ssize_t) ELEMENTSOF(action_table));