They don't need the keymap, only the context.
Signed-off-by: Ran Benita <ran234@gmail.com>
static inline bool
ReportSINotArray(CompatInfo *info, SymInterpInfo *si, const char *field)
{
- return ReportNotArray(info->keymap, "symbol interpretation", field,
+ return ReportNotArray(info->keymap->ctx, "symbol interpretation", field,
siText(si, info));
}
static inline bool
ReportLedNotArray(CompatInfo *info, LedInfo *ledi, const char *field)
{
- return ReportNotArray(info->keymap, "indicator map", field,
+ return ReportNotArray(info->keymap->ctx, "indicator map", field,
xkb_atom_text(info->keymap->ctx, ledi->led.name));
}
si->defined |= SI_FIELD_LEVEL_ONE_ONLY;
}
else {
- return ReportBadField(keymap, "symbol interpretation", field,
+ return ReportBadField(keymap->ctx, "symbol interpretation", field,
siText(si, info));
}
ReportTypeShouldBeArray(KeyTypesInfo *info, KeyTypeInfo *type,
const char *field)
{
- return ReportShouldBeArray(info->keymap, "key type", field,
+ return ReportShouldBeArray(info->keymap->ctx, "key type", field,
TypeTxt(info, type));
}
/***====================================================================***/
static inline bool
-ReportNotArray(struct xkb_keymap *keymap, const char *type, const char *field,
+ReportNotArray(struct xkb_context *ctx, const char *type, const char *field,
const char *name)
{
- log_err(keymap->ctx,
+ log_err(ctx,
"The %s %s field is not an array; "
"Ignoring illegal assignment in %s\n",
type, field, name);
}
static inline bool
-ReportShouldBeArray(struct xkb_keymap *keymap, const char *type,
+ReportShouldBeArray(struct xkb_context *ctx, const char *type,
const char *field, const char *name)
{
- log_err(keymap->ctx,
+ log_err(ctx,
"Missing subscript for %s %s; "
"Ignoring illegal assignment in %s\n",
type, field, name);
}
static inline bool
-ReportBadField(struct xkb_keymap *keymap, const char *type, const char *field,
+ReportBadField(struct xkb_context *ctx, const char *type, const char *field,
const char *name)
{
- log_err(keymap->ctx,
+ log_err(ctx,
"Unknown %s field %s in %s; "
"Ignoring assignment to unknown field in %s\n",
type, field, name, name);