Re: [PATCH libinput 1/6] Store the backend type in the interface

2014-02-06 Thread Jonas Ådahl
On Thu, Feb 06, 2014 at 02:13:05PM +1000, Peter Hutterer wrote: This enables us to prevent callers from calling backend-specific functions on mismatching backends. This can be done instead by comparing the backend interface pointer in struct libinput to the one defined in either path.c or

Re: [PATCH libinput 1/6] Store the backend type in the interface

2014-02-06 Thread Peter Hutterer
On Thu, Feb 06, 2014 at 10:11:34PM +0100, Jonas Ådahl wrote: On Thu, Feb 06, 2014 at 02:13:05PM +1000, Peter Hutterer wrote: This enables us to prevent callers from calling backend-specific functions on mismatching backends. This can be done instead by comparing the backend interface

[PATCH libinput 1/6] Store the backend type in the interface

2014-02-05 Thread Peter Hutterer
This enables us to prevent callers from calling backend-specific functions on mismatching backends. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput-private.h | 6 ++ src/path.c | 1 + src/udev-seat.c| 1 + 3 files changed, 8 insertions(+) diff