<p dir="ltr"><br>
On Mar 24, 2014 12:06 AM, "Peter Hutterer" <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>> wrote:<br>
><br>
> On Fri, Mar 21, 2014 at 09:18:42PM +0100, Jonas Ådahl wrote:<br>
> > On Fri, Mar 21, 2014 at 02:13:22PM +1000, Peter Hutterer wrote:<br>
> > > Signed-off-by: Peter Hutterer <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>><br>
> > > ---<br>
> > >  src/libinput.h | 6 ++++++<br>
> > >  1 file changed, 6 insertions(+)<br>
> > ><br>
> > > diff --git a/src/libinput.h b/src/libinput.h<br>
> > > index d6bf9f8..3e09871 100644<br>
> > > --- a/src/libinput.h<br>
> > > +++ b/src/libinput.h<br>
> > > @@ -691,6 +691,12 @@ struct libinput_interface {<br>
> > >   * the given seat ID. New devices or devices removed will appear as events<br>
> > >   * during libinput_dispatch.<br>
> > >   *<br>
> > > + * libinput_udev_create_for_seat() fails for internal values only. No<br>
> ><br>
> > What does internal values mean?  It fails for invalid input, OOM, libudev<br>
> > errors, etc, but how is that relevant? Maybe its enough to just say that<br>
> > this call will not fail even if no input devices are successfully added,<br>
> > and that if not supported, or if failed to open, devices will be ignored<br>
> > until next resume.<br>
><br>
> huh, this should have been "internal errors", which should make a bit more<br>
> sense. and yes, the above was pretty much what I was trying to say. I've<br>
> reworded this now to:<br>
><br>
>  libinput_udev_create_for_seat() succeeds even if no input device is<br>
>  available in this seat, or if devices are available but fail to open in<br>
>  @ref libinput_interface::open_restricted. Devices that do not have the<br>
>  minimum capabilities to be recognized as pointer, keyboard or touch<br>
>  device are ignored. Such devices and those that failed to open are<br>
>  ignored until the next call to libinput_resume().</p>
<p dir="ltr">Looks good to me</p>
<p dir="ltr">Jonas</p>
<p dir="ltr">><br>
> Cheers,<br>
>    Peter<br>
><br>
> ><br>
> > > + * guarantee is made that a device is available once the call finishes, and<br>
> > > + * only devices handled by libinput are avialable. Devices that cannot be<br>
> > > + * opened in @ref libinput_interface::open_restricted or do not match<br>
> > > + * libinput requirements are ignored.<br>
> > > + *<br>
> > >   * @param interface The callback interface<br>
> > >   * @param user_data Caller-specific data passed to the various callback<br>
> > >   * interfaces.<br>
> > > --<br>
> > > 1.8.5.3<br>
> > ><br>
</p>