int console_active_fd;
+/// elogind does not support autospawning of vts
+#if 0
unsigned n_autovts;
unsigned reserve_vt;
int reserve_vt_fd;
+#endif // 0
Seat *seat0;
* this is != 0 and encodes what is being done */
InhibitWhat action_what;
+/// elogind does all relevant actions on its own. No systemd jobs and units.
+#if 0
/* If a shutdown/suspend was delayed due to a inhibitor this
contains the unit name we are supposed to start after the
delay is over */
/* If a shutdown/suspend is currently executed, then this is
* the job of it */
char *action_job;
+#else
+ /* If a shutdown/suspend was delayed due to a inhibitor this
+ contains the action we are supposed to perform after the
+ delay is over */
+ HandleAction pending_action;
+#endif // 0
+
sd_event_source *inhibit_timeout_source;
char *scheduled_shutdown_type;
bool remove_ipc;
+ char **suspend_state, **suspend_mode;
+ char **hibernate_state, **hibernate_mode;
+ char **hybrid_sleep_state, **hybrid_sleep_mode;
+
Hashmap *polkit_registry;
usec_t holdoff_timeout_usec;
int manager_process_seat_device(Manager *m, struct udev_device *d);
int manager_process_button_device(Manager *m, struct udev_device *d);
-int manager_spawn_autovt(Manager *m, unsigned int vtnr);
+// UNNEEDED int manager_spawn_autovt(Manager *m, unsigned int vtnr);
bool manager_shall_kill(Manager *m, const char *user);
int match_reloading(sd_bus_message *message, void *userdata, sd_bus_error *error);
int match_name_owner_changed(sd_bus_message *message, void *userdata, sd_bus_error *error);
+/// eloginds own version does the action itself
+#if 0
int bus_manager_shutdown_or_sleep_now_or_later(Manager *m, const char *unit_name, InhibitWhat w, sd_bus_error *error);
+#else
+int bus_manager_shutdown_or_sleep_now_or_later(Manager *m, HandleAction action, InhibitWhat w, sd_bus_error *error);
+#endif // 0
int manager_send_changed(Manager *manager, const char *property, ...) _sentinel_;