From 7bea065be05a1acf357270f470e00ffcdc0a09e4 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 19 Aug 2010 20:25:54 +0200 Subject: Make grail implementation visible to all local files Signed-off-by: Henrik Rydberg --- src/grail-api.c | 10 +--------- src/grail-impl.h | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 src/grail-impl.h (limited to 'src') 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 @@ #include "grail-inserter.h" #include "grail-recognizer.h" -#include +#include "grail-impl.h" #include #include #include #include #include #include -#include "evbuf.h" - -struct grail_impl { - struct touch_dev dev; - struct evbuf evbuf; - int filter_abs; - int hack_status; -}; static void tp_event(struct touch_dev *dev, 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 @@ +/***************************************************************************** + * + * grail - Gesture Recognition And Instantiation Library + * + * Copyright (C) 2010 Canonical Ltd. + * Copyright (C) 2010 Henrik Rydberg + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + * + ****************************************************************************/ + +#ifndef _GRAIL_IMPL_H +#define _GRAIL_IMPL_H + +#include +#include "evbuf.h" + +struct grail_impl { + struct touch_dev dev; + struct evbuf evbuf; + int filter_abs; + int hack_status; +}; + +#endif -- cgit v1.2.3