diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-06-16 02:30:41 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-06-16 02:30:41 +0200 |
| commit | 8dff8642c43a473713d48533974d9c7883bbc5c1 (patch) | |
| tree | ea8513c76d38f2612a1202d30abf0f2e768f204c /include/mtouch.h | |
| parent | 1c73d171b2814bf2809aa48c2d4b683a064a4f7e (diff) | |
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 <rydberg@euromail.se>
Diffstat (limited to 'include/mtouch.h')
| -rw-r--r-- | include/mtouch.h | 11 |
1 files changed, 3 insertions, 8 deletions
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 @@ | |||
| 22 | #ifndef MTOUCH_H | 22 | #ifndef MTOUCH_H |
| 23 | #define MTOUCH_H | 23 | #define MTOUCH_H |
| 24 | 24 | ||
| 25 | #include "mtdev-iobuf.h" | ||
| 26 | #include "hwdata.h" | ||
| 27 | #include "hwstate.h" | ||
| 28 | #include "mtstate.h" | ||
| 29 | #include "memory.h" | 25 | #include "memory.h" |
| 26 | #include "mtdev-iobuf.h" | ||
| 30 | 27 | ||
| 31 | struct MTouch { | 28 | struct MTouch { |
| 32 | struct Capabilities caps; | 29 | struct Capabilities caps; |
| 30 | struct MTDev dev; | ||
| 33 | struct IOBuffer buf; | 31 | struct IOBuffer buf; |
| 34 | struct HWData hw; | ||
| 35 | struct HWState hs; | 32 | struct HWState hs; |
| 36 | struct MTState prev_state, state; | 33 | struct MTState prev_state, state; |
| 37 | struct Memory mem; | 34 | struct Memory mem; |
| @@ -41,9 +38,7 @@ int configure_mtouch(struct MTouch *mt, int fd); | |||
| 41 | int open_mtouch(struct MTouch *mt, int fd); | 38 | int open_mtouch(struct MTouch *mt, int fd); |
| 42 | int close_mtouch(struct MTouch *mt, int fd); | 39 | int close_mtouch(struct MTouch *mt, int fd); |
| 43 | 40 | ||
| 44 | int read_synchronized_event(struct MTouch *mt, int fd); | 41 | int parse_event(struct MTouch *mt, const struct input_event *ev); |
| 45 | void parse_event(struct MTouch *mt); | ||
| 46 | |||
| 47 | 42 | ||
| 48 | static inline void mt_delay_movement(struct MTouch *mt, int t) | 43 | static inline void mt_delay_movement(struct MTouch *mt, int t) |
| 49 | { | 44 | { |
