From: jaesick.shin Date: Thu, 11 Aug 2016 11:18:30 +0000 (+0900) Subject: Change constant to define. X-Git-Tag: 1.2.0+RC1~52^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f864f1191cd85407bf241c211ef262fab422b81;p=platform%2Fupstream%2Fiotivity.git Change constant to define. change constant to NS_UUID_STRING_SIZE(define) in NSStruct.h Change-Id: I6f401a61edbdc1fc4f39917bf2cd73be40c02ed6 Signed-off-by: jaesick.shin Reviewed-on: https://gerrit.iotivity.org/gerrit/10273 Tested-by: jenkins-iotivity Reviewed-by: Madan Lanka --- diff --git a/service/notification/src/common/NSStructs.h b/service/notification/src/common/NSStructs.h index 6ab9729..4c30ed9 100644 --- a/service/notification/src/common/NSStructs.h +++ b/service/notification/src/common/NSStructs.h @@ -54,7 +54,7 @@ typedef struct typedef struct { - char id[37]; + char id[NS_UUID_STRING_SIZE]; int syncObId; // sync resource observer ID for local consumer int messageObId; // message resource observer ID for local consumer int remote_syncObId; //sync observer ID subscribed through remote server @@ -78,7 +78,7 @@ typedef struct typedef struct { - char id[37]; + char id[NS_UUID_STRING_SIZE]; char * topicName; NSTopicState state; @@ -100,7 +100,7 @@ typedef struct OCResourceHandle handle; uint64_t messageId; - char providerId[37]; + char providerId[NS_UUID_STRING_SIZE]; //optional NSMessageType type; @@ -122,13 +122,13 @@ typedef struct typedef struct { OCResourceHandle handle; - char consumerId[37]; + char consumerId[NS_UUID_STRING_SIZE]; NSTopicList ** TopicList; } NSTopicResource; typedef struct { - char providerId[37]; + char providerId[NS_UUID_STRING_SIZE]; char * providerName; char * userInfo; } NSProviderInfo;