int ewallset_end() { unlink(e->tmpn); eina_stringshare_del(e->value); e_dbus_connection_close(e->conn); free(e); elm_exit(); }
EAPI int e_notification_shutdown(void) { if (--init_count) return init_count; e_dbus_connection_close(client_conn); client_conn = NULL; e_dbus_shutdown(); return 0; }
EAPI int e_modapi_shutdown (E_Module * m) { char *player; empris_config->module = NULL; e_gadcon_provider_unregister (&_gc_class); if (conn) { if (cb_name_owner_changed) e_dbus_signal_handler_del(conn, cb_name_owner_changed); e_dbus_connection_close(conn); } EINA_LIST_FREE(players, player) eina_stringshare_del(player); if (empris_config->config_dialog) e_object_del (E_OBJECT (empris_config->config_dialog)); if (empris_config->menu) { e_menu_post_deactivate_callback_set (empris_config->menu, NULL, NULL); e_object_del (E_OBJECT (empris_config->menu)); empris_config->menu = NULL; } while (empris_config->items) { Config_Item *ci; ci = empris_config->items->data; empris_config->items = eina_list_remove_list (empris_config->items, empris_config->items); if (ci->id) eina_stringshare_del (ci->id); free (ci); ci = NULL; } free (empris_config); empris_config = NULL; E_CONFIG_DD_FREE (conf_item_edd); E_CONFIG_DD_FREE (conf_edd); return 1; }
static void _e_fileman_dbus_daemon_free(E_Fileman_DBus_Daemon *d) { if (d->pending.request_name) dbus_pending_call_cancel(d->pending.request_name); if (d->obj) { e_dbus_object_interface_detach(d->obj, d->iface); e_dbus_object_free(d->obj); } if (d->iface) e_dbus_interface_unref(d->iface); if (d->conn) e_dbus_connection_close(d->conn); free(d); }
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; }
int main(__UNUSED__ int argc, __UNUSED__ char *argv[]) { E_DBus_Connection *c; int total; ecore_init(); e_dbus_init(); eina_init(); c = e_dbus_bus_get(DBUS_BUS_SYSTEM); if (!c) { printf("ERROR: can't connect to system session\n"); return -1; } e_connman_system_init(c); ecore_event_handler_add(E_CONNMAN_EVENT_ELEMENT_ADD, _on_element_add, NULL); ecore_event_handler_add(E_CONNMAN_EVENT_ELEMENT_DEL, _on_element_del, NULL); ecore_event_handler_add(E_CONNMAN_EVENT_ELEMENT_UPDATED, _on_element_updated, NULL); _exiter_reschedule(); ecore_main_loop_begin(); e_dbus_connection_close(c); eina_stringshare_dump(); eina_shutdown(); e_dbus_shutdown(); ecore_shutdown(); total = success + failure; if (total == 0) fputs("DBG: clean exit, no tests executed.\n", stderr); else fprintf(stderr, "DBG: clean exit, success: %d, failure: %d, %d%%\n", success, failure, (success * 100) / total); return 0; }
int main(__UNUSED__ int argc,__UNUSED__ char *argv[]) { ecore_init(); e_dbus_init(); eina_init(); _msgbus_data = calloc(1, sizeof(E_Msgbus_Data)); _msgbus_data->conn = e_dbus_bus_get(DBUS_BUS_SYSTEM); if (!_msgbus_data->conn) { printf("ERROR: can't connect to system session\n"); return -1; } e_bluez_system_init(_msgbus_data->conn); ecore_event_handler_add(E_BLUEZ_EVENT_ELEMENT_ADD, _on_element_add, NULL); ecore_event_handler_add(E_BLUEZ_EVENT_ELEMENT_DEL, _on_element_del, NULL); ecore_event_handler_add(E_BLUEZ_EVENT_ELEMENT_UPDATED, _on_element_updated, NULL); ecore_event_handler_add(E_BLUEZ_EVENT_DEVICE_FOUND, _on_device_found, NULL); ecore_main_fd_handler_add (0, ECORE_FD_READ | ECORE_FD_ERROR, _on_input, NULL, NULL, NULL); ecore_main_loop_begin(); e_bluez_system_shutdown(); e_dbus_connection_close(_msgbus_data->conn); eina_shutdown(); e_dbus_shutdown(); ecore_shutdown(); fputs("DBG: clean exit.\n", stderr); return 0; }