strace/xlat/evdev_switch.in
Eugene Syromyatnikov 86bfc08a92 Switch to use of value-indexed xlats for evdev constants
* xlat/evdev_abs.in: Add "#value_indexed" directive.
* xlat/evdev_autorepeat.in: Likewise.
* xlat/evdev_ff_status.in: Likewise.
* xlat/evdev_keycode.in: Likewise.
* xlat/evdev_leds.in: Likewise.
* xlat/evdev_misc.in: Likewise.
* xlat/evdev_prop.in: Likewise.
* xlat/evdev_relative_axes.in: Likewise.
* xlat/evdev_snd.in: Likewise.
* xlat/evdev_switch.in: Likewise.
* xlat/evdev_sync.in: Likewise.
* xlat/evdev_ff_types.in: Add a comment about sorting.
* evdev.c (keycode_ioctl, keycode_V2_ioctl): Use printxval_index
instead of printxval.
(bit_ioctl): Use XT_SORTED for evdev_ff_types, use XT_INDEXED
for other xlats.
(evdev_read_ioctl): Use XT_INDEXED for all xlats.
* ioctl.c (evdev_decode_number): Use printxval_indexn instead of
printxval for evdev_abs.
2018-04-27 00:56:25 +00:00

18 lines
370 B
Plaintext

#value_indexed
SW_LID 0x00
SW_TABLET_MODE 0x01
SW_HEADPHONE_INSERT 0x02
SW_RFKILL_ALL 0x03
SW_MICROPHONE_INSERT 0x04
SW_DOCK 0x05
SW_LINEOUT_INSERT 0x06
SW_JACK_PHYSICAL_INSERT 0x07
SW_VIDEOOUT_INSERT 0x08
SW_CAMERA_LENS_COVER 0x09
SW_KEYPAD_SLIDE 0x0a
SW_FRONT_PROXIMITY 0x0b
SW_ROTATE_LOCK 0x0c
SW_LINEIN_INSERT 0x0d
SW_MUTE_DEVICE 0x0e
SW_PEN_INSERTED 0x0f