libsensord: Disable deprecated sf_* APIs
[platform/core/system/sensord.git] / src / client / client_deprecated.cpp
1 /*
2  * sensord
3  *
4  * Copyright (c) 2016 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 <sensor_internal_deprecated.h>
21
22 #ifndef API
23 #define API __attribute__((visibility("default")))
24 #endif
25
26 API int sf_connect(sensor_type_t sensor_type)
27 {
28         return OP_ERROR;
29 }
30
31 API int sf_disconnect(int handle)
32 {
33         return OP_ERROR;
34 }
35
36 API int sf_start(int handle, int option)
37 {
38         return OP_ERROR;
39 }
40
41 API int sf_stop(int handle)
42 {
43         return OP_ERROR;
44 }
45
46 API int sf_register_event(int handle, unsigned int event_type, event_condition_t *event_condition, sensor_callback_func_t cb, void *user_data)
47 {
48         return OP_ERROR;
49 }
50
51 API int sf_unregister_event(int handle, unsigned int event_type)
52 {
53         return OP_ERROR;
54 }
55
56 API int sf_change_event_condition(int handle, unsigned int event_type, event_condition_t *event_condition)
57 {
58         return OP_ERROR;
59 }
60
61 API int sf_change_sensor_option(int handle, int option)
62 {
63         return OP_ERROR;
64 }
65
66 API int sf_send_sensorhub_data(int handle, const char* data, int data_len)
67 {
68         return OP_ERROR;
69 }
70
71 API int sf_get_data(int handle, unsigned int data_id, sensor_data_t* sensor_data)
72 {
73         return OP_ERROR;
74 }
75
76 API int sf_check_rotation(unsigned long *rotation)
77 {
78         return OP_ERROR;
79 }
80
81 API int sf_is_sensor_event_available(sensor_type_t sensor_type, unsigned int event_type)
82 {
83         return OP_ERROR;
84 }
85
86 API int sf_get_data_properties(unsigned int data_id, sensor_data_properties_t *return_data_properties)
87 {
88         return OP_ERROR;
89 }
90
91 API int sf_get_properties(sensor_type_t sensor_type, sensor_properties_t *return_properties)
92 {
93         return OP_ERROR;
94 }