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