void config_init(void) { #ifdef CONFIG_UDEV if (!config_udev_init()) ErrorF("[config] failed to initialise udev\n"); #elif defined(CONFIG_HAL) if (!config_hal_init()) ErrorF("[config] failed to initialise HAL\n"); #elif defined(CONFIG_WSCONS) if (!config_wscons_init()) ErrorF("[config] failed to initialise wscons\n"); #endif }
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 }
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 }