From 8dff8642c43a473713d48533974d9c7883bbc5c1 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Wed, 16 Jun 2010 02:30:41 +0200 Subject: refactor: Replace hwdata by mtdev This patch makes the switch, from using hwdata and the associated type A parser, to using mtdev and the associated type B parser. A command-line gesture test program is included. Signed-off-by: Henrik Rydberg --- include/mtouch.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'include/mtouch.h') diff --git a/include/mtouch.h b/include/mtouch.h index a495960..2b76652 100644 --- a/include/mtouch.h +++ b/include/mtouch.h @@ -22,16 +22,13 @@ #ifndef MTOUCH_H #define MTOUCH_H -#include "mtdev-iobuf.h" -#include "hwdata.h" -#include "hwstate.h" -#include "mtstate.h" #include "memory.h" +#include "mtdev-iobuf.h" struct MTouch { struct Capabilities caps; + struct MTDev dev; struct IOBuffer buf; - struct HWData hw; struct HWState hs; struct MTState prev_state, state; struct Memory mem; @@ -41,9 +38,7 @@ int configure_mtouch(struct MTouch *mt, int fd); int open_mtouch(struct MTouch *mt, int fd); int close_mtouch(struct MTouch *mt, int fd); -int read_synchronized_event(struct MTouch *mt, int fd); -void parse_event(struct MTouch *mt); - +int parse_event(struct MTouch *mt, const struct input_event *ev); static inline void mt_delay_movement(struct MTouch *mt, int t) { -- cgit v1.2.3