Add read-only interface
[platform/core/iot/iotcon.git] / common / ic-common.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef __IOT_CONNECTIVITY_MANAGER_INTERNAL_COMMON_H__
17 #define __IOT_CONNECTIVITY_MANAGER_INTERNAL_COMMON_H__
18
19 #include "iotcon-errors.h"
20
21 #ifndef IOTCON_DBUS_INTERFACE
22 #define IOTCON_DBUS_INTERFACE "org.tizen.iotcon.dbus"
23 #warning "IOTCON_DBUS_INTERFACE is redefined"
24 #endif
25
26 #define IOTCON_DBUS_OBJPATH "/org/tizen/iotcon/dbus"
27
28 #define IC_DBUS_SIGNAL_LENGTH 30
29
30 #define IC_DBUS_SIGNAL_REQUEST_HANDLER "REQ"
31 #define IC_DBUS_SIGNAL_FOUND_RESOURCE "RES"
32 #define IC_DBUS_SIGNAL_OBSERVE "OBSERVE"
33 #define IC_DBUS_SIGNAL_DEVICE "DEVICE"
34 #define IC_DBUS_SIGNAL_PLATFORM "PLATFORM"
35 #define IC_DBUS_SIGNAL_PRESENCE "PRESENCE"
36 #define IC_DBUS_SIGNAL_MONITORING "MONITORING"
37 #define IC_DBUS_SIGNAL_CACHING "CACHING"
38
39 #define IC_INTERFACE_DEFAULT "oic.if.baseline"
40 #define IC_INTERFACE_LINK "oic.if.ll"
41 #define IC_INTERFACE_BATCH "oic.if.b"
42 #define IC_INTERFACE_GROUP "oic.mi.grp"
43 #define IC_INTERFACE_READONLY "oic.if.r"
44
45 #endif /* __IOT_CONNECTIVITY_MANAGER_INTERNAL_COMMON_H__ */