diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-01 16:12:16 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-01 16:12:16 -0500 |
commit | c227f0995e1722a1abccc28cadf0664266bd8043 (patch) | |
tree | 39e92c2f818e3e8144978740b914731613af0e40 /keymaps.c | |
parent | 99a0949b720a0936da2052cb9a46db04ffc6db29 (diff) |
Revert "Get rid of _t suffix"
In the very least, a change like this requires discussion on the list.
The naming convention is goofy and it causes a massive merge problem. Something
like this _must_ be presented on the list first so people can provide input
and cope with it.
This reverts commit 99a0949b720a0936da2052cb9a46db04ffc6db29.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'keymaps.c')
-rw-r--r-- | keymaps.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -25,10 +25,10 @@ #include "keymaps.h" #include "sysemu.h" -static int get_keysym(const a_name2keysym *table, +static int get_keysym(const name2keysym_t *table, const char *name) { - const a_name2keysym *p; + const name2keysym_t *p; for(p = table; p->name != NULL; p++) { if (!strcmp(p->name, name)) return p->keysym; @@ -59,9 +59,9 @@ static void add_to_key_range(struct key_range **krp, int code) { } } -static a_kbd_layout *parse_keyboard_layout(const a_name2keysym *table, +static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, const char *language, - a_kbd_layout * k) + kbd_layout_t * k) { FILE *f; char * filename; @@ -71,7 +71,7 @@ static a_kbd_layout *parse_keyboard_layout(const a_name2keysym *table, filename = qemu_find_file(QEMU_FILE_TYPE_KEYMAP, language); if (!k) - k = qemu_mallocz(sizeof(a_kbd_layout)); + k = qemu_mallocz(sizeof(kbd_layout_t)); if (!(filename && (f = fopen(filename, "r")))) { fprintf(stderr, "Could not read keymap file: '%s'\n", language); @@ -142,7 +142,7 @@ static a_kbd_layout *parse_keyboard_layout(const a_name2keysym *table, } -void *init_keyboard_layout(const a_name2keysym *table, const char *language) +void *init_keyboard_layout(const name2keysym_t *table, const char *language) { return parse_keyboard_layout(table, language, NULL); } @@ -150,7 +150,7 @@ void *init_keyboard_layout(const a_name2keysym *table, const char *language) int keysym2scancode(void *kbd_layout, int keysym) { - a_kbd_layout *k = kbd_layout; + kbd_layout_t *k = kbd_layout; if (keysym < MAX_NORMAL_KEYCODE) { if (k->keysym2keycode[keysym] == 0) fprintf(stderr, "Warning: no scancode found for keysym %d\n", @@ -171,7 +171,7 @@ int keysym2scancode(void *kbd_layout, int keysym) int keycode_is_keypad(void *kbd_layout, int keycode) { - a_kbd_layout *k = kbd_layout; + kbd_layout_t *k = kbd_layout; struct key_range *kr; for (kr = k->keypad_range; kr; kr = kr->next) @@ -182,7 +182,7 @@ int keycode_is_keypad(void *kbd_layout, int keycode) int keysym_is_numlock(void *kbd_layout, int keysym) { - a_kbd_layout *k = kbd_layout; + kbd_layout_t *k = kbd_layout; struct key_range *kr; for (kr = k->numlock_range; kr; kr = kr->next) |