static void prv_device_chain_end(gboolean cancelled, gpointer data) { dls_device_t *device; prv_device_new_ct_t *priv_t = (prv_device_new_ct_t *)data; DLEYNA_LOG_DEBUG("Enter"); device = priv_t->device; if (cancelled) goto on_clear; DLEYNA_LOG_DEBUG("Notify new server available: %s", device->path); g_hash_table_insert(priv_t->upnp->server_udn_map, g_strdup(priv_t->udn), device); priv_t->upnp->found_server(device->path, priv_t->upnp->user_data); on_clear: g_hash_table_remove(priv_t->upnp->server_uc_map, priv_t->udn); if (cancelled) dls_device_delete(device); prv_device_new_free(priv_t); DLEYNA_LOG_DEBUG_NL(); }
static void prv_device_context_switch_end(gboolean cancelled, gpointer data) { prv_device_new_ct_t *priv_t = (prv_device_new_ct_t *)data; DLEYNA_LOG_DEBUG("Enter"); prv_device_new_free(priv_t); DLEYNA_LOG_DEBUG("Exit"); }
static void prv_device_context_switch_end(gboolean cancelled, gpointer data) { prv_device_new_ct_t *priv_t = (prv_device_new_ct_t *)data; DLEYNA_LOG_DEBUG("Enter"); g_hash_table_remove(priv_t->upnp->server_uc_map, priv_t->udn); prv_device_new_free(priv_t); DLEYNA_LOG_DEBUG("Exit"); }