X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-user.h;h=b30e7d60c23bf6600816237a59e2a313e2f47cac;hb=39d8e47296d2465666c42bd163155881128a8fa8;hp=4e0568fea92b7e98ee99868c2870a968afbbc3fe;hpb=952d32609f9bceee444fa2690afb4d28539b4b92;p=elogind.git diff --git a/src/login/logind-user.h b/src/login/logind-user.h index 4e0568fea..b30e7d60c 100644 --- a/src/login/logind-user.h +++ b/src/login/logind-user.h @@ -24,9 +24,7 @@ typedef struct User User; #include "list.h" -#include "util.h" #include "logind.h" -#include "logind-session.h" typedef enum UserState { USER_OFFLINE, /* Not logged in at all */ @@ -49,11 +47,17 @@ struct User { char *state_file; char *runtime_path; + /* These are always NULL, and here just for logind-user-dbus.c + to easily provide a NULL value for the user's service and + slice properties. */ char *service; char *slice; +/// UNNEEDED (and unsupported) by elogind +#if 0 char *service_job; char *slice_job; +#endif // 0 Session *display; @@ -92,3 +96,6 @@ int user_send_changed(User *u, const char *properties, ...) _sentinel_; const char* user_state_to_string(UserState s) _const_; UserState user_state_from_string(const char *s) _pure_; + +int bus_user_method_terminate(sd_bus_message *message, void *userdata, sd_bus_error *error); +int bus_user_method_kill(sd_bus_message *message, void *userdata, sd_bus_error *error);