Home > PHP > Function > Gupnp > gupnp_root_device_new()

gupnp_root_device_new()

gupnp_root_device_new - Create a new root device

Syntax

resource gupnp_root_device_new (resource $context, string $location)

Arguments

  • context - A context identifier, returned by gupnp_context_new().
  • location - Location of the description file for this device, relative to the HTTP root

Description

Create a new root device, automatically downloading and parsing location.

Version

PHP PECL gupnp >= 0.1.0

Return value

A root device identifier.