From: Ran Benita Date: Fri, 6 Apr 2012 01:33:43 +0000 (+0300) Subject: Reformat actionHandler dispatch table X-Git-Tag: xkbcommon-0.2.0~634 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1e49ff98058e5999cb503ec79ce7223485caac4;p=platform%2Fupstream%2Flibxkbcommon.git Reformat actionHandler dispatch table Signed-off-by: Ran Benita --- diff --git a/src/xkbcomp/action.c b/src/xkbcomp/action.c index 3764310..25278b8 100644 --- a/src/xkbcomp/action.c +++ b/src/xkbcomp/action.c @@ -1073,28 +1073,28 @@ typedef Bool(*actionHandler) (struct xkb_keymap * /* xkb */ , ); static const actionHandler handleAction[XkbSA_NumActions + 1] = { - HandleNoAction /* NoAction */ , - HandleSetLatchMods /* SetMods */ , - HandleSetLatchMods /* LatchMods */ , - HandleLockMods /* LockMods */ , - HandleSetLatchGroup /* SetGroup */ , - HandleSetLatchGroup /* LatchGroup */ , - HandleLockGroup /* LockGroup */ , - HandleMovePtr /* MovePtr */ , - HandlePtrBtn /* PtrBtn */ , - HandlePtrBtn /* LockPtrBtn */ , - HandleSetPtrDflt /* SetPtrDflt */ , - HandleISOLock /* ISOLock */ , - HandleNoAction /* Terminate */ , - HandleSwitchScreen /* SwitchScreen */ , - HandleSetLockControls /* SetControls */ , - HandleSetLockControls /* LockControls */ , - HandleActionMessage /* ActionMessage */ , - HandleRedirectKey /* RedirectKey */ , - HandleDeviceBtn /* DeviceBtn */ , - HandleDeviceBtn /* LockDeviceBtn */ , - HandleDeviceValuator /* DeviceValuatr */ , - HandlePrivate /* Private */ + [XkbSA_NoAction] = HandleNoAction, + [XkbSA_SetMods] = HandleSetLatchMods, + [XkbSA_LatchMods] = HandleSetLatchMods, + [XkbSA_LockMods] = HandleLockMods, + [XkbSA_SetGroup] = HandleSetLatchGroup, + [XkbSA_LatchGroup] = HandleSetLatchGroup, + [XkbSA_LockGroup] = HandleLockGroup, + [XkbSA_MovePtr] = HandleMovePtr, + [XkbSA_PtrBtn] = HandlePtrBtn, + [XkbSA_LockPtrBtn] = HandlePtrBtn, + [XkbSA_SetPtrDflt] = HandleSetPtrDflt, + [XkbSA_ISOLock] = HandleISOLock, + [XkbSA_Terminate] = HandleNoAction, + [XkbSA_SwitchScreen] = HandleSwitchScreen, + [XkbSA_SetControls] = HandleSetLockControls, + [XkbSA_LockControls] = HandleSetLockControls, + [XkbSA_ActionMessage] = HandleActionMessage, + [XkbSA_RedirectKey] = HandleRedirectKey, + [XkbSA_DeviceBtn] = HandleDeviceBtn, + [XkbSA_LockDeviceBtn] = HandleDeviceBtn, + [XkbSA_DeviceValuator] = HandleDeviceValuator, + [PrivateAction] = HandlePrivate, }; /***====================================================================***/