static void service_vanished_cb(GDBusConnection *conn, const gchar *name, gpointer user_data) { struct ofono_wan_data *od = user_data; g_message("ofono dbus service disappeared"); free_used_instances(od); }
static void service_vanished_cb(GDBusConnection *conn, const gchar *name, gpointer user_data) { struct ofono_data *od = user_data; g_message("ofono dbus service disappeared"); free_used_instances(od); telephony_service_availability_changed_notify(od->service, false); }
void ofono_wan_remove(struct wan_service *service) { struct ofono_wan_data *data; data = wan_service_get_data(service); g_bus_unwatch_name(data->service_watch); free_used_instances(data); g_free(data); wan_service_set_data(service, NULL); }
void ofono_remove(struct telephony_service *service) { struct ofono_data *data = 0; data = telephony_service_get_data(service); g_hash_table_destroy(data->calls); free_used_instances(data); g_bus_unwatch_name(data->service_watch); g_free(data); telephony_service_set_data(service, NULL); }