OSDN Git Service

GMINL-7944: Introduce internal sensor types for ALS
[android-x86/hardware-intel-libsensors.git] / utils.h
diff --git a/utils.h b/utils.h
index aef19a3..3b8fa63 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Intel Corporation.
+ * Copyright (C) 2014-2015 Intel Corporation.
  */
 
 #ifndef __UTILS_H__
@@ -16,15 +16,14 @@ int sysfs_write_str  (const char path[PATH_MAX], const char *buf);
 int    sysfs_read_float (const char path[PATH_MAX], float *value);
 int    sysfs_write_float(const char path[PATH_MAX], float value);
 
-int    decode_type_spec(const char type_buf[MAX_TYPE_SPEC_LEN],
-                        struct datum_info_t *type_info);
+int    sysfs_read_uint64(const char path[PATH_MAX], uint64_t *value);
 
-int64_t        load_timestamp_monotonic        (struct timespec *ts);
-int64_t        get_timestamp_monotonic (void);
 void   set_timestamp   (struct timespec *out, int64_t target_ns);
 
-int64_t get_timestamp(void);
-int64_t load_timestamp_sys_clock(void);
+int64_t get_timestamp_boot     (void);
+int64_t get_timestamp_realtime (void);
+int64_t get_timestamp_monotonic        (void);
+
 #endif