Moved a requestId declaration in OCServerRequest
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Thu, 2 Feb 2017 07:48:37 +0000 (16:48 +0900)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Sat, 25 Feb 2017 00:06:24 +0000 (00:06 +0000)
we should not add attributes after payload as they get overwritten
when payload content gets copied over.

Change-Id: I0c8a430f92c2196d3f9c816e9ba9d16fd44d88e4
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17015
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17293

resource/csdk/stack/include/internal/ocserverrequest.h

index 52fdbf1..fa29e31 100644 (file)
@@ -78,6 +78,9 @@ typedef struct OCServerRequest
     /** Remote endpoint address **/
     OCDevAddr devAddr;
 
+    /** The ID of server request*/
+    uint32_t requestId;
+
     /** Token for the request.*/
     CAToken_t requestToken;