summaryrefslogtreecommitdiff
path: root/src/systemd/sd-login.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-24 17:54:17 -0300
committerLennart Poettering <lennart@poettering.net>2013-04-24 19:02:13 -0300
commita20affe2f0fb4c8d488155a0b860549e9389f32a (patch)
tree21dbbb3a84784688b8a1139e91648299e219771b /src/systemd/sd-login.h
parente8a7a315391a6a07897122725cd707f4e9ce63d7 (diff)
login: add new call sd_get_machine_names() to get a list of current virtual machines and containers
Diffstat (limited to 'src/systemd/sd-login.h')
-rw-r--r--src/systemd/sd-login.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h
index 1083742be..241503941 100644
--- a/src/systemd/sd-login.h
+++ b/src/systemd/sd-login.h
@@ -150,6 +150,9 @@ int sd_get_sessions(char ***sessions);
* users. If users is NULL only returns the number of users. */
int sd_get_uids(uid_t **users);
+/* Get all running virtual machines/containers */
+int sd_get_machine_names(char ***machines);
+
/* Monitor object */
typedef struct sd_login_monitor sd_login_monitor;