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 #define NS_ATTRIBUTE_POLICY "ACCEPTER"
25 #define NS_ATTRIBUTE_MESSAGE "MESSAGE_URI"
26 #define NS_ATTRIBUTE_SYNC "SYNC_URI"
27 #define NS_ATTRIBUTE_ACCPETANCE "ACCEPTANCE"
28 #define NS_ATTRIBUTE_ID "ID"
29 #define NS_ATTRIBUTE_TITLE "TITLE"
30 #define NS_ATTRIBUTE_TEXT "CONTENTTEXT"
31 #define NS_ATTRIBUTE_STATE "STATE"
32 #define NS_ATTRIBUTE_DEVICE "DEVICE"
45 typedef enum eAccessPolicy
47 NS_ACCEPTER_PROVIDER = 0,
48 NS_ACCEPTER_CONSUMER = 1,
58 typedef NSDevice NSConsumer;
96 typedef void (* NSSubscribeRequestCallback)(NSConsumer *);
97 typedef void (* NSSyncCallback)(NSProvider *, NSSync *);
99 typedef void (* NSProviderDiscoveredCallback)(NSProvider *);
100 // NSMessage should deleted as user.
101 typedef void (* NSNotificationReceivedCallback)(NSProvider *, NSMessage *);
103 #endif /* _NS_COMMON_H_ */