summaryrefslogtreecommitdiff
path: root/src
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 /src
parent4e9e4d494e094347e7617d39292cbbdd1c81eff1 (diff)
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 'src')
-rw-r--r--src/hwstate.c2
-rw-r--r--src/mtouch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/hwstate.c b/src/hwstate.c
index f4f2972..b29ee54 100644
--- a/src/hwstate.c
+++ b/src/hwstate.c
@@ -113,7 +113,7 @@ int modify_hwstate(struct HWState *s, struct MTDev *dev,
{
struct input_event ev;
while (!mtdev_empty(dev)) {
- mtdev_pop(dev, &ev);
+ mtdev_get(dev, &ev);
if (read_event(s, caps, &ev))
return 1;
}
diff --git a/src/mtouch.c b/src/mtouch.c
index db75b6f..7272edf 100644
--- a/src/mtouch.c
+++ b/src/mtouch.c
@@ -60,7 +60,7 @@ int close_mtouch(struct MTouch *mt, int fd)
int parse_event(struct MTouch *mt, const struct input_event *ev)
{
- mtdev_push(&mt->dev, &mt->caps, ev);
+ mtdev_put(&mt->dev, &mt->caps, ev);
if (!modify_hwstate(&mt->hs, &mt->dev, &mt->caps))
return 0;
extract_mtstate(&mt->state, &mt->hs, &mt->caps);