diff options
Diffstat (limited to 'libsensors/orientationd/orientationd.h')
-rw-r--r-- | libsensors/orientationd/orientationd.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libsensors/orientationd/orientationd.h b/libsensors/orientationd/orientationd.h index 7e169e4..1eebd90 100644 --- a/libsensors/orientationd/orientationd.h +++ b/libsensors/orientationd/orientationd.h @@ -18,6 +18,8 @@ #include <stdint.h> #include <poll.h> #include <linux/input.h> +#define __STDC_FORMAT_MACROS +#include <inttypes.h> #include <hardware/sensors.h> #include <hardware/hardware.h> @@ -47,7 +49,7 @@ struct orientationd_data { sensors_vec_t acceleration; sensors_vec_t magnetic; - unsigned int delay; + int64_t delay; int input_fd; int activated; @@ -65,14 +67,14 @@ extern int orientationd_handlers_count; */ void input_event_set(struct input_event *event, int type, int code, int value); -long int timestamp(struct timeval *time); -long int input_timestamp(struct input_event *event); +int64_t timestamp(struct timeval *time); +int64_t input_timestamp(struct input_event *event); int uinput_rel_create(const char *name); void uinput_destroy(int uinput_fd); int input_open(char *name); int sysfs_path_prefix(char *name, char *path_prefix); -int sysfs_value_read(char *path); -int sysfs_value_write(char *path, int value); +int64_t sysfs_value_read(char *path); +int sysfs_value_write(char *path, int64_t value); int sysfs_string_read(char *path, char *buffer, size_t length); int sysfs_string_write(char *path, char *buffer, size_t length); |