DEBUG("On_name_release_cb");
}
+static Eina_Bool _submodules_inited = EINA_FALSE;
static int
_e_mod_submodules_init(void)
{
INFO("Init subsystems...");
+ if (_submodules_inited) return 0;
+ _submodules_inited = EINA_TRUE;
if (_e_mod_atspi_config_init())
goto fail;
_e_mod_atspi_config_shutdown();
fail:
ERROR("Module initialization failed.");
+ _submodules_inited = EINA_FALSE;
return -1;
}
_e_mod_submodules_shutdown(void)
{
INFO("Shutdown subsystems...");
+ if (!_submodules_inited) return;
+ _submodules_inited = EINA_FALSE;
+
_atspi_gesture_shutdown();
g_gesture_navi = EINA_FALSE;
_e_mod_atspi_config_save();
_e_mod_atspi_gestures_shutdown();
}
-
static Eldbus_Message *
_sc_enable(const Eldbus_Service_Interface *iface, const Eldbus_Message *msg)
{