tablet: widen the serial type to uint64_t

Internally we still use uint32_t because that's all we get from evdev. But
eventually we'll have 64 bit serials.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
This commit is contained in:
Peter Hutterer 2015-11-05 13:16:58 +10:00
parent ab6a409cdc
commit 4edcd79372
3 changed files with 4 additions and 3 deletions

View file

@ -1089,7 +1089,7 @@ libinput_tool_get_tool_id(struct libinput_tool *tool)
return tool->tool_id;
}
LIBINPUT_EXPORT uint32_t
LIBINPUT_EXPORT uint64_t
libinput_tool_get_serial(struct libinput_tool *tool)
{
return tool->serial;

View file

@ -1648,7 +1648,7 @@ libinput_tool_unref(struct libinput_tool *tool);
* @param tool The libinput tool
* @return The new tool serial triggering this event
*/
uint32_t
uint64_t
libinput_tool_get_serial(struct libinput_tool *tool);
/**

View file

@ -23,6 +23,7 @@
#define _GNU_SOURCE
#include <errno.h>
#include <inttypes.h>
#include <fcntl.h>
#include <poll.h>
#include <stdio.h>
@ -489,7 +490,7 @@ print_proximity_event(struct libinput_event *ev)
abort();
}
printf("\t%s (%#x) %s",
printf("\t%s (%#" PRIx64 ") %s",
tool_str, libinput_tool_get_serial(tool), state_str);
printf("\taxes:");