diff options
author | malc <av1474@comtv.ru> | 2009-10-01 22:20:47 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-10-01 22:45:02 +0400 |
commit | 99a0949b720a0936da2052cb9a46db04ffc6db29 (patch) | |
tree | f9e39633853e35b49fc4465337cc196b9650866e /keymaps.c | |
parent | bc6291a1b95a2c4c546fde6e5cb4c68366f06649 (diff) |
Get rid of _t suffix
Some not so obvious bits, slirp and Xen were left alone for the time
being.
Signed-off-by: malc <av1474@comtv.ru>
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 name2keysym_t *table, +static int get_keysym(const a_name2keysym *table, const char *name) { - const name2keysym_t *p; + const a_name2keysym *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 kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, +static a_kbd_layout *parse_keyboard_layout(const a_name2keysym *table, const char *language, - kbd_layout_t * k) + a_kbd_layout * k) { FILE *f; char * filename; @@ -71,7 +71,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, filename = qemu_find_file(QEMU_FILE_TYPE_KEYMAP, language); if (!k) - k = qemu_mallocz(sizeof(kbd_layout_t)); + k = qemu_mallocz(sizeof(a_kbd_layout)); if (!(filename && (f = fopen(filename, "r")))) { fprintf(stderr, "Could not read keymap file: '%s'\n", language); @@ -142,7 +142,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, } -void *init_keyboard_layout(const name2keysym_t *table, const char *language) +void *init_keyboard_layout(const a_name2keysym *table, const char *language) { return parse_keyboard_layout(table, language, NULL); } @@ -150,7 +150,7 @@ void *init_keyboard_layout(const name2keysym_t *table, const char *language) int keysym2scancode(void *kbd_layout, int keysym) { - kbd_layout_t *k = kbd_layout; + a_kbd_layout *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) { - kbd_layout_t *k = kbd_layout; + a_kbd_layout *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) { - kbd_layout_t *k = kbd_layout; + a_kbd_layout *k = kbd_layout; struct key_range *kr; for (kr = k->numlock_range; kr; kr = kr->next) |