(PECL gupnp >= 0.1.0)
gupnp_device_action_callback_set — Set device callback function
Set device callback function for signal and action.
A root device identifier, returned by gupnp_root_device_new().
The value of signal. Signal can be one of the following values:
The name of action.
The callback function for the certain signal. Typically, callback function takes on three parameters. The service parameter's identifier being the first, action parameter's identifier (in case GUPNP_SIGNAL_ACTION_INVOKED signal) or error parameter's message (in case GUPNP_SIGNAL_NOTIFY_FAILED signal) being the second, and the arg is third.
User data for callback.
Returns TRUE on success or FALSE on failure.
Issues E_WARNING either with not valid callback function or with not valid signal.