Lines Matching refs:action

193 ReportMismatch(struct xkb_context *ctx, enum xkb_action_type action,  in ReportMismatch()  argument
199 fieldText(field), type, ActionTypeText(action)); in ReportMismatch()
204 ReportIllegal(struct xkb_context *ctx, enum xkb_action_type action, in ReportIllegal() argument
210 fieldText(field), ActionTypeText(action)); in ReportIllegal()
215 ReportActionNotArray(struct xkb_context *ctx, enum xkb_action_type action, in ReportActionNotArray() argument
221 fieldText(field), ActionTypeText(action)); in ReportActionNotArray()
227 union xkb_action *action, enum action_field field, in HandleNoAction() argument
235 CheckBooleanFlag(struct xkb_context *ctx, enum xkb_action_type action, in CheckBooleanFlag() argument
243 return ReportActionNotArray(ctx, action, field); in CheckBooleanFlag()
246 return ReportMismatch(ctx, action, field, "boolean"); in CheckBooleanFlag()
258 enum xkb_action_type action, const ExprDef *array_ndx, in CheckModifierField() argument
263 return ReportActionNotArray(ctx, action, ACTION_FIELD_MODIFIERS); in CheckModifierField()
277 return ReportMismatch(ctx, action, in CheckModifierField()
293 CheckAffectField(struct xkb_context *ctx, enum xkb_action_type action, in CheckAffectField() argument
300 return ReportActionNotArray(ctx, action, ACTION_FIELD_AFFECT); in CheckAffectField()
303 return ReportMismatch(ctx, action, ACTION_FIELD_AFFECT, in CheckAffectField()
313 union xkb_action *action, enum action_field field, in HandleSetLatchLockMods() argument
316 struct xkb_mod_action *act = &action->mods; in HandleSetLatchLockMods()
317 const enum xkb_action_type type = action->type; in HandleSetLatchLockMods()
320 return CheckModifierField(ctx, mods, action->type, array_ndx, value, in HandleSetLatchLockMods()
324 return CheckBooleanFlag(ctx, action->type, field, in HandleSetLatchLockMods()
329 return CheckBooleanFlag(ctx, action->type, field, in HandleSetLatchLockMods()
334 return CheckAffectField(ctx, action->type, array_ndx, value, in HandleSetLatchLockMods()
337 return ReportIllegal(ctx, action->type, field); in HandleSetLatchLockMods()
341 CheckGroupField(struct xkb_context *ctx, enum xkb_action_type action, in CheckGroupField() argument
350 return ReportActionNotArray(ctx, action, ACTION_FIELD_GROUP); in CheckGroupField()
362 return ReportMismatch(ctx, action, ACTION_FIELD_GROUP, in CheckGroupField()
380 union xkb_action *action, enum action_field field, in HandleSetLatchLockGroup() argument
383 struct xkb_group_action *act = &action->group; in HandleSetLatchLockGroup()
384 const enum xkb_action_type type = action->type; in HandleSetLatchLockGroup()
387 return CheckGroupField(ctx, action->type, array_ndx, value, in HandleSetLatchLockGroup()
391 return CheckBooleanFlag(ctx, action->type, field, in HandleSetLatchLockGroup()
396 return CheckBooleanFlag(ctx, action->type, field, in HandleSetLatchLockGroup()
400 return ReportIllegal(ctx, action->type, field); in HandleSetLatchLockGroup()
405 union xkb_action *action, enum action_field field, in HandleMovePtr() argument
408 struct xkb_pointer_action *act = &action->ptr; in HandleMovePtr()
416 return ReportActionNotArray(ctx, action->type, field); in HandleMovePtr()
419 return ReportMismatch(ctx, action->type, field, "integer"); in HandleMovePtr()
425 fieldText(field), ActionTypeText(action->type), in HandleMovePtr()
444 return CheckBooleanFlag(ctx, action->type, field, in HandleMovePtr()
448 return ReportIllegal(ctx, action->type, field); in HandleMovePtr()
453 union xkb_action *action, enum action_field field, in HandlePtrBtn() argument
456 struct xkb_pointer_button_action *act = &action->btn; in HandlePtrBtn()
462 return ReportActionNotArray(ctx, action->type, field); in HandlePtrBtn()
465 return ReportMismatch(ctx, action->type, field, in HandlePtrBtn()
478 else if (action->type == ACTION_TYPE_PTR_LOCK && in HandlePtrBtn()
480 return CheckAffectField(ctx, action->type, array_ndx, value, in HandlePtrBtn()
487 return ReportActionNotArray(ctx, action->type, field); in HandlePtrBtn()
490 return ReportMismatch(ctx, action->type, field, "integer"); in HandlePtrBtn()
503 return ReportIllegal(ctx, action->type, field); in HandlePtrBtn()
515 union xkb_action *action, enum action_field field, in HandleSetPtrDflt() argument
518 struct xkb_pointer_default_action *act = &action->dflt; in HandleSetPtrDflt()
524 return ReportActionNotArray(ctx, action->type, field); in HandleSetPtrDflt()
527 return ReportMismatch(ctx, action->type, field, in HandleSetPtrDflt()
536 return ReportActionNotArray(ctx, action->type, field); in HandleSetPtrDflt()
549 return ReportMismatch(ctx, action->type, field, in HandleSetPtrDflt()
569 return ReportIllegal(ctx, action->type, field); in HandleSetPtrDflt()
574 union xkb_action *action, enum action_field field, in HandleSwitchScreen() argument
577 struct xkb_switch_screen_action *act = &action->screen; in HandleSwitchScreen()
584 return ReportActionNotArray(ctx, action->type, field); in HandleSwitchScreen()
597 return ReportMismatch(ctx, action->type, field, in HandleSwitchScreen()
611 return CheckBooleanFlag(ctx, action->type, field, in HandleSwitchScreen()
616 return ReportIllegal(ctx, action->type, field); in HandleSwitchScreen()
621 union xkb_action *action, enum action_field field, in HandleSetLockControls() argument
624 struct xkb_controls_action *act = &action->ctrls; in HandleSetLockControls()
630 return ReportActionNotArray(ctx, action->type, field); in HandleSetLockControls()
633 return ReportMismatch(ctx, action->type, field, in HandleSetLockControls()
640 return CheckAffectField(ctx, action->type, array_ndx, value, in HandleSetLockControls()
644 return ReportIllegal(ctx, action->type, field); in HandleSetLockControls()
649 union xkb_action *action, enum action_field field, in HandlePrivate() argument
652 struct xkb_private_action *act = &action->priv; in HandlePrivate()
658 return ReportActionNotArray(ctx, action->type, field); in HandlePrivate()
699 return ReportMismatch(ctx, action->type, field, "string"); in HandlePrivate()
752 union xkb_action *action,
781 union xkb_action *action) in HandleActionDef() argument
793 str = xkb_atom_text(ctx, def->action.name); in HandleActionDef()
804 *action = info->actions[handler_type]; in HandleActionDef()
811 for (arg = def->action.args; arg != NULL; in HandleActionDef()
847 if (!handleAction[handler_type](ctx, mods, action, fieldNdx, in HandleActionDef()
860 enum xkb_action_type action; in SetActionField() local
863 if (!stringToAction(elem, &action)) in SetActionField()
871 return handleAction[action](ctx, mods, &info->actions[action], in SetActionField()