summaryrefslogtreecommitdiff
path: root/rcm-server-keymap.h
blob: f29c0af36cbc68d28885b624dd11bc82c78b4953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef foorcmserverkeymaphfoo
#define foorcmserverkeymaphfoo

struct keycode {
	char *name;
	char *value;
};

struct keymap {
	char *name;
	uint16_t rows;
	uint16_t cols;
	struct list_head list;
	struct keycode keycodes[];
};

struct keymap *find_keymap_by_name(struct device *dev, const char *name);

int keymaps_load(struct device *device);

#endif