From: Ran Benita Date: Sat, 24 Mar 2012 10:31:55 +0000 (+0200) Subject: Remove a few remaining uses of the KeySym type X-Git-Tag: xkbcommon-0.2.0~696 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f52671a4d1f55b339fc136961dfc645b1b7589f2;p=platform%2Fupstream%2Flibxkbcommon.git Remove a few remaining uses of the KeySym type Signed-off-by: Ran Benita --- diff --git a/makekeys/makekeys.c b/makekeys/makekeys.c index cf96f13..c731e40 100644 --- a/makekeys/makekeys.c +++ b/makekeys/makekeys.c @@ -28,12 +28,13 @@ from The Open Group. /* Constructs hash tables for XStringToKeysym and XKeysymToString. */ -#include -#include +#include "xkbcommon/xkbcommon.h" + #include #include #include #include +#include typedef uint32_t Signature; @@ -41,7 +42,7 @@ typedef uint32_t Signature; static struct info { char *name; - KeySym val; + xkb_keysym_t val; } info[KTNUM]; #define MIN_REHASH 15 @@ -50,11 +51,11 @@ static struct info { static char tab[KTNUM]; static unsigned short offsets[KTNUM]; static unsigned short indexes[KTNUM]; -static KeySym values[KTNUM]; +static xkb_keysym_t values[KTNUM]; static int ksnum = 0; static int -parse_line(const char *buf, char *key, KeySym *val, char *prefix) +parse_line(const char *buf, char *key, xkb_keysym_t *val, char *prefix) { int i; char alias[128]; @@ -109,7 +110,7 @@ main(int argc, char *argv[]) int best_max_rehash; int best_z = 0; int num_found; - KeySym val; + xkb_keysym_t val; char key[128], prefix[128]; char buf[1024]; diff --git a/test/xkey.c b/test/xkey.c index 00e0929..52914a2 100644 --- a/test/xkey.c +++ b/test/xkey.c @@ -3,17 +3,18 @@ #include #include #include +#include static void print_keysym(const char *s) { - KeySym ks = xkb_string_to_keysym(s); + xkb_keysym_t ks = xkb_string_to_keysym(s); if (ks == NoSymbol) printf("NoSymbol\n"); else printf("0x%lX\n", ks); } -static void print_string(KeySym ks) +static void print_string(xkb_keysym_t ks) { char s[16]; @@ -24,7 +25,7 @@ static void print_string(KeySym ks) int main(int argc, char *argv[]) { int mode; - KeySym sym; + xkb_keysym_t sym; if (argc < 3) { fprintf(stderr, "error: not enough arguments\n");