From c3ee0f08084532862662b0475eeff06dd3278ce9 Mon Sep 17 00:00:00 2001 From: Ziran Sun Date: Mon, 18 Jul 2016 10:22:13 +0100 Subject: [PATCH] Add OC_STACK_RESOURCE_CHANGED result code support in sample code. Change-Id: I6f20554cb020c3723d5704f4c9c6219c25a0f5a1 Signed-off-by: Ziran Sun Reviewed-on: https://gerrit.iotivity.org/gerrit/9433 Tested-by: jenkins-iotivity Reviewed-by: jihwan seo Reviewed-by: Ashok Babu Channa --- resource/csdk/stack/samples/linux/SimpleClientServer/common.cpp | 2 ++ resource/csdk/stack/samples/tizen/SimpleClientServer/common.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/resource/csdk/stack/samples/linux/SimpleClientServer/common.cpp b/resource/csdk/stack/samples/linux/SimpleClientServer/common.cpp index cd47011..9505365 100644 --- a/resource/csdk/stack/samples/linux/SimpleClientServer/common.cpp +++ b/resource/csdk/stack/samples/linux/SimpleClientServer/common.cpp @@ -33,6 +33,8 @@ const char *getResult(OCStackResult result) return "OC_STACK_RESOURCE_CREATED"; case OC_STACK_RESOURCE_DELETED: return "OC_STACK_RESOURCE_DELETED"; + case OC_STACK_RESOURCE_CHANGED: + return "OC_STACK_RESOURCE_CHANGED"; case OC_STACK_INVALID_URI: return "OC_STACK_INVALID_URI"; case OC_STACK_INVALID_QUERY: diff --git a/resource/csdk/stack/samples/tizen/SimpleClientServer/common.cpp b/resource/csdk/stack/samples/tizen/SimpleClientServer/common.cpp index 6186047..f703660 100644 --- a/resource/csdk/stack/samples/tizen/SimpleClientServer/common.cpp +++ b/resource/csdk/stack/samples/tizen/SimpleClientServer/common.cpp @@ -33,6 +33,8 @@ const char *getResult(OCStackResult result) return "OC_STACK_RESOURCE_CREATED"; case OC_STACK_RESOURCE_DELETED: return "OC_STACK_RESOURCE_DELETED"; + case OC_STACK_RESOURCE_CHANGED: + return "OC_STACK_RESOURCE_CHANGED"; case OC_STACK_INVALID_URI: return "OC_STACK_INVALID_URI"; case OC_STACK_INVALID_QUERY: -- 2.7.4