aboutsummaryrefslogtreecommitdiffstats
path: root/src/mtouch.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-11-06 14:03:42 +0100
committerHenrik Rydberg <rydberg@euromail.se>2008-11-06 14:03:42 +0100
commita773c79d6d767ddfe574ad513ab0276bdd13a717 (patch)
tree8d879fe396dab810bf5632c9777c3931c08eb396 /src/mtouch.c
parent030a3c8a38a81ea882fa0a3b0bfce61ded50a20d (diff)
downloadxorg-input-kobomultitouch-a773c79d6d767ddfe574ad513ab0276bdd13a717.tar.gz
xorg-input-kobomultitouch-a773c79d6d767ddfe574ad513ab0276bdd13a717.tar.bz2
xorg-input-kobomultitouch-a773c79d6d767ddfe574ad513ab0276bdd13a717.zip
Driver stages in place - should one support multiple
device instances by moving the private alloc to init/close? Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/mtouch.c')
-rw-r--r--src/mtouch.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mtouch.c b/src/mtouch.c
new file mode 100644
index 0000000..2d05921
--- /dev/null
+++ b/src/mtouch.c
@@ -0,0 +1,22 @@
+#include "mtouch.h"
+#include <errno.h>
+
+/******************************************************/
+
+int configure_mtouch(struct MTouch *mt, int fd)
+{
+ int rc = read_capabilities(&mt->caps, fd);
+ if (rc < 0)
+ return rc;
+ output_capabilities(&mt->caps);
+ return 0;
+}
+
+/******************************************************/
+
+int init_mtouch(struct MTouch *mt)
+{
+ return 0;
+}
+
+/******************************************************/