/* * Sets the #GSSDPClient @resource_group is associated with @client */ static void gssdp_resource_group_set_client (GSSDPResourceGroup *resource_group, GSSDPClient *client) { g_return_if_fail (GSSDP_IS_RESOURCE_GROUP (resource_group)); g_return_if_fail (GSSDP_IS_CLIENT (client)); resource_group->priv->client = g_object_ref (client); resource_group->priv->message_received_id = g_signal_connect_object (resource_group->priv->client, "message-received", G_CALLBACK (message_received_cb), resource_group, 0); g_object_notify (G_OBJECT (resource_group), "client"); }
/* * Sets the #GSSDPClient @resource_browser is associated with to @client */ static void gssdp_resource_browser_set_client (GSSDPResourceBrowser *resource_browser, GSSDPClient *client) { GSSDPResourceBrowserPrivate *priv; g_return_if_fail (GSSDP_IS_RESOURCE_BROWSER (resource_browser)); g_return_if_fail (GSSDP_IS_CLIENT (client)); priv = gssdp_resource_browser_get_instance_private (resource_browser); priv->client = g_object_ref (client); priv->message_received_id = g_signal_connect_object (priv->client, "message-received", G_CALLBACK (message_received_cb), resource_browser, 0); g_object_notify (G_OBJECT (resource_browser), "client"); }