Hotplug: Add HAL support

Add support for HAL-based hotplugging, in which we just get the list of
input devices and properties from HAL.  Requires an FDI which is not yet
in mainline HAL.
This commit is contained in:
Daniel Stone
2007-08-01 01:10:50 +03:00
parent aa75b34817
commit 8658f5d923
8 changed files with 414 additions and 4 deletions

View File

@@ -31,10 +31,16 @@
void
config_init()
{
#if defined(CONFIG_DBUS_API)
#if defined(CONFIG_DBUS_API) || defined(CONFIG_HAL)
if (config_dbus_core_init()) {
# ifdef CONFIG_DBUS_API
if (!config_dbus_init())
ErrorF("[config] failed to initialise D-Bus API\n");
# endif
# ifdef CONFIG_HAL
if (!config_hal_init())
ErrorF("[config] failed to initialise HAL\n");
# endif
}
else {
ErrorF("[config] failed to initialise D-Bus core\n");
@@ -45,8 +51,13 @@ config_init()
void
config_fini()
{
#if defined(CONFIG_DBUS_API)
#if defined(CONFIG_DBUS_API) || defined(CONFIG_HAL)
# ifdef CONFIG_HAL
config_hal_fini();
# endif
# ifdef CONFIG_DBUS_API
config_dbus_fini();
# endif
config_dbus_core_fini();
#endif
}