summaryrefslogtreecommitdiff
path: root/src/logind.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-05-25 00:55:58 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-21 19:29:44 +0200
commit14c3baca3eb8b32fc266e46127851585bee5aff2 (patch)
treed6b4bcb9927cc5bf9ea552ff05a4664f6dcf0119 /src/logind.h
parent5a3ab509b56bd79bf2be53cc259ce45c0be269e6 (diff)
logind: implement GC
Diffstat (limited to 'src/logind.h')
-rw-r--r--src/logind.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/logind.h b/src/logind.h
index be5dab7464..7a3121629e 100644
--- a/src/logind.h
+++ b/src/logind.h
@@ -59,6 +59,10 @@ struct Manager {
Hashmap *sessions;
Hashmap *users;
+ LIST_HEAD(Seat, seat_gc_queue);
+ LIST_HEAD(Session, session_gc_queue);
+ LIST_HEAD(User, user_gc_queue);
+
struct udev *udev;
struct udev_monitor *udev_monitor;
@@ -81,25 +85,29 @@ struct Manager {
Manager *manager_new(void);
void manager_free(Manager *m);
+
int manager_add_device(Manager *m, const char *sysfs, Device **_device);
int manager_add_seat(Manager *m, const char *id, Seat **_seat);
int manager_add_session(Manager *m, User *u, const char *id, Session **_session);
int manager_add_user(Manager *m, uid_t uid, gid_t gid, const char *name, User **_user);
int manager_add_user_by_name(Manager *m, const char *name, User **_user);
int manager_add_user_by_uid(Manager *m, uid_t uid, User **_user);
+
int manager_process_device(Manager *m, struct udev_device *d);
int manager_dispatch_udev(Manager *m);
int manager_dispatch_console(Manager *m);
+
int manager_enumerate_devices(Manager *m);
int manager_enumerate_seats(Manager *m);
int manager_enumerate_sessions(Manager *m);
int manager_enumerate_users(Manager *m);
-int manager_start_one_linger_user(Manager *m, const char *user);
-int manager_start_linger_users(Manager *m);
+
int manager_startup(Manager *m);
int manager_run(Manager *m);
int manager_spawn_autovt(Manager *m, int vtnr);
+void manager_gc(Manager *m);
+
bool x11_display_is_local(const char *display);
#endif