Commit f53494fa authored by Charlie Lenahan's avatar Charlie Lenahan Committed by Erich Keane

remove unused OCResponseHandle

a different approach to handle slow-responses was implemented
and this wan't removed

Change-Id: Id2f0c2dcd730041b0aacca689c358789ef28e79c
Signed-off-by: default avatarCharlie Lenahan <charlie.lenahan@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1015Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarErich Keane <erich.keane@intel.com>
parent e01bcc8d
...@@ -454,15 +454,6 @@ OCNotifyListOfObservers (OCResourceHandle handle, ...@@ -454,15 +454,6 @@ OCNotifyListOfObservers (OCResourceHandle handle,
*/ */
OCStackResult OCDoResponse(OCEntityHandlerResponse *response); OCStackResult OCDoResponse(OCEntityHandlerResponse *response);
/**
* Cancel a response. Applies to a block response.
*
* @param responseHandle Response handle set by stack in OCServerResponse after
* OCDoResponse is called.
*
* @return ::OC_STACK_OK on success, some other value upon failure.
*/
OCStackResult OCCancelResponse(OCResponseHandle responseHandle);
//Utility methods //Utility methods
......
...@@ -275,7 +275,6 @@ typedef void * OCDoHandle; ...@@ -275,7 +275,6 @@ typedef void * OCDoHandle;
typedef void * OCResourceHandle; typedef void * OCResourceHandle;
typedef void * OCRequestHandle; typedef void * OCRequestHandle;
typedef void * OCResponseHandle;
/** /**
* Unique identifier for each observation request. Used when observations are * Unique identifier for each observation request. Used when observations are
...@@ -422,8 +421,6 @@ typedef struct ...@@ -422,8 +421,6 @@ typedef struct
// Request handle is passed to server via the entity handler for each incoming request. // Request handle is passed to server via the entity handler for each incoming request.
// Stack assigns when request is received, server sets to indicate what request response is for // Stack assigns when request is received, server sets to indicate what request response is for
OCRequestHandle requestHandle; OCRequestHandle requestHandle;
// New handle for tracking block (or slow) response. Stack assigns, server uses for subsequent calls
OCResponseHandle *responseHandle;
// Resource handle // Resource handle
OCResourceHandle resourceHandle; OCResourceHandle resourceHandle;
// Allow the entity handler to pass a result with the response // Allow the entity handler to pass a result with the response
......
...@@ -3320,17 +3320,6 @@ OCStackResult OCDoResponse(OCEntityHandlerResponse *ehResponse) ...@@ -3320,17 +3320,6 @@ OCStackResult OCDoResponse(OCEntityHandlerResponse *ehResponse)
return result; return result;
} }
OCStackResult OCCancelResponse(OCResponseHandle responseHandle)
{
OCStackResult result = OC_STACK_NOTIMPL;
OC_LOG(INFO, TAG, PCF("Entering OCCancelResponse"));
// TODO: validate response handle
return result;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Private internal function definitions // Private internal function definitions
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment