X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Flibinput.h;h=7affffefee2fccbff5e8d12bd0e6d58e4ef4992a;hb=606249f91ca2224a7831eecf24dffa66469c33c8;hp=e1d1ffb4bdb8e88a9350b3dbb068609b5dee03e1;hpb=69dcea11b9e8a19541bdb7c47b5a285c99b72f7f;p=platform%2Fupstream%2Flibinput.git diff --git a/src/libinput.h b/src/libinput.h index e1d1ffb..7affffe 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -706,25 +706,26 @@ libinput_create_from_udev(const struct libinput_interface *interface, void *user_data, struct udev *udev, const char *seat_id); + /** * @ingroup base * - * Create a new libinput context from the given path. This context - * represents one single device only, it will not respond to new devices - * being added and reading from the device after it was removed will fail. + * Create a new libinput context that requires the caller to manually add or + * remove devices with libinput_path_add_device() and + * libinput_path_remove_device(). + * + * The context is fully initialized but will not generate events until at + * least one device has been added. * * @param interface The callback interface * @param user_data Caller-specific data passed to the various callback * interfaces. - * @param path Path to an input device * - * @return An initialized libinput context, ready to handle events or NULL on - * error. + * @return An initialized, empty libinput context. */ struct libinput * -libinput_create_from_path(const struct libinput_interface *interface, - void *user_data, - const char *path); +libinput_path_create_context(const struct libinput_interface *interface, + void *user_data); /** * @ingroup base