Which will make the context start with no include paths at all.
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,
+ /** Create this context with an empty include path. */
+ XKB_CONTEXT_NO_DEFAULT_INCLUDES = 1,
};
/**
context->refcnt = 1;
- if (!xkb_context_include_path_append_default(context)) {
+ if (!(flags & XKB_CONTEXT_NO_DEFAULT_INCLUDES) &&
+ !xkb_context_include_path_append_default(context)) {
xkb_context_unref(context);
return NULL;
}