From 2c6733fc675ed5cfe72f1db2d58f14f6a60ef95c Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Thu, 12 Sep 2019 15:43:11 +0200 Subject: [PATCH] doc: Fix function names in simple code example That code did not compile because those functions were only renamed in header and code back then, but not in the example. Fixes: ab2f20bfd6ad ("Revamp the API once again") Signed-off-by: Alexander Dahl Signed-off-by: Peter Hutterer --- libevdev/libevdev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h index 8fd8a5b..ddf23a5 100644 --- a/libevdev/libevdev.h +++ b/libevdev/libevdev.h @@ -142,8 +142,8 @@ extern "C" { * rc = libevdev_next_event(dev, LIBEVDEV_READ_FLAG_NORMAL, &ev); * if (rc == 0) * printf("Event: %s %s %d\n", - * libevdev_get_event_type_name(ev.type), - * libevdev_get_event_code_name(ev.type, ev.code), + * libevdev_event_type_get_name(ev.type), + * libevdev_event_code_get_name(ev.type, ev.code), * ev.value); * } while (rc == 1 || rc == 0 || rc == -EAGAIN); * @endcode -- 2.7.4