Logo Search packages:      
Sourcecode: libupnp4 version File versions  Download package

EXPORT_SPEC int UpnpAcceptSubscription ( UpnpDevice_Handle  Hnd,
const char *  DevID,
const char *  ServID,
const char **  VarName,
const char **  NewVal,
int  cVariables,
const Upnp_SID  SubsId 

Accepts a subscription request and sends out the current state of the eventable variables for a service.

The device application should call this function when it receives a UPNP_EVENT_SUBSCRIPTION_REQUEST callback.

This function is synchronous and generates no callbacks.

This function can be called during the execution of a callback function.

An integer representing one of the following:
  • UPNP_E_SUCCESS: The operation completed successfully.
  • UPNP_E_INVALID_HANDLE: The handle is not a valid device handle.
  • UPNP_E_INVALID_SERVICE: The DevId/ServId pair refers to an invalid service.
  • UPNP_E_INVALID_SID: The specified subscription ID is not valid.
  • UPNP_E_INVALID_PARAM: Either VarName, NewVal, DevID, or ServID is not a valid pointer or cVariables is less than zero.
  • UPNP_E_OUTOF_MEMORY: Insufficient resources exist to complete this operation.
Hnd  [in] The handle of the device.
DevID  [in] The device ID of the subdevice of the service generating the event.
ServID  [in] The unique service identifier of the service generating the event.
VarName  [in] Pointer to an array of event variables.
NewVal  [in] Pointer to an array of values for the event variables.
cVariables  [in] The number of event variables in VarName.
SubsId  [in] The subscription ID of the newly registered control point.

Generated by  Doxygen 1.6.0   Back to index