diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-19 20:25:54 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-19 20:25:54 +0200 |
| commit | 7bea065be05a1acf357270f470e00ffcdc0a09e4 (patch) | |
| tree | 52bdfbf28f0138c84c6136d45d9b52fde22d86c7 | |
| parent | 5348eb281e599942d903f023b2aecd87a77792af (diff) | |
Make grail implementation visible to all local files
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
| -rw-r--r-- | src/grail-api.c | 10 | ||||
| -rw-r--r-- | src/grail-impl.h | 36 |
2 files changed, 37 insertions, 9 deletions
diff --git a/src/grail-api.c b/src/grail-api.c index afd97b9..f55ac1f 100644 --- a/src/grail-api.c +++ b/src/grail-api.c | |||
| @@ -22,21 +22,13 @@ | |||
| 22 | 22 | ||
| 23 | #include "grail-inserter.h" | 23 | #include "grail-inserter.h" |
| 24 | #include "grail-recognizer.h" | 24 | #include "grail-recognizer.h" |
| 25 | #include <grail.h> | 25 | #include "grail-impl.h" |
| 26 | #include <string.h> | 26 | #include <string.h> |
| 27 | #include <stdio.h> | 27 | #include <stdio.h> |
| 28 | #include <unistd.h> | 28 | #include <unistd.h> |
| 29 | #include <fcntl.h> | 29 | #include <fcntl.h> |
| 30 | #include <malloc.h> | 30 | #include <malloc.h> |
| 31 | #include <errno.h> | 31 | #include <errno.h> |
| 32 | #include "evbuf.h" | ||
| 33 | |||
| 34 | struct grail_impl { | ||
| 35 | struct touch_dev dev; | ||
| 36 | struct evbuf evbuf; | ||
| 37 | int filter_abs; | ||
| 38 | int hack_status; | ||
| 39 | }; | ||
| 40 | 32 | ||
| 41 | static void tp_event(struct touch_dev *dev, | 33 | static void tp_event(struct touch_dev *dev, |
| 42 | const struct input_event *ev) | 34 | const struct input_event *ev) |
diff --git a/src/grail-impl.h b/src/grail-impl.h new file mode 100644 index 0000000..ba7745a --- /dev/null +++ b/src/grail-impl.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /***************************************************************************** | ||
| 2 | * | ||
| 3 | * grail - Gesture Recognition And Instantiation Library | ||
| 4 | * | ||
| 5 | * Copyright (C) 2010 Canonical Ltd. | ||
| 6 | * Copyright (C) 2010 Henrik Rydberg <rydberg@bitmath.org> | ||
| 7 | * | ||
| 8 | * This program is free software: you can redistribute it and/or modify it | ||
| 9 | * under the terms of the GNU General Public License as published by the | ||
| 10 | * Free Software Foundation, either version 3 of the License, or (at your | ||
| 11 | * option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, but | ||
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 16 | * General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License along | ||
| 19 | * with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | * | ||
| 21 | ****************************************************************************/ | ||
| 22 | |||
| 23 | #ifndef _GRAIL_IMPL_H | ||
| 24 | #define _GRAIL_IMPL_H | ||
| 25 | |||
| 26 | #include <grail-touch.h> | ||
| 27 | #include "evbuf.h" | ||
| 28 | |||
| 29 | struct grail_impl { | ||
| 30 | struct touch_dev dev; | ||
| 31 | struct evbuf evbuf; | ||
| 32 | int filter_abs; | ||
| 33 | int hack_status; | ||
| 34 | }; | ||
| 35 | |||
| 36 | #endif | ||
