/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foologinduserhfoo
-#define foologinduserhfoo
+#pragma once
/***
This file is part of systemd.
#include "logind-session.h"
typedef enum UserState {
- USER_OFFLINE,
- USER_LINGERING,
- USER_ONLINE,
- USER_ACTIVE,
+ USER_OFFLINE, /* Not logged in at all */
+ USER_LINGERING, /* Lingering has been enabled by the admin for this user */
+ USER_ONLINE, /* User logged in */
+ USER_ACTIVE, /* User logged in and has a session in the fg */
+ USER_CLOSING, /* User logged out, but processes still remain and lingering is not enabled */
_USER_STATE_MAX,
_USER_STATE_INVALID = -1
} UserState;
char *runtime_path;
char *service;
char *cgroup_path;
+ char *slice;
Session *display;
int user_send_signal(User *u, bool new_user);
int user_send_changed(User *u, const char *properties);
-const char* user_state_to_string(UserState s);
-UserState user_state_from_string(const char *s);
-
-#endif
+const char* user_state_to_string(UserState s) _const_;
+UserState user_state_from_string(const char *s) _pure_;