diff options
author | Ran Benita <ran234@gmail.com> | 2012-09-22 10:58:00 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2012-09-24 09:08:54 +1000 |
commit | 0dd40125c555ccfc6b018eda8107fa1aa101c43e (patch) | |
tree | 1efe4505f75e09192a6ecd2fd664b9942c63574c /test/rules-file.c | |
parent | be3cbc993eaba8f2239e237ba43df6b4de236041 (diff) |
API: add _context prefix to log-related functions
This is to follow the general scheme set by all of the other API
functions.
Since no one is using these functions yet, we don't (actually better
not) add the old names to xkbcommon-compat.h.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'test/rules-file.c')
-rw-r--r-- | test/rules-file.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/rules-file.c b/test/rules-file.c index b2091de..b3b3b6c 100644 --- a/test/rules-file.c +++ b/test/rules-file.c @@ -92,16 +92,16 @@ static void benchmark(struct xkb_context *ctx) { struct timespec start, stop, elapsed; - enum xkb_log_level old_level = xkb_get_log_level(ctx); - int old_verb = xkb_get_log_verbosity(ctx); + enum xkb_log_level old_level = xkb_context_get_log_level(ctx); + int old_verb = xkb_context_get_log_verbosity(ctx); int i; struct xkb_rule_names rmlvo = { "evdev", "pc105", "us,il", ",", "ctrl:nocaps,grp:menu_toggle", }; struct xkb_component_names kccgst; - xkb_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL); - xkb_set_log_verbosity(ctx, 0); + xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL); + xkb_context_set_log_verbosity(ctx, 0); clock_gettime(CLOCK_MONOTONIC, &start); for (i = 0; i < BENCHMARK_ITERATIONS; i++) { @@ -113,8 +113,8 @@ benchmark(struct xkb_context *ctx) } clock_gettime(CLOCK_MONOTONIC, &stop); - xkb_set_log_level(ctx, old_level); - xkb_set_log_verbosity(ctx, old_verb); + xkb_context_set_log_level(ctx, old_level); + xkb_context_set_log_verbosity(ctx, old_verb); elapsed.tv_sec = stop.tv_sec - start.tv_sec; elapsed.tv_nsec = stop.tv_nsec - start.tv_nsec; |