Add structs for topic cache.
[platform/upstream/iotivity.git] / service / notification / src / common / NSStructs.h
index fb207c6..6ab9729 100644 (file)
@@ -71,12 +71,21 @@ typedef struct
 \r
 typedef struct\r
 {\r
-    char consumerId[37];\r
-    NSTopicList ** topicList;\r
+    char * topicName;\r
+    NSTopicState state;\r
+\r
 } NSCacheTopicData;\r
 \r
 typedef struct\r
 {\r
+    char id[37];\r
+    char * topicName;\r
+    NSTopicState state;\r
+\r
+} NSCacheTopicSubData;\r
+\r
+typedef struct\r
+{\r
     OCResourceHandle handle;\r
     int accepter;\r
     char * message_uri;\r