mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 11:19:14 +02:00
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:
parent
ab6a409cdc
commit
4edcd79372
3 changed files with 4 additions and 3 deletions
|
|
@ -1089,7 +1089,7 @@ libinput_tool_get_tool_id(struct libinput_tool *tool)
|
||||||
return tool->tool_id;
|
return tool->tool_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
LIBINPUT_EXPORT uint32_t
|
LIBINPUT_EXPORT uint64_t
|
||||||
libinput_tool_get_serial(struct libinput_tool *tool)
|
libinput_tool_get_serial(struct libinput_tool *tool)
|
||||||
{
|
{
|
||||||
return tool->serial;
|
return tool->serial;
|
||||||
|
|
|
||||||
|
|
@ -1648,7 +1648,7 @@ libinput_tool_unref(struct libinput_tool *tool);
|
||||||
* @param tool The libinput tool
|
* @param tool The libinput tool
|
||||||
* @return The new tool serial triggering this event
|
* @return The new tool serial triggering this event
|
||||||
*/
|
*/
|
||||||
uint32_t
|
uint64_t
|
||||||
libinput_tool_get_serial(struct libinput_tool *tool);
|
libinput_tool_get_serial(struct libinput_tool *tool);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
@ -489,7 +490,7 @@ print_proximity_event(struct libinput_event *ev)
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\t%s (%#x) %s",
|
printf("\t%s (%#" PRIx64 ") %s",
|
||||||
tool_str, libinput_tool_get_serial(tool), state_str);
|
tool_str, libinput_tool_get_serial(tool), state_str);
|
||||||
|
|
||||||
printf("\taxes:");
|
printf("\taxes:");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue