Rename public entry points to lowercase and underscore
[platform/upstream/libxkbcommon.git] / test / xkey.c
index 4f775f2..9d7a08f 100644 (file)
@@ -1,20 +1,21 @@
-#include <X11/XkbCommon.h>
+#include "xkbmisc.h"
+#include "X11/extensions/XKBcommon.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 
 static void print_keysym(const char *s)
 {
-    KeySym ks = XkbcStringToKeysym(s);
+    KeySym ks = xkb_string_to_keysym(s);
     if (ks == NoSymbol)
         printf("NoSymbol\n");
     else
-        printf("0x%lx\n", ks);
+        printf("0x%lX\n", ks);
 }
 
 static void print_string(KeySym ks)
 {
-    char *s = XkbcKeysymToString(ks);
+    char *s = xkb_keysym_to_string(ks);
     printf("%s\n", s ? s : "NULL");
 }