manage_control_point


Description:

public void manage_control_point (ControlPoint control_point)

By calling this function, you are asking this to keep a reference to control_point until its associated Context is no longer available.

You usually want to call this function from your [signal@GUPnP.ContextManager:GUPnPContextManager:context-available] handler after you create a ControlPoint object for the newly available context. You usually then give up your own reference to the control point so it will be automatically destroyed if its context is no longer available.

This function is mainly useful when implementing an UPnP client.

```c void on_context_available (GUPnPContextManager *manager, GUPnPContext *context, gpointer user_data) { GUPnPControlPoint *cp = gupnp_control_point_new (context, "urn:schemas-upnp-org:device:MediaRenderer:1"); gupnp_context_manager_manage_control_point (manager, cp ); // Subscribe to control point's signals etc. g_object_unref (cp); } ```

Parameters:

this

A ContextManager

control_point

The ControlPoint to be taken care of