replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / service / notification / src / common / NSStructs.h
index 6da4371..39126bc 100644 (file)
@@ -35,6 +35,7 @@ typedef struct _nsTask
     NSTaskType taskType;\r
     void * taskData;\r
     struct _nsTask * nextTask;\r
+\r
 } NSTask;\r
 \r
 typedef struct\r
@@ -52,6 +53,7 @@ typedef struct _NSCacheElement
 {\r
     NSCacheData * data;\r
     struct _NSCacheElement * next;\r
+\r
 } NSCacheElement;\r
 \r
 typedef struct\r
@@ -59,6 +61,7 @@ typedef struct
     NSCacheType cacheType;\r
     NSCacheElement * head;\r
     NSCacheElement * tail;\r
+\r
 } NSCacheList;\r
 \r
 typedef struct\r
@@ -69,6 +72,7 @@ typedef struct
     int remote_syncObId; //sync observer ID subscribed through remote server\r
     int remote_messageObId; //message observer ID subscribed through remote server\r
     bool isWhite; // access state -> True: allowed / False: blocked\r
+\r
 } NSCacheSubData;\r
 \r
 typedef struct\r
@@ -76,6 +80,7 @@ typedef struct
     char * id;\r
     int messageType; // noti = 1, read = 2, dismiss = 3\r
     NSMessage * nsMessage;\r
+\r
 } NSCacheMsgData;\r
 \r
 typedef struct\r
@@ -103,6 +108,7 @@ typedef struct
 \r
     //optional\r
     char * topic_uri;\r
+\r
 } NSNotificationResource;\r
 \r
 typedef struct\r
@@ -121,6 +127,7 @@ typedef struct
     char * sourceName;\r
     char * topicName;\r
     NSMediaContents * mediaContents;\r
+\r
 } NSMessageResource;\r
 \r
 typedef struct\r
@@ -129,6 +136,7 @@ typedef struct
     uint64_t messageId;\r
     char providerId[NS_UUID_STRING_SIZE];\r
     char * state;\r
+\r
 } NSSyncResource;\r
 \r
 typedef struct\r
@@ -137,6 +145,7 @@ typedef struct
     char providerId[NS_UUID_STRING_SIZE];\r
     char consumerId[NS_UUID_STRING_SIZE];\r
     NSTopicList ** TopicList;\r
+\r
 } NSTopicResource;\r
 \r
 typedef struct\r
@@ -144,6 +153,23 @@ typedef struct
     char providerId[NS_UUID_STRING_SIZE];\r
     char * providerName;\r
     char * userInfo;\r
+\r
 } NSProviderInfo;\r
 \r
+#ifdef WITH_MQ\r
+typedef struct\r
+{\r
+    char * serverAddr;\r
+    char * topicName;\r
+\r
+} NSMQTopicAddress;\r
+\r
+typedef struct\r
+{\r
+    char * serverUri;\r
+    OCDevAddr * devAddr;\r
+\r
+} NSMQServerInfo;\r
+#endif\r
+\r
 #endif /* _NS_STRUCTS_H_ */\r