From 0dd40125c555ccfc6b018eda8107fa1aa101c43e Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 22 Sep 2012 10:58:00 +0300 Subject: 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 --- test/rules-file.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/rules-file.c') 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; -- cgit v1.2.3