OSDN Git Service

Merge branch 'lineage-16.0' of https://github.com/me176c-dev/android_hardware_iio...
[android-x86/hardware-intel-libsensors.git] / control.h
index b69dd49..a1e8120 100644 (file)
--- a/control.h
+++ b/control.h
@@ -1,15 +1,30 @@
 /*
- * Copyright (C) 2014 Intel Corporation.
- */
+// Copyright (c) 2015 Intel Corporation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+*/
 
 #ifndef __CONTROL_H__
 #define __CONTROL_H__
 
-int    sensor_activate         (int handle, int enabled);
+int    sensor_activate         (int handle, int enabled, int from_virtual);
 int    sensor_set_delay        (int handle, int64_t ns);
-int    sensor_poll             (sensors_event_t* data, int count);
+int    sensor_poll             (sensors_event_t* data, int count);
+int    sensor_flush            (int handle);
 
 int    allocate_control_data   (void);
 void   delete_control_data     (void);
 
+void   build_sensor_report_maps(int dev_num);
+
 #endif