4 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef __COMMAND_TYPES_H__
21 #define __COMMAND_TYPES_H__
23 #include <sensor_types.h>
24 #include "sensor_info.h"
26 #define SENSOR_CHANNEL_PATH "/run/.sensord.socket"
27 #define MAX_BUF_SIZE 4096
29 /* TODO: OOP - create serializer interface */
35 CMD_MANAGER_CONNECT = 0x100,
36 CMD_MANAGER_SENSOR_LIST,
37 CMD_MANAGER_SENSOR_ADDED,
38 CMD_MANAGER_SENSOR_REMOVED,
41 CMD_LISTENER_EVENT = 0x200,
42 CMD_LISTENER_ACC_EVENT,
46 CMD_LISTENER_ATTR_INT,
47 CMD_LISTENER_ATTR_STR,
48 CMD_LISTENER_GET_DATA,
51 CMD_PROVIDER_CONNECT = 0x300,
54 CMD_PROVIDER_ATTR_INT,
58 CMD_HAS_PRIVILEGE = 0x1000,
66 } cmd_manager_sensor_list_t;
70 char sensor[NAME_MAX];
71 } cmd_listener_connect_t;
75 } cmd_listener_start_t;
79 } cmd_listener_stop_t;
85 } cmd_listener_attr_int_t;
92 } cmd_listener_attr_str_t;
98 } cmd_listener_get_data_t;
102 } cmd_provider_connect_t;
106 } cmd_provider_publish_t;
111 } cmd_provider_attr_int_t;
114 char sensor[NAME_MAX];
115 } cmd_has_privilege_t ;
117 #endif /* __COMMAND_TYPES_H__ */