GSSDP.ResourceBrowser.new
Description: Reference for GSSDP.ResourceBrowser.new

### Constructor

# GSSDP ResourceBrowsernew

#### Declaration [src]

    GSSDPResourceBrowser*
    gssdp_resource_browser_new (
      GSSDPClient* client,
      const char* target
    )

#### Description [src]

Create a new resource browser for `target`.

`target` is a generic string the resource browser listens for on the SSDP bus. There are several possible targets such as

- `ssdp:all` for everything that is announced using SSDP
- `upnp:rootdevice` for UPnP device entry points, not caring about a special device type
- The UUID of a specific device
- Device types, such as `urn:schemas-upnp-org:device:MediaServer:1`
- Service types, such as `urn:schemas-upnp-org:service:ContentDirectory:1`

#### Parameters

`client` | `GSSDPClient`
| The `GSSDPClient` to associate with.
| The data is owned by the caller of the function.
`target` | `const char*`
| A SSDP search target.
| The data is owned by the caller of the function.
| The string is a NUL terminated UTF-8 string.

#### Return value

Returns: | `GSSDPResourceBrowser`
| A new `GSSDPResourceBrowser` object.
| The caller of the function takes ownership of the data, and is responsible for freeing it.