add_resource


Description:

public uint add_resource (string target, string usn, List<string> locations)

Add an additional resource to announce in this resource group.

Adds a resource with target target, USN usn, and locations locations to this. If the resource group is set [property@GSSDP.ResourceGroup:available], it will be announced right away.

If your resource only has one location, you can use [method@GSSDP.ResourceGroup.add_resource_simple] instead.

The resource id that is returned by this function can be used with [method@GSSDP.ResourceGroup.remove_resource].

Parameters:

this

A ResourceGroup

target

The resource's target

usn

The resource's USN

locations

A List of the resource's locations

Returns:

The ID of the added resource.