None defined as yet, but why not.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
* @{
*/
+enum xkb_context_flags {
+ /** Apparently you can't have empty enums. What a drag. */
+ XKB_CONTEXT_PLACEHOLDER = 0,
+};
+
/**
* Returns a new XKB context, or NULL on failure. If successful, the caller
* holds a reference on the context, and must free it when finished with
* xkb_context_unref().
*/
struct xkb_context *
-xkb_context_new(void);
+xkb_context_new(enum xkb_context_flags flags);
/**
* Appends a new entry to the include path used for keymap compilation.
* Create a new context.
*/
_X_EXPORT struct xkb_context *
-xkb_context_new(void)
+xkb_context_new(enum xkb_context_flags flags)
{
struct xkb_context *context = calloc(1, sizeof(*context));
int
main(void)
{
- struct xkb_context *context = xkb_context_new();
+ struct xkb_context *context = xkb_context_new(0);
assert(context);
fd = open(path, O_RDONLY);
assert(fd >= 0);
- context = xkb_context_new();
+ context = xkb_context_new(0);
assert(context);
fprintf(stderr, "\nCompiling path: %s\n", path);
struct xkb_context *context;
struct xkb_keymap *xkb;
- context = xkb_context_new();
+ context = xkb_context_new(0);
assert(context);
fprintf(stderr, "\nCompiling string\n");
.symbols = strdup(symbols),
};
- context = xkb_context_new();
+ context = xkb_context_new(0);
assert(context);
fprintf(stderr, "\nCompiling %s %s %s %s\n", kccgst.keycodes, kccgst.types,
.options = options
};
- context = xkb_context_new();
+ context = xkb_context_new(0);
assert(context);
fprintf(stderr, "\nCompiling %s %s %s %s %s\n", rmlvo.rules, rmlvo.model,
.options = NULL,
};
- context = xkb_context_new();
+ context = xkb_context_new(0);
assert(context);
xkb = xkb_map_new_from_names(context, &rmlvo, 0);