libkeymap 2.6.3 Library to manage the Linux keymaps

context.h
Go to the documentation of this file.
1
6#ifndef LK_CONTEXT_H
7#define LK_CONTEXT_H
8
9#include <linux/kd.h>
10#include <linux/keyboard.h>
11#include <keymap/array.h>
12
16 typedef enum {
17 LK_FLAG_UNICODE_MODE = (1 << 1),
18 LK_FLAG_CLEAR_COMPOSE = (1 << 2),
19 LK_FLAG_CLEAR_STRINGS = (1 << 3),
20 LK_FLAG_PREFER_UNICODE = (1 << 4)
21} lk_flags;
22
26 typedef enum {
27 LK_KEYWORD_KEYMAPS = (1 << 1),
28 LK_KEYWORD_ALTISMETA = (1 << 2),
29 LK_KEYWORD_CHARSET = (1 << 3),
30 LK_KEYWORD_STRASUSUAL = (1 << 4)
31} lk_keywords;
32
36 struct lk_kbdiacr {
37 unsigned int diacr, base, result;
38};
39
43 struct lk_ctx;
44
45#endif /* LK_CONTEXT_H */
array.h
lk_keywords
lk_keywords
Keywords used in keymap files.
Definition context.h:26
LK_KEYWORD_CHARSET
@ LK_KEYWORD_CHARSET
Definition context.h:29
LK_KEYWORD_ALTISMETA
@ LK_KEYWORD_ALTISMETA
Definition context.h:28
LK_KEYWORD_STRASUSUAL
@ LK_KEYWORD_STRASUSUAL
Definition context.h:30
LK_KEYWORD_KEYMAPS
@ LK_KEYWORD_KEYMAPS
Definition context.h:27
lk_flags
lk_flags
Parser flags that are set outside the library.
Definition context.h:16
LK_FLAG_CLEAR_COMPOSE
@ LK_FLAG_CLEAR_COMPOSE
Definition context.h:18
LK_FLAG_UNICODE_MODE
@ LK_FLAG_UNICODE_MODE
Definition context.h:17
LK_FLAG_CLEAR_STRINGS
@ LK_FLAG_CLEAR_STRINGS
Definition context.h:19
LK_FLAG_PREFER_UNICODE
@ LK_FLAG_PREFER_UNICODE
Definition context.h:20
lk_kbdiacr
Copy of struct kbdiacruc.
Definition context.h:36
lk_kbdiacr::base
unsigned int base
Definition context.h:37
lk_kbdiacr::result
unsigned int result
Definition context.h:37
lk_kbdiacr::diacr
unsigned int diacr
Definition context.h:37