On Wed, 2012-04-18 at 14:52 +1000, Peter Hutterer wrote: > Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
Signed-off-by: Bastien Nocera <had...@hadess.net> > --- > libwacom/libwacom.h | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/libwacom/libwacom.h b/libwacom/libwacom.h > index e8d0b80..bdc12b0 100644 > --- a/libwacom/libwacom.h > +++ b/libwacom/libwacom.h > @@ -47,16 +47,21 @@ > The usage of libwacom in an application could look like this: > > <pre> > + WacomDeviceDatabase *db; > WacomDevice *device; > + WacomError *error; > > - device = libwacom_new_from_path("/dev/input/event0"); > + db = libwacom_database_new(); > + error = libwacom_error_new(); > + device = libwacom_new_from_path(db, "/dev/input/event0", 0, error); > if (!device) > return; // should check for error here > > if (libwacom_device_is_builtin(device)) > printf("This is a built-in device\n"); > > - libwacom_destroy(&device); > + libwacom_destroy(device); > + libwacom_database_destroy(db); > </pre> > > For a full API reference to see libwacom.h. ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel