summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-11-16 15:43:41 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-11-18 12:13:53 +1000
commit7123c37f1c50eb450913902885f46e238a7befd1 (patch)
treed5039ac69c6013fe415d45771d444fc9beefcf13
parentcc2b45dd503933b806b44e83f6e9d3e448c8183e (diff)
tablet: rename tool_tip_state to tablet_tool_tip_state
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--src/evdev-tablet.c4
-rw-r--r--src/libinput-private.h6
-rw-r--r--src/libinput.c10
-rw-r--r--src/libinput.h4
-rw-r--r--tools/event-debug.c2
5 files changed, 13 insertions, 13 deletions
diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index 040582b..871e10e 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -407,7 +407,7 @@ tablet_check_notify_axes(struct tablet_dispatch *tablet,
tablet->changed_axes,
axes);
else {
- enum libinput_tool_tip_state tip_state;
+ enum libinput_tablet_tool_tip_state tip_state;
tip_state = tablet_has_status(tablet, TABLET_TOOL_IN_CONTACT) ?
LIBINPUT_TOOL_TIP_DOWN : LIBINPUT_TOOL_TIP_UP;
@@ -792,7 +792,7 @@ tablet_notify_button_mask(struct tablet_dispatch *tablet,
struct libinput_device *base = &device->base;
size_t i;
size_t nbits = 8 * sizeof(buttons[0]) * buttons_len;
- enum libinput_tool_tip_state tip_state;
+ enum libinput_tablet_tool_tip_state tip_state;
tip_state = tablet_has_status(tablet, TABLET_TOOL_IN_CONTACT) ?
LIBINPUT_TOOL_TIP_DOWN : LIBINPUT_TOOL_TIP_UP;
diff --git a/src/libinput-private.h b/src/libinput-private.h
index a1f66b1..38a14b8 100644
--- a/src/libinput-private.h
+++ b/src/libinput-private.h
@@ -463,7 +463,7 @@ void
tablet_notify_axis(struct libinput_device *device,
uint64_t time,
struct libinput_tablet_tool *tool,
- enum libinput_tool_tip_state tip_state,
+ enum libinput_tablet_tool_tip_state tip_state,
unsigned char *changed_axes,
double *axes,
double *deltas,
@@ -481,14 +481,14 @@ void
tablet_notify_tip(struct libinput_device *device,
uint64_t time,
struct libinput_tablet_tool *tool,
- enum libinput_tool_tip_state tip_state,
+ enum libinput_tablet_tool_tip_state tip_state,
double *axes);
void
tablet_notify_button(struct libinput_device *device,
uint64_t time,
struct libinput_tablet_tool *tool,
- enum libinput_tool_tip_state tip_state,
+ enum libinput_tablet_tool_tip_state tip_state,
double *axes,
int32_t button,
enum libinput_button_state state);
diff --git a/src/libinput.c b/src/libinput.c
index bd33b25..5308d8d 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -137,7 +137,7 @@ struct libinput_event_tablet {
unsigned char changed_axes[NCHARS(LIBINPUT_TABLET_TOOL_AXIS_MAX + 1)];
struct libinput_tablet_tool *tool;
enum libinput_tablet_tool_proximity_state proximity_state;
- enum libinput_tool_tip_state tip_state;
+ enum libinput_tablet_tool_tip_state tip_state;
};
static void
@@ -1089,7 +1089,7 @@ libinput_event_tablet_get_proximity_state(struct libinput_event_tablet *event)
return event->proximity_state;
}
-LIBINPUT_EXPORT enum libinput_tool_tip_state
+LIBINPUT_EXPORT enum libinput_tablet_tool_tip_state
libinput_event_tablet_get_tip_state(struct libinput_event_tablet *event)
{
require_event_type(libinput_event_get_context(&event->base),
@@ -1973,7 +1973,7 @@ void
tablet_notify_axis(struct libinput_device *device,
uint64_t time,
struct libinput_tablet_tool *tool,
- enum libinput_tool_tip_state tip_state,
+ enum libinput_tablet_tool_tip_state tip_state,
unsigned char *changed_axes,
double *axes,
double *deltas,
@@ -2045,7 +2045,7 @@ void
tablet_notify_tip(struct libinput_device *device,
uint64_t time,
struct libinput_tablet_tool *tool,
- enum libinput_tool_tip_state tip_state,
+ enum libinput_tablet_tool_tip_state tip_state,
double *axes)
{
struct libinput_event_tablet *tip_event;
@@ -2074,7 +2074,7 @@ void
tablet_notify_button(struct libinput_device *device,
uint64_t time,
struct libinput_tablet_tool *tool,
- enum libinput_tool_tip_state tip_state,
+ enum libinput_tablet_tool_tip_state tip_state,
double *axes,
int32_t button,
enum libinput_button_state state)
diff --git a/src/libinput.h b/src/libinput.h
index 2a563f8..a13700f 100644
--- a/src/libinput.h
+++ b/src/libinput.h
@@ -225,7 +225,7 @@ enum libinput_tablet_tool_proximity_state {
* The tip contact state of a tool is a binary state signalling whether the tool is
* touching the surface of the tablet device.
*/
-enum libinput_tool_tip_state {
+enum libinput_tablet_tool_tip_state {
LIBINPUT_TOOL_TIP_UP = 0,
LIBINPUT_TOOL_TIP_DOWN = 1,
};
@@ -1537,7 +1537,7 @@ libinput_event_tablet_get_proximity_state(struct libinput_event_tablet *event);
* @param event The libinput tablet event
* @return The new tip state of the tool from the event.
*/
-enum libinput_tool_tip_state
+enum libinput_tablet_tool_tip_state
libinput_event_tablet_get_tip_state(struct libinput_event_tablet *event);
/**
diff --git a/tools/event-debug.c b/tools/event-debug.c
index 5dc7505..75d8162 100644
--- a/tools/event-debug.c
+++ b/tools/event-debug.c
@@ -285,7 +285,7 @@ static void
print_tablet_tip_event(struct libinput_event *ev)
{
struct libinput_event_tablet *p = libinput_event_get_tablet_event(ev);
- enum libinput_tool_tip_state state;
+ enum libinput_tablet_tool_tip_state state;
print_event_time(libinput_event_tablet_get_time(p));