1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #ifndef CTIMAP_H
16 #define CTIMAP_H
17
18 #include <linux/list.h>
19
20 struct imapper {
21 unsigned short slot;
22 unsigned short user;
23 unsigned short addr;
24 unsigned short next;
25 struct list_head list;
26 };
27
28 int input_mapper_add(struct list_head *mappers, struct imapper *entry,
29 int (*map_op)(void *, struct imapper *), void *data);
30
31 int input_mapper_delete(struct list_head *mappers, struct imapper *entry,
32 int (*map_op)(void *, struct imapper *), void *data);
33
34 void free_input_mapper_list(struct list_head *mappers);
35
36 #endif