diff options
author | Ran Benita <ran234@gmail.com> | 2014-02-10 13:06:22 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2014-02-10 13:15:58 +0200 |
commit | 2ecc0f8316bdbc41f81845fc9a5f0809c38a6229 (patch) | |
tree | 7b83605a5bf0d927b122286ac04561e60f1b6ab4 /src/context.h | |
parent | c11f05e064ea2676cfc8c644bd95c878db3a9130 (diff) | |
download | xorg-lib-libxkbcommon-2ecc0f8316bdbc41f81845fc9a5f0809c38a6229.tar.gz |
context: add xkb_context_sanitize_rule_names()
We want all the default logic in a test, so encapsulate it in this
function, and make all the get_default_* functions static.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/context.h')
-rw-r--r-- | src/context.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/context.h b/src/context.h index 486f408..03e6d50 100644 --- a/src/context.h +++ b/src/context.h @@ -91,20 +91,9 @@ ATTR_PRINTF(4, 5) void xkb_log(struct xkb_context *ctx, enum xkb_log_level level, int verbosity, const char *fmt, ...); -const char * -xkb_context_get_default_rules(struct xkb_context *ctx); - -const char * -xkb_context_get_default_model(struct xkb_context *ctx); - -const char * -xkb_context_get_default_layout(struct xkb_context *ctx); - -const char * -xkb_context_get_default_variant(struct xkb_context *ctx); - -const char * -xkb_context_get_default_options(struct xkb_context *ctx); +void +xkb_context_sanitize_rule_names(struct xkb_context *ctx, + struct xkb_rule_names *rmlvo); /* * The format is not part of the argument list in order to avoid the |