static void gupnp_device_info_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { GUPnPDeviceInfo *info; info = GUPNP_DEVICE_INFO (object); switch (property_id) { case PROP_RESOURCE_FACTORY: info->priv->factory = GUPNP_RESOURCE_FACTORY (g_value_dup_object (value)); break; case PROP_CONTEXT: info->priv->context = g_object_ref (g_value_get_object (value)); break; case PROP_LOCATION: info->priv->location = g_value_dup_string (value); break; case PROP_UDN: info->priv->udn = g_value_dup_string (value); break; case PROP_DEVICE_TYPE: info->priv->device_type = g_value_dup_string (value); break; case PROP_URL_BASE: info->priv->url_base = g_value_get_pointer (value); if (info->priv->url_base) info->priv->url_base = soup_uri_copy (info->priv->url_base); break; case PROP_DOCUMENT: info->priv->doc = g_value_dup_object (value); break; case PROP_ELEMENT: info->priv->element = g_value_get_pointer (value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } }
static void gupnp_control_point_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { GUPnPControlPoint *control_point; control_point = GUPNP_CONTROL_POINT (object); switch (property_id) { case PROP_RESOURCE_FACTORY: control_point->priv->factory = GUPNP_RESOURCE_FACTORY (g_value_dup_object (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } }