X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=control.h;h=a1e8120363094a0396826ced49cb91671534a0d9;hb=84048675daaf09be430c3f6cedbb551b67282d64;hp=d1bfa4129808859687b611d41c5b144ab910b586;hpb=87627dc1e9d58b7d3904fa13de13c4bfaf8ce039;p=android-x86%2Fhardware-intel-libsensors.git diff --git a/control.h b/control.h index d1bfa41..a1e8120 100644 --- a/control.h +++ b/control.h @@ -1,14 +1,26 @@ /* - * 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_flush (int handle); +int sensor_poll (sensors_event_t* data, int count); +int sensor_flush (int handle); int allocate_control_data (void); void delete_control_data (void);