new_child


Description:

public Source new_child (string resource_id)

Creates a new ServerSideSource as a child of the collection source owned by this.

If possible, the ServerSideSource is drawn from a cache of previously used sources indexed by resource_id so that locally cached data from previous sessions can be reused.

The returned data source should be passed to add_source to export it over D-Bus.

Parameters:

this

an CollectionBackend

resource_id

a stable and unique resource ID

Returns:

a newly-created data source