#ifndef foorcmserverkeymaphfoo #define foorcmserverkeymaphfoo struct keycode { char *protocol; uint64_t scancode; char *keycode; }; struct keymap { char *name; char *desc; uint16_t rows; uint16_t cols; struct list_head list; struct keycode **layout; unsigned keycode_count; struct keycode keycodes[]; }; struct keymap *find_keymap_by_name(struct device *dev, const char *name); int keymaps_load(struct device *device); void keymap_free(struct keymap *keymap); #endif