summaryrefslogtreecommitdiffstats
path: root/src/systemctl/systemctl-whoami.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-07-03 14:36:14 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-07-04 02:05:02 +0200
commitc86a95082b032fc6a0ff83b732f70ff53e45e4b6 (patch)
tree02209224e447ccd68e5a94762b768c9b2f3ce6b5 /src/systemctl/systemctl-whoami.h
parenttest: wait for the interface to become routable after reconfiguring (diff)
downloadsystemd-c86a95082b032fc6a0ff83b732f70ff53e45e4b6.tar.xz
systemd-c86a95082b032fc6a0ff83b732f70ff53e45e4b6.zip
systemctl: implement a new "whoami" verb, that just returns unit of caller/PID
Diffstat (limited to 'src/systemctl/systemctl-whoami.h')
-rw-r--r--src/systemctl/systemctl-whoami.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemctl/systemctl-whoami.h b/src/systemctl/systemctl-whoami.h
new file mode 100644
index 0000000000..abdd13b34f
--- /dev/null
+++ b/src/systemctl/systemctl-whoami.h
@@ -0,0 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+int verb_whoami(int argc, char *argv[], void *userdata);