[PATCH libinput 2/5] Always use uint64_t for internal timestamp values

Peter Hutterer peter.hutterer at who-t.net
Mon Jul 27 23:27:22 PDT 2015


On Tue, Jul 28, 2015 at 12:47:03PM +0800, Jonas Ådahl wrote:
> In most places we use 64 bit unsigned integers; lets be consistent and
> use it everywhere.
> 
> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
   Peter
> ---
>  src/evdev-mt-touchpad.h | 2 +-
>  src/evdev.c             | 6 +++---
>  src/evdev.h             | 6 +++---
>  3 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/src/evdev-mt-touchpad.h b/src/evdev-mt-touchpad.h
> index 6350a9f..a7961e7 100644
> --- a/src/evdev-mt-touchpad.h
> +++ b/src/evdev-mt-touchpad.h
> @@ -203,7 +203,7 @@ struct tp_touch {
>  	struct {
>  		enum touch_palm_state state;
>  		struct device_coords first; /* first coordinates if is_palm == true */
> -		uint32_t time; /* first timestamp if is_palm == true */
> +		uint64_t time; /* first timestamp if is_palm == true */
>  	} palm;
>  
>  	struct {
> diff --git a/src/evdev.c b/src/evdev.c
> index 0fc5a64..9af1841 100644
> --- a/src/evdev.c
> +++ b/src/evdev.c
> @@ -129,7 +129,7 @@ update_key_down_count(struct evdev_device *device, int code, int pressed)
>  
>  void
>  evdev_keyboard_notify_key(struct evdev_device *device,
> -			  uint32_t time,
> +			  uint64_t time,
>  			  int key,
>  			  enum libinput_key_state state)
>  {
> @@ -144,7 +144,7 @@ evdev_keyboard_notify_key(struct evdev_device *device,
>  
>  void
>  evdev_pointer_notify_physical_button(struct evdev_device *device,
> -				     uint32_t time,
> +				     uint64_t time,
>  				     int button,
>  				     enum libinput_button_state state)
>  {
> @@ -159,7 +159,7 @@ evdev_pointer_notify_physical_button(struct evdev_device *device,
>  
>  void
>  evdev_pointer_notify_button(struct evdev_device *device,
> -			    uint32_t time,
> +			    uint64_t time,
>  			    int button,
>  			    enum libinput_button_state state)
>  {
> diff --git a/src/evdev.h b/src/evdev.h
> index cc61c5f..c7017ba 100644
> --- a/src/evdev.h
> +++ b/src/evdev.h
> @@ -360,18 +360,18 @@ evdev_notify_resumed_device(struct evdev_device *device);
>  
>  void
>  evdev_keyboard_notify_key(struct evdev_device *device,
> -			  uint32_t time,
> +			  uint64_t time,
>  			  int key,
>  			  enum libinput_key_state state);
>  
>  void
>  evdev_pointer_notify_button(struct evdev_device *device,
> -			    uint32_t time,
> +			    uint64_t time,
>  			    int button,
>  			    enum libinput_button_state state);
>  void
>  evdev_pointer_notify_physical_button(struct evdev_device *device,
> -				     uint32_t time,
> +				     uint64_t time,
>  				     int button,
>  				     enum libinput_button_state state);
>  
> -- 
> 2.1.0
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
> 


More information about the wayland-devel mailing list