void
config_init()
{
#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");
    }
#endif
}
Beispiel #2
0
void
config_init(void)
{
#ifdef CONFIG_UDEV
    if (!config_udev_init())
        ErrorF("[config] failed to initialise udev\n");
#elif defined(CONFIG_NEED_DBUS)
    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");
    }
#endif
}