static void _create_paired_device_cb(void *data, DBusMessage *msg, DBusError *err) { e_dbus_object_interface_detach(_msgbus_data->obj, iface); e_dbus_object_free(_msgbus_data->obj); e_dbus_interface_unref(iface); _method_success_check(data, msg, err); }
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; }