summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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)
40 return evbuf->head == evbuf->tail; 40 return evbuf->head == evbuf->tail;
41} 41}
42 42
43static inline void evbuf_push(struct EventBuffer *evbuf, 43static inline void evbuf_put(struct EventBuffer *evbuf,
44 const struct input_event *ev) 44 const struct input_event *ev)
45{ 45{
46 evbuf->buffer[evbuf->head++] = *ev; 46 evbuf->buffer[evbuf->head++] = *ev;
47 evbuf->head &= DIM_EVENTS - 1; 47 evbuf->head &= DIM_EVENTS - 1;
48} 48}
49 49
50static inline void evbuf_pop(struct EventBuffer *evbuf, 50static inline void evbuf_get(struct EventBuffer *evbuf,
51 struct input_event *ev) 51 struct input_event *ev)
52{ 52{
53 *ev = evbuf->buffer[evbuf->tail++]; 53 *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)
44 return evbuf_empty(&mtdev->outbuf); 44 return evbuf_empty(&mtdev->outbuf);
45} 45}
46 46
47void mtdev_push(struct MTDev *dev, const struct Capabilities *caps, 47void mtdev_put(struct MTDev *dev, const struct Capabilities *caps,
48 const struct input_event *ev); 48 const struct input_event *ev);
49 49
50static inline void mtdev_pop(struct MTDev *mtdev, struct input_event* ev) 50static inline void mtdev_get(struct MTDev *mtdev, struct input_event* ev)
51{ 51{
52 evbuf_pop(&mtdev->outbuf, ev); 52 evbuf_get(&mtdev->outbuf, ev);
53} 53}
54 54
55void mtdev_destroy(struct MTDev *mtdev); 55void mtdev_destroy(struct MTDev *mtdev);