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 #include <sensor_internal_deprecated.h>
23 #define API __attribute__((visibility("default")))
26 API int sf_connect(sensor_type_t sensor_type)
31 API int sf_disconnect(int handle)
36 API int sf_start(int handle, int option)
41 API int sf_stop(int handle)
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)
51 API int sf_unregister_event(int handle, unsigned int event_type)
56 API int sf_change_event_condition(int handle, unsigned int event_type, event_condition_t *event_condition)
61 API int sf_change_sensor_option(int handle, int option)
66 API int sf_send_sensorhub_data(int handle, const char* data, int data_len)
71 API int sf_get_data(int handle, unsigned int data_id, sensor_data_t* sensor_data)
76 API int sf_check_rotation(unsigned long *rotation)
81 API int sf_is_sensor_event_available(sensor_type_t sensor_type, unsigned int event_type)