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 /xkbcommon | |
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 'xkbcommon')
-rw-r--r-- | xkbcommon/xkbcommon.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/xkbcommon/xkbcommon.h b/xkbcommon/xkbcommon.h index 995771f..43c5220 100644 --- a/xkbcommon/xkbcommon.h +++ b/xkbcommon/xkbcommon.h @@ -279,10 +279,10 @@ enum xkb_log_level { * Passing NULL restores the default function, which logs to stderr. **/ void -xkb_set_log_fn(struct xkb_context *context, - void (*log_fn)(struct xkb_context *context, - enum xkb_log_level level, - const char *format, va_list args)); +xkb_context_set_log_fn(struct xkb_context *context, + void (*log_fn)(struct xkb_context *context, + enum xkb_log_level level, + const char *format, va_list args)); /** * Sets the current logging level. The value controls which messages * are logged. The default level is XKB_LOG_LEVEL_ERROR. @@ -291,13 +291,14 @@ xkb_set_log_fn(struct xkb_context *context, * and may be specified as a level number or name. */ void -xkb_set_log_level(struct xkb_context *context, enum xkb_log_level level); +xkb_context_set_log_level(struct xkb_context *context, + enum xkb_log_level level); /** * Returns the current logging level. */ enum xkb_log_level -xkb_get_log_level(struct xkb_context *context); +xkb_context_get_log_level(struct xkb_context *context); /** * Sets the current logging verbosity, a value from 0 to 10. @@ -312,13 +313,13 @@ xkb_get_log_level(struct xkb_context *context); * or lower. */ void -xkb_set_log_verbosity(struct xkb_context *ctx, int verbosity); +xkb_context_set_log_verbosity(struct xkb_context *ctx, int verbosity); /** * Returns the current logging verbosity. */ int -xkb_get_log_verbosity(struct xkb_context *ctx); +xkb_context_get_log_verbosity(struct xkb_context *ctx); /** * Retrieves stored data pointer from the context. This might be useful @@ -327,13 +328,13 @@ xkb_get_log_verbosity(struct xkb_context *ctx); * If context is NULL, returns NULL. **/ void * -xkb_get_user_data(struct xkb_context *context); +xkb_context_get_user_data(struct xkb_context *context); /** * Store custom user data in the context. */ void -xkb_set_user_data(struct xkb_context *context, void *user_data); +xkb_context_set_user_data(struct xkb_context *context, void *user_data); /** @} */ |