* @param path The device path to open
* @param flags Flags as defined by open(2)
* @param user_data The user_data provided in
- * libinput_create_from_udev()
+ * libinput_udev_create_for_seat()
*
* @return the file descriptor, or a negative errno on failure.
*/
*
* @param fd The file descriptor to close
* @param user_data The user_data provided in
- * libinput_create_from_udev()
+ * libinput_udev_create_for_seat()
*/
void (*close_restricted)(int fd, void *user_data);
};
* error.
*/
struct libinput *
-libinput_create_from_udev(const struct libinput_interface *interface,
+libinput_udev_create_for_seat(const struct libinput_interface *interface,
void *user_data,
struct udev *udev,
const char *seat_id);
*
* Return the physical name of the seat. For libinput contexts created from
* udev, this is always the same value as passed into
- * libinput_create_from_udev() and all seats from that context will have the
- * same physical name.
+ * libinput_udev_create_for_seat() and all seats from that context will have
+ * the same physical name.
*
* The physical name of the seat is one that is usually set by the system or
* lower levels of the stack. In most cases, this is the base filter for
struct udev *udev = (struct udev*)0xdeadbeef;
const char *seat = (const char*)0xdeaddead;
- li = libinput_create_from_udev(NULL, NULL, NULL, NULL);
+ li = libinput_udev_create_for_seat(NULL, NULL, NULL, NULL);
ck_assert(li == NULL);
- li = libinput_create_from_udev(&interface, NULL, NULL, NULL);
+ li = libinput_udev_create_for_seat(&interface, NULL, NULL, NULL);
ck_assert(li == NULL);
- li = libinput_create_from_udev(NULL, NULL, udev, NULL);
+ li = libinput_udev_create_for_seat(NULL, NULL, udev, NULL);
ck_assert(li == NULL);
- li = libinput_create_from_udev(NULL, NULL, NULL, seat);
+ li = libinput_udev_create_for_seat(NULL, NULL, NULL, seat);
ck_assert(li == NULL);
- li = libinput_create_from_udev(&interface, NULL, udev, NULL);
+ li = libinput_udev_create_for_seat(&interface, NULL, udev, NULL);
ck_assert(li == NULL);
- li = libinput_create_from_udev(NULL, NULL, udev, seat);
+ li = libinput_udev_create_for_seat(NULL, NULL, udev, seat);
ck_assert(li == NULL);
- li = libinput_create_from_udev(&interface, NULL, NULL, seat);
+ li = libinput_udev_create_for_seat(&interface, NULL, NULL, seat);
ck_assert(li == NULL);
}
END_TEST
udev = udev_new();
ck_assert(udev != NULL);
- li = libinput_create_from_udev(&simple_interface, NULL, udev, "seat0");
+ li = libinput_udev_create_for_seat(&simple_interface, NULL, udev, "seat0");
ck_assert(li != NULL);
fd = libinput_get_fd(li);
ck_assert(udev != NULL);
/* expect a libinput reference, but no events */
- li = libinput_create_from_udev(&simple_interface, NULL, udev, "seatdoesntexist");
+ li = libinput_udev_create_for_seat(&simple_interface, NULL, udev, "seatdoesntexist");
ck_assert(li != NULL);
fd = libinput_get_fd(li);
udev = udev_new();
ck_assert(udev != NULL);
- li = libinput_create_from_udev(&simple_interface, NULL, udev, "seat0");
+ li = libinput_udev_create_for_seat(&simple_interface, NULL, udev, "seat0");
ck_assert(li != NULL);
libinput_dispatch(li);
udev = udev_new();
ck_assert(udev != NULL);
- li = libinput_create_from_udev(&simple_interface, NULL, udev, "seat0");
+ li = libinput_udev_create_for_seat(&simple_interface, NULL, udev, "seat0");
ck_assert(li != NULL);
fd = libinput_get_fd(li);
udev = udev_new();
ck_assert(udev != NULL);
- li = libinput_create_from_udev(&simple_interface, NULL, udev, "seat0");
+ li = libinput_udev_create_for_seat(&simple_interface, NULL, udev, "seat0");
ck_assert(li != NULL);
fd = libinput_get_fd(li);
udev = udev_new();
ck_assert(udev != NULL);
- li = libinput_create_from_udev(&simple_interface, NULL, udev, "seat0");
+ li = libinput_udev_create_for_seat(&simple_interface, NULL, udev, "seat0");
ck_assert(li != NULL);
fd = libinput_get_fd(li);
udev = udev_new();
ck_assert(udev != NULL);
- li = libinput_create_from_udev(&simple_interface, NULL, udev, "seat0");
+ li = libinput_udev_create_for_seat(&simple_interface, NULL, udev, "seat0");
ck_assert(li != NULL);
libinput_dispatch(li);