Rename libinput_create_udev to libinput_create_from_udev
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 5 Dec 2013 08:35:32 +0000 (18:35 +1000)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 7 Dec 2013 12:55:37 +0000 (13:55 +0100)
A lot more obvious what it does, it creates a libinput context from a udev
handler (rather than creating the udev handler).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput.h
src/udev-seat.c

index 5d25c6b..0fce3e8 100644 (file)
@@ -187,10 +187,10 @@ struct libinput_interface {
  */
 
 struct libinput *
-libinput_create_udev(const struct libinput_interface *interface,
-                    void *user_data,
-                    struct udev *udev,
-                    const char *seat_id);
+libinput_create_from_udev(const struct libinput_interface *interface,
+                         void *user_data,
+                         struct udev *udev,
+                         const char *seat_id);
 
 int
 libinput_get_fd(struct libinput *libinput);
index 08357f8..8d3ad25 100644 (file)
@@ -319,10 +319,10 @@ udev_seat_get_named(struct udev_input *input, const char *seat_name)
 }
 
 LIBINPUT_EXPORT struct libinput *
-libinput_create_udev(const struct libinput_interface *interface,
-                    void *user_data,
-                    struct udev *udev,
-                    const char *seat_id)
+libinput_create_from_udev(const struct libinput_interface *interface,
+                         void *user_data,
+                         struct udev *udev,
+                         const char *seat_id)
 {
        struct udev_input *input;