From: Daniel Stone Date: Fri, 3 Aug 2012 01:12:52 +0000 (+0200) Subject: Move xkb_context struct to xkb-priv.h X-Git-Tag: xkbcommon-0.2.0~301 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=226cb22c800584cea61cdeac3347bf9755b63013;p=platform%2Fupstream%2Flibxkbcommon.git Move xkb_context struct to xkb-priv.h So we can print more intelligent debugging messages without needing helper functions for the failed_includes array. Signed-off-by: Daniel Stone --- diff --git a/src/context.c b/src/context.c index c9d90bd..864c6de 100644 --- a/src/context.c +++ b/src/context.c @@ -35,24 +35,6 @@ #include "xkb-priv.h" #include "atom.h" -struct xkb_context { - int refcnt; - - ATTR_PRINTF(3, 0) void (*log_fn)(struct xkb_context *ctx, int priority, - const char *fmt, va_list args); - int log_priority; - int log_verbosity; - void *user_data; - - darray(char *) includes; - darray(char *) failed_includes; - - /* xkbcomp needs to assign sequential IDs to XkbFile's it creates. */ - unsigned file_id; - - struct atom_table *atom_table; -}; - /** * Append one directory to the context's include path. */ diff --git a/src/xkb-priv.h b/src/xkb-priv.h index aec13ab..42b7fa1 100644 --- a/src/xkb-priv.h +++ b/src/xkb-priv.h @@ -110,6 +110,24 @@ enum xkb_file_type { FILE_TYPE_RULES = (1 << 6), }; +struct xkb_context { + int refcnt; + + ATTR_PRINTF(3, 0) void (*log_fn)(struct xkb_context *ctx, int priority, + const char *fmt, va_list args); + int log_priority; + int log_verbosity; + void *user_data; + + darray(char *) includes; + darray(char *) failed_includes; + + /* xkbcomp needs to assign sequential IDs to XkbFile's it creates. */ + unsigned file_id; + + struct atom_table *atom_table; +}; + /* Files needed for a complete keymap. */ #define REQUIRED_FILE_TYPES (FILE_TYPE_TYPES | FILE_TYPE_COMPAT | \ FILE_TYPE_SYMBOLS | FILE_TYPE_KEYCODES)