register_resource_type


Description:

public void register_resource_type (string upnp_type, Type type)

Registers the GType type for the resource of UPnP type upnp_type.

After this call, the factory this will create object of GType type each time it is asked to create a resource object for UPnP type upnp_type.

Note: GType type must be a derived type of GUPNP_TYPE_DEVICE if resource is a device or GUPNP_TYPE_SERVICE if its a service.

Parameters:

this

A ResourceFactory.

upnp_type

The UPnP type name of the resource.

type

The requested GType assignment for the resource.