summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/grail-api.c10
-rw-r--r--src/grail-impl.h36
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
34struct grail_impl {
35 struct touch_dev dev;
36 struct evbuf evbuf;
37 int filter_abs;
38 int hack_status;
39};
40 32
41static void tp_event(struct touch_dev *dev, 33static 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
29struct grail_impl {
30 struct touch_dev dev;
31 struct evbuf evbuf;
32 int filter_abs;
33 int hack_status;
34};
35
36#endif