summaryrefslogtreecommitdiff
path: root/config/config.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2011-09-18 12:46:52 +0200
committerMatthieu Herrb <matthieu.herrb@laas.fr>2011-09-30 10:10:32 +0200
commitf54852edc35a2831a4cd91906188101ea19904e1 (patch)
treec9c5a17122b68b49372f5ec98d5cb54e1fe069c9 /config/config.c
parentafb1fe695d197187a301c19863a128a65389b15c (diff)
Add a 'wscons' autoconf mechanism to configure input devices on BSD.
This does not really handle hotplug (it's handled inside the kernel, by the 'mux' devices), but uses the wscons console driver configuration to figure out the keyboard layout and the list of pointing devices found by the kernel. Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'config/config.c')
-rw-r--r--config/config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/config.c b/config/config.c
index 9c28785c6..0dae3ad68 100644
--- a/config/config.c
+++ b/config/config.c
@@ -52,6 +52,9 @@ config_init(void)
else {
ErrorF("[config] failed to initialise D-Bus core\n");
}
+#elif defined(CONFIG_WSCONS)
+ if (!config_wscons_init())
+ ErrorF("[config] failed to initialise wscons\n");
#endif
}
@@ -68,6 +71,8 @@ config_fini(void)
config_dbus_fini();
# endif
config_dbus_core_fini();
+#elif defined(CONFIG_WSCONS)
+ config_wscons_fini();
#endif
}