From 82d5b54d9c977a335f50fda7ca3f7ae2fc4a50f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Sat, 25 Jan 2014 11:33:09 +0100 Subject: [PATCH] Fix some coding style inconsistencies MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Ådahl --- src/libinput.c | 20 ++++++++++---------- src/libinput.h | 12 ++++++------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/libinput.c b/src/libinput.c index 99e3d8ed..a77f165a 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -87,19 +87,19 @@ libinput_event_get_type(struct libinput_event *event) return event->type; } -LIBINPUT_EXPORT struct libinput* +LIBINPUT_EXPORT struct libinput * libinput_event_get_context(struct libinput_event *event) { return event->device->seat->libinput; } -LIBINPUT_EXPORT struct libinput_device* +LIBINPUT_EXPORT struct libinput_device * libinput_event_get_device(struct libinput_event *event) { return event->device; } -LIBINPUT_EXPORT struct libinput_event_pointer* +LIBINPUT_EXPORT struct libinput_event_pointer * libinput_event_get_pointer_event(struct libinput_event *event) { switch (event->type) { @@ -113,7 +113,7 @@ libinput_event_get_pointer_event(struct libinput_event *event) case LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE: case LIBINPUT_EVENT_POINTER_BUTTON: case LIBINPUT_EVENT_POINTER_AXIS: - return (struct libinput_event_pointer*)event; + return (struct libinput_event_pointer *) event; case LIBINPUT_EVENT_TOUCH_TOUCH: case LIBINPUT_EVENT_TOUCH_FRAME: break; @@ -122,7 +122,7 @@ libinput_event_get_pointer_event(struct libinput_event *event) return NULL; } -LIBINPUT_EXPORT struct libinput_event_keyboard* +LIBINPUT_EXPORT struct libinput_event_keyboard * libinput_event_get_keyboard_event(struct libinput_event *event) { switch (event->type) { @@ -132,7 +132,7 @@ libinput_event_get_keyboard_event(struct libinput_event *event) case LIBINPUT_EVENT_DEVICE_REMOVED: break; case LIBINPUT_EVENT_KEYBOARD_KEY: - return (struct libinput_event_keyboard*)event; + return (struct libinput_event_keyboard *) event; case LIBINPUT_EVENT_POINTER_MOTION: case LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE: case LIBINPUT_EVENT_POINTER_BUTTON: @@ -145,7 +145,7 @@ libinput_event_get_keyboard_event(struct libinput_event *event) return NULL; } -LIBINPUT_EXPORT struct libinput_event_touch* +LIBINPUT_EXPORT struct libinput_event_touch * libinput_event_get_touch_event(struct libinput_event *event) { switch (event->type) { @@ -161,13 +161,13 @@ libinput_event_get_touch_event(struct libinput_event *event) break; case LIBINPUT_EVENT_TOUCH_TOUCH: case LIBINPUT_EVENT_TOUCH_FRAME: - return (struct libinput_event_touch*)event; + return (struct libinput_event_touch *) event; } return NULL; } -LIBINPUT_EXPORT struct libinput_event_device_notify* +LIBINPUT_EXPORT struct libinput_event_device_notify * libinput_event_get_device_notify_event(struct libinput_event *event) { switch (event->type) { @@ -175,7 +175,7 @@ libinput_event_get_device_notify_event(struct libinput_event *event) abort(); /* not used as actual event type */ case LIBINPUT_EVENT_DEVICE_ADDED: case LIBINPUT_EVENT_DEVICE_REMOVED: - return (struct libinput_event_device_notify*)event; + return (struct libinput_event_device_notify *) event; case LIBINPUT_EVENT_KEYBOARD_KEY: case LIBINPUT_EVENT_POINTER_MOTION: case LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE: diff --git a/src/libinput.h b/src/libinput.h index 8980dabe..2419468f 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -228,7 +228,7 @@ libinput_event_get_type(struct libinput_event *event); * @param event The libinput event * @return The libinput context for this event. */ -struct libinput* +struct libinput * libinput_event_get_context(struct libinput_event *event); /** @@ -244,7 +244,7 @@ libinput_event_get_context(struct libinput_event *event); * @return The device associated with this event */ -struct libinput_device* +struct libinput_device * libinput_event_get_device(struct libinput_event *event); /** @@ -255,7 +255,7 @@ libinput_event_get_device(struct libinput_event *event); * * @return A pointer event, or NULL for other events */ -struct libinput_event_pointer* +struct libinput_event_pointer * libinput_event_get_pointer_event(struct libinput_event *event); /** @@ -266,7 +266,7 @@ libinput_event_get_pointer_event(struct libinput_event *event); * * @return A keyboard event, or NULL for other events */ -struct libinput_event_keyboard* +struct libinput_event_keyboard * libinput_event_get_keyboard_event(struct libinput_event *event); /** @@ -277,7 +277,7 @@ libinput_event_get_keyboard_event(struct libinput_event *event); * * @return A touch event, or NULL for other events */ -struct libinput_event_touch* +struct libinput_event_touch * libinput_event_get_touch_event(struct libinput_event *event); /** @@ -288,7 +288,7 @@ libinput_event_get_touch_event(struct libinput_event *event); * * @return A device event, or NULL for other events */ -struct libinput_event_device_notify* +struct libinput_event_device_notify * libinput_event_get_device_notify_event(struct libinput_event *event); /** -- 2.34.1