OSDN Git Service

Reverse the default orientation of accelerometer
[android-x86/hardware-intel-libsensors.git] / activity_event_entry.c
index 35e24e4..107fd35 100644 (file)
@@ -1,9 +1,24 @@
 /*
- * Copyright (C) 2015 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.
+*/
+
+/*
  * This file represents the entry point for the activity recognition HAL module.
  */
 
+#include <stdlib.h>
 #include <utils/Log.h>
 #include <sys/epoll.h>
 #include <sys/eventfd.h>
@@ -17,6 +32,8 @@
 
 #include "common.h"
 #include "activity_event_utils.h"
+#include <linux/iio/events.h>
+#include <linux/iio/types.h>
 
 #define MODULE_VERSION         1
 #define HAL_VERSION            0