GUPNP_SERVICE_PROXY_ADD_NOTIFY(3) 1 GUPNP_SERVICE_PROXY_ADD_NOTIFY(3)
gupnp_service_proxy_add_notify - Sets up callback for variable change notification
SYNOPSIS
bool gupnp_service_proxy_add_notify (resource $proxy, string $value, int $type, mixed $callback, [mixed $arg])
DESCRIPTION
Sets up callback to be called whenever a change notification for variable is recieved.
PARAMETERS
o $proxy
- A service proxy identifier.
o $value
- The variable to add notification for.
o $type
- The type of the variable. Type can be one of the following values:
o GUPNP_TYPE_BOOLEAN - Type of the variable is boolean.
o GUPNP_TYPE_INT - Type of the variable is integer.
o GUPNP_TYPE_LONG - Type of the variable is long.
o GUPNP_TYPE_DOUBLE - Type of the variable is double.
o GUPNP_TYPE_FLOAT - Type of the variable is float.
o GUPNP_TYPE_STRING - Type of the variable is string.
o $callback
- The callback to call when variable changes. Typically, callback function takes on three parameters. The $variable parameter
being the first, $value parameter being the second, and the $arg is third.
o $arg
- User data for $callback.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
gupnp_service_proxy_remove_notify(3).
PHP Documentation Group GUPNP_SERVICE_PROXY_ADD_NOTIFY(3)