summaryrefslogtreecommitdiff
path: root/src/logind.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-28 03:21:14 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-28 03:21:14 +0200
commit30ed21ceb133173c849151c9fd6848bb34bb29bf (patch)
tree8a2463cf85f163e72d03914e21e146c149c96ba4 /src/logind.h
parent975fd86771220287cdc30824760ff147913a0bd6 (diff)
logind: ensure our autovts always stay allocated
Diffstat (limited to 'src/logind.h')
-rw-r--r--src/logind.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/logind.h b/src/logind.h
index 18dbe11a9f..8c9bbf1080 100644
--- a/src/logind.h
+++ b/src/logind.h
@@ -34,7 +34,6 @@
/* TODO:
*
- * recreate VTs when disallocated
* spawn user systemd
* direct client API
* add configuration file
@@ -65,9 +64,11 @@ struct Manager {
LIST_HEAD(User, user_gc_queue);
struct udev *udev;
- struct udev_monitor *udev_monitor;
+ struct udev_monitor *udev_seat_monitor, *udev_vcsa_monitor;
+
+ int udev_seat_fd;
+ int udev_vcsa_fd;
- int udev_fd;
int console_active_fd;
int bus_fd;
int epoll_fd;
@@ -90,7 +91,8 @@ struct Manager {
};
enum {
- FD_UDEV,
+ FD_SEAT_UDEV,
+ FD_VCSA_UDEV,
FD_CONSOLE,
FD_BUS,
FD_PIPE_BASE
@@ -106,8 +108,9 @@ int manager_add_user(Manager *m, uid_t uid, gid_t gid, const char *name, 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_process_seat_device(Manager *m, struct udev_device *d);
+int manager_dispatch_seat_udev(Manager *m);
+int manager_dispatch_vcsa_udev(Manager *m);
int manager_dispatch_console(Manager *m);
int manager_enumerate_devices(Manager *m);