summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-19 12:10:27 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-06-19 14:01:40 +0200
commit259b92a30280cdec2b7798df3c14da596c417ef1 (patch)
treebb1f7138cb2e2c7be18975cb3cd0cc9a07d8c44f /src/common.h
parent8087ac3d655c2b2835cf61e7a69611d81d4f303e (diff)
Restructure mtdev api
Split the api into plumbing and porcelain layers and move the plumbing part to its own optional header file. The main usecase is to fetch events from the device, route them through the converter and extract the processed events. To simplify the API, replace the intermediate mtdev_pull() function by the higher-level mtdev_get(). This function does all the required steps, and has the same semantics as read(). Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 03bc7bd..57d47a0 100644
--- a/src/common.h
+++ b/src/common.h
@@ -30,6 +30,7 @@
30#define COMMON_H 30#define COMMON_H
31 31
32#include <mtdev-mapping.h> 32#include <mtdev-mapping.h>
33#include <mtdev-plumbing.h>
33#include <malloc.h> 34#include <malloc.h>
34#include <string.h> 35#include <string.h>
35#include <errno.h> 36#include <errno.h>