From a773c79d6d767ddfe574ad513ab0276bdd13a717 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 6 Nov 2008 14:03:42 +0100 Subject: Driver stages in place - should one support multiple device instances by moving the private alloc to init/close? Signed-off-by: Henrik Rydberg --- src/mtouch.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/mtouch.c (limited to 'src/mtouch.c') 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 + +/******************************************************/ + +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; +} + +/******************************************************/ -- cgit v1.2.3