EINTERN int e_msgbus_shutdown(void) { if (_e_msgbus_data->obj) { e_dbus_object_free(_e_msgbus_data->obj); } if (_e_msgbus_data->conn) { e_dbus_connection_close(_e_msgbus_data->conn); } #ifdef HAVE_HAL e_hal_shutdown(); #endif e_dbus_shutdown(); E_FREE(_e_msgbus_data); _e_msgbus_data = NULL; return 1; }
static void _gc_shutdown(E_Gadcon_Client *gcc) { Instance *inst; #ifdef HAVE_EEZE eeze_shutdown(); #elif !defined __OpenBSD__ e_hal_shutdown(); e_dbus_shutdown(); #endif inst = gcc->data; battery_config->instances = eina_list_remove(battery_config->instances, inst); evas_object_del(inst->o_battery); if (inst->warning) { e_object_del(E_OBJECT(inst->warning)); inst->popup_battery = NULL; } E_FREE(inst); }
void e_mod_kbd_device_shutdown(void) { char *str; #ifdef HAVE_EEZE if (watch) eeze_udev_watch_del(watch); eeze_shutdown(); #else /* remove the dbus signal handlers if we can */ if (_dev_add) e_dbus_signal_handler_del(_dbus_conn, _dev_add); if (_dev_del) e_dbus_signal_handler_del(_dbus_conn, _dev_del); if (_dev_chg) e_dbus_signal_handler_del(_dbus_conn, _dev_chg); e_hal_shutdown(); e_dbus_shutdown(); #endif /* free the list of ignored keyboards */ EINA_LIST_FREE(_ignore_kbds, str) eina_stringshare_del(str); /* free the list of keyboards */ EINA_LIST_FREE(_device_kbds, str) eina_stringshare_del(str); }