1 //******************************************************************
3 // Copyright 2016 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
24 * This file provides APIs of Notification Service for common functions.
33 #define NS_UUID_STRING_SIZE 37
36 * Result code of notification service
48 * Provider state of notification consumer service
60 * Notification message status to synchronize
71 * Notification Message Type
72 * Alert mean is High / critical
73 * Notice mean is low / critical
74 * Event mean is High / Normal
75 * Information mean is Low / Normal
80 NS_MESSAGE_NOTICE = 2,
87 * Notification topic state
91 NS_TOPIC_UNSUBSCRIBED = 0,
92 NS_TOPIC_SUBSCRIBED = 1,
99 typedef struct _nsTopic
103 struct _nsTopic * next;
108 * Consumer information
112 char consumerId[NS_UUID_STRING_SIZE];
117 * Provider information
121 char providerId[NS_UUID_STRING_SIZE];
126 * Media Contents of Notification Message (Optional)
135 * Notification Message
141 char providerId[NS_UUID_STRING_SIZE];
150 NSMediaContents * mediaContents;
152 OCRepPayload * extraInfo;
157 * Synchronization information of the notification message
162 char providerId[NS_UUID_STRING_SIZE];
167 #endif /* _NS_COMMON_H_ */