Merge branch 'tizen_3.0' into devel/tizen
[platform/core/system/sensord.git] / src / client / client_dummy.cpp
1 /*
2  * sensord
3  *
4  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5  *
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
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  *
18  */
19
20 #include <errno.h>
21 #include <sensor_common.h>
22
23 #include "sensor_internal.h"
24 #include "sensor_internal_deprecated.h"
25
26 API int sensord_get_sensors(sensor_type_t type, sensor_t **list, int *sensor_count)
27 {
28         return -ENODATA;
29 }
30
31 API int sensord_get_default_sensor(sensor_type_t type, sensor_t *sensor)
32 {
33         return -ENODATA;
34 }
35
36 API bool sensord_get_sensor_list(sensor_type_t type, sensor_t **list, int *sensor_count)
37 {
38         return false;
39 }
40
41 API sensor_t sensord_get_sensor(sensor_type_t type)
42 {
43         return NULL;
44 }
45
46 API bool sensord_get_type(sensor_t sensor, sensor_type_t *type)
47 {
48         return false;
49 }
50
51 API const char* sensord_get_name(sensor_t sensor)
52 {
53         return NULL;
54 }
55
56 API const char* sensord_get_vendor(sensor_t sensor)
57 {
58         return NULL;
59 }
60
61 API bool sensord_get_privilege(sensor_t sensor, sensor_privilege_t *privilege)
62 {
63         return false;
64 }
65
66 API bool sensord_get_min_range(sensor_t sensor, float *min_range)
67 {
68         return false;
69 }
70
71 API bool sensord_get_max_range(sensor_t sensor, float *max_range)
72 {
73         return false;
74 }
75
76 API bool sensord_get_resolution(sensor_t sensor, float *resolution)
77 {
78         return false;
79 }
80
81 API bool sensord_get_min_interval(sensor_t sensor, int *min_interval)
82 {
83         return false;
84 }
85
86 API bool sensord_get_fifo_count(sensor_t sensor, int *fifo_count)
87 {
88         return false;
89 }
90
91 API bool sensord_get_max_batch_count(sensor_t sensor, int *max_batch_count)
92 {
93         return false;
94 }
95
96 API bool sensord_get_supported_event_types(sensor_t sensor, unsigned int **event_types, int *count)
97 {
98         return false;
99 }
100
101 API bool sensord_is_supported_event_type(sensor_t sensor, unsigned int event_type, bool *supported)
102 {
103         return false;
104 }
105
106 API bool sensord_is_wakeup_supported(sensor_t sensor)
107 {
108         return false;
109 }
110
111 API int sensord_connect(sensor_t sensor)
112 {
113         return OP_ERROR;
114 }
115
116 API bool sensord_disconnect(int handle)
117 {
118         return false;
119 }
120
121 API bool sensord_register_event(int handle, unsigned int event_type, unsigned int interval, unsigned int max_batch_latency, sensor_cb_t cb, void *user_data)
122 {
123         return false;
124 }
125
126 API bool sensord_unregister_event(int handle, unsigned int event_type)
127 {
128         return false;
129 }
130
131 API bool sensord_register_accuracy_cb(int handle, sensor_accuracy_changed_cb_t cb, void *user_data)
132 {
133         return false;
134 }
135
136 API bool sensord_unregister_accuracy_cb(int handle)
137 {
138         return false;
139 }
140
141 API bool sensord_start(int handle, int option)
142 {
143         return false;
144 }
145
146 API bool sensord_stop(int handle)
147 {
148         return false;
149 }
150
151 API bool sensord_change_event_interval(int handle, unsigned int event_type, unsigned int interval)
152 {
153         return false;
154 }
155
156 API bool sensord_change_event_max_batch_latency(int handle, unsigned int event_type, unsigned int max_batch_latency)
157 {
158         return false;
159 }
160
161 API bool sensord_set_option(int handle, int option)
162 {
163         return false;
164 }
165
166 API int sensord_set_attribute_int(int handle, int attribute, int value)
167 {
168         return OP_ERROR;
169 }
170
171 API int sensord_set_attribute_str(int handle, int attribute, const char *value, int len)
172 {
173         return OP_ERROR;
174 }
175
176 API bool sensord_send_sensorhub_data(int handle, const char *data, int data_len)
177 {
178         return false;
179 }
180
181 API bool sensord_send_command(int handle, const char *command, int command_len)
182 {
183         return false;
184 }
185
186 API bool sensord_get_data(int handle, unsigned int data_id, sensor_data_t* sensor_data)
187 {
188         return false;
189 }
190
191 API bool sensord_flush(int handle)
192 {
193         return false;
194 }
195
196 API bool sensord_register_hub_event(int handle, unsigned int event_type, unsigned int interval, unsigned int max_batch_latency, sensorhub_cb_t cb, void *user_data)
197 {
198         return false;
199 }
200
201 API bool sensord_set_passive_mode(int handle, bool passive)
202 {
203         return false;
204 }