test_input: fix compilation for kbd_keysym_to_string()
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 31 Jul 2012 08:01:32 +0000 (10:01 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 31 Jul 2012 08:01:32 +0000 (10:01 +0200)
Since we moved to a runtime backend system for the input subsystem, we
cannot access the internal keysym_to_string() helpers anymore. Hence, use
the recently introduced uterm-input forwarding helper.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
tests/test_input.c

index 84083bb..1db58a5 100644 (file)
@@ -40,8 +40,6 @@
 #include "uterm.h"
 #include "test_include.h"
 
-extern void kbd_keysym_to_string(uint32_t keysym, char *str, size_t size);
-
 static struct ev_eloop *eloop;
 static struct uterm_input *input;
 
@@ -89,7 +87,7 @@ static void input_arrived(struct uterm_input *input,
 {
        char s[32];
 
-       kbd_keysym_to_string(ev->keysym, s, sizeof(s));
+       uterm_input_keysym_to_string(input, ev->keysym, s, sizeof(s));
        printf("sym %s ", s);
        if (ev->unicode != UTERM_INPUT_INVALID) {
                /*