aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-16 10:24:09 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-06-16 10:25:56 +0200
commit523d193b089111849873d9de0ec1bf29f4176fbc (patch)
treefc93888df4756d735e8357505e94bcd8193c9d00 /include
parent4e9e4d494e094347e7617d39292cbbdd1c81eff1 (diff)
downloadxorg-input-kobomultitouch-523d193b089111849873d9de0ec1bf29f4176fbc.tar.gz
xorg-input-kobomultitouch-523d193b089111849873d9de0ec1bf29f4176fbc.tar.bz2
xorg-input-kobomultitouch-523d193b089111849873d9de0ec1bf29f4176fbc.zip
Correct mtdev API names
The mtdev queue api functions had wrong names. This patch changes them to the familiar put and get. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include')
-rw-r--r--include/mtdev-evbuf.h6
-rw-r--r--include/mtdev.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/include/mtdev-evbuf.h b/include/mtdev-evbuf.h
index 6a63d6d..77fec41 100644
--- a/include/mtdev-evbuf.h
+++ b/include/mtdev-evbuf.h
@@ -40,14 +40,14 @@ static inline int evbuf_empty(const struct EventBuffer *evbuf)
return evbuf->head == evbuf->tail;
}
-static inline void evbuf_push(struct EventBuffer *evbuf,
- const struct input_event *ev)
+static inline void evbuf_put(struct EventBuffer *evbuf,
+ const struct input_event *ev)
{
evbuf->buffer[evbuf->head++] = *ev;
evbuf->head &= DIM_EVENTS - 1;
}
-static inline void evbuf_pop(struct EventBuffer *evbuf,
+static inline void evbuf_get(struct EventBuffer *evbuf,
struct input_event *ev)
{
*ev = evbuf->buffer[evbuf->tail++];
diff --git a/include/mtdev.h b/include/mtdev.h
index ab2d044..936d597 100644
--- a/include/mtdev.h
+++ b/include/mtdev.h
@@ -44,12 +44,12 @@ static inline int mtdev_empty(struct MTDev *mtdev)
return evbuf_empty(&mtdev->outbuf);
}
-void mtdev_push(struct MTDev *dev, const struct Capabilities *caps,
- const struct input_event *ev);
+void mtdev_put(struct MTDev *dev, const struct Capabilities *caps,
+ const struct input_event *ev);
-static inline void mtdev_pop(struct MTDev *mtdev, struct input_event* ev)
+static inline void mtdev_get(struct MTDev *mtdev, struct input_event* ev)
{
- evbuf_pop(&mtdev->outbuf, ev);
+ evbuf_get(&mtdev->outbuf, ev);
}
void mtdev_destroy(struct MTDev *mtdev);