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

EXPORT_SPEC int UpnpVirtualDir_set_OpenCallback ( VDCallback_Open  callback  ) 

Sets the open callback function to be used to access a virtual directory.

An integer representing one of the following:
  • UPNP_E_SUCCESS: The operation completed successfully.
  • UPNP_E_INVALID_ARGUMENT: callback is not a valid pointer.

Definition at line 3817 of file upnpapi.c.

References VirtualDirCallbacks::open, UPNP_E_INVALID_PARAM, and virtualDirCallback.

      int ret = UPNP_E_SUCCESS;
      if (!callback) {
              ret = UPNP_E_INVALID_PARAM;
      } else {
            virtualDirCallback.open = callback;

      return ret;

Generated by  Doxygen 1.6.0   Back to index