summaryrefslogtreecommitdiff
path: root/src/login/sd-login.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/sd-login.h')
-rw-r--r--src/login/sd-login.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login/sd-login.h b/src/login/sd-login.h
index 0cb0bf06bb..1d8a55e906 100644
--- a/src/login/sd-login.h
+++ b/src/login/sd-login.h
@@ -53,6 +53,10 @@ int sd_pid_get_session(pid_t pid, char **session);
* return an error for system processes. */
int sd_pid_get_owner_uid(pid_t pid, uid_t *uid);
+/* Get service name from PID. This will return an error for
+ * non-service processes. */
+int sd_pid_get_service(pid_t, char **service);
+
/* Get state from uid. Possible states: offline, lingering, online, active */
int sd_uid_get_state(uid_t uid, char**state);