Query: gupnp_device_info_get_service
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GUPNP_DEVICE_INFO_GET_SERVICE(3) 1 GUPNP_DEVICE_INFO_GET_SERVICE(3) gupnp_device_info_get_service - Get the service with typeSYNOPSISresource gupnp_device_info_get_service (resource $root_device, string $type)DESCRIPTIONGet the service with type or false if no such device was found.PARAMETERSo $root_device - A root device identifier, returned by gupnp_root_device_new(3). o $type - The type of the service to be retrieved.RETURN VALUESA service identifier.EXAMPLESExample #1 Create new UPnP context and get device info service <?php /* Create the UPnP context */ $context = gupnp_context_new(); if (!$context) { die("Error creating the GUPnP context "); } /* Create root device */ $location = "/BinaryLight1.xml"; $dev = gupnp_root_device_new($context, $location); /* Set root device is available */ gupnp_root_device_set_available($dev, true); /* Get the switch service from the root device */ $service_type = "urn:schemas-upnp-org:service:SwitchPower:1"; $service = gupnp_device_info_get_service($dev, $service_type); if (!$service) { die("Cannot get SwitchPower1 service "); } ?> PHP Documentation Group GUPNP_DEVICE_INFO_GET_SERVICE(3)
Related Man Pages |
---|
systemd-fsck(8) - centos |
gupnp_context_timeout_add(3) - php |
gupnp_control_point_callback_set(3) - php |
gupnp_device_action_callback_set(3) - php |
net::upnp::controlpoint(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Coherence 0.5.2 (Default branch) |
Coherence 0.5.4 (Default branch) |
GUPnP 0.3 (GUPnP Tools branch) |
Coherence 0.6.0 (Default branch) |
UPnP-Inspector 0.2.0 (Default branch) |