diff options
author | Julien Cristau <jcristau@debian.org> | 2009-09-27 14:45:47 +0200 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2009-12-30 19:05:44 +0000 |
commit | 435f27667f84269768efecde34de4af2b2d43376 (patch) | |
tree | 308b00d27cd065fb19d8aec663e0b7cf0b0e54e3 /config/config-backends.h | |
parent | b8b12e41c453c3bf94b11e7a18934d3b6e1869bf (diff) |
config: add libudev input-hotplug backend
Add a backend using libudev for input hotplug, and disable the hal and
dbus backends if this one is enabled.
XKB configuration happens using xkb{rules,model,layout,variant,options}
properties (case-insensitive) on the device. We fill in InputAttributes
to allow configuration through InputClass in Xorg.
Requires udev 148 for the input_id helper and ID_INPUT* properties.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Acked-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'config/config-backends.h')
-rw-r--r-- | config/config-backends.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/config/config-backends.h b/config/config-backends.h index 907e86b9c..0a2a22af0 100644 --- a/config/config-backends.h +++ b/config/config-backends.h @@ -26,8 +26,18 @@ #ifdef HAVE_DIX_CONFIG_H #include <dix-config.h> #endif +#include "input.h" -#ifdef CONFIG_NEED_DBUS +void remove_devices(const char *backend, const char *config_info); +BOOL device_is_duplicate(const char *config_info); +void add_option(InputOption **options, const char *key, const char *value); + +#ifdef CONFIG_UDEV +int config_udev_init(void); +void config_udev_fini(void); +#else + +# ifdef CONFIG_NEED_DBUS #include <dbus/dbus.h> typedef void (*config_dbus_core_connect_hook)(DBusConnection *connection, @@ -46,14 +56,15 @@ int config_dbus_core_init(void); void config_dbus_core_fini(void); int config_dbus_core_add_hook(struct config_dbus_core_hook *hook); void config_dbus_core_remove_hook(struct config_dbus_core_hook *hook); -#endif +# endif -#ifdef CONFIG_DBUS_API +# ifdef CONFIG_DBUS_API int config_dbus_init(void); void config_dbus_fini(void); -#endif +# endif -#ifdef CONFIG_HAL +# ifdef CONFIG_HAL int config_hal_init(void); void config_hal_fini(void); +# endif #endif |