Fix some coding style inconsistencies
authorJonas Ådahl <jadahl@gmail.com>
Sat, 25 Jan 2014 10:33:09 +0000 (11:33 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 25 Jan 2014 10:33:09 +0000 (11:33 +0100)
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
src/libinput.c
src/libinput.h

index 99e3d8edfeb5e0d8dd360fb67ba45799389ae4f8..a77f165ade31683a3583807a587d80099a101e31 100644 (file)
@@ -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:
index 8980dabee9649e9c5844eec19c0f25f21319b536..2419468f6e8f6694c2e2aa7931db5b75b126ad02 100644 (file)
@@ -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);
 
 /**