![]() |
![]()
| ![]() |
![]()
NAMEXkbResizeDeviceButtonActions - Allocate additional space for button actions in an XkbDeviceInfoRec structure SYNOPSISStatus XkbResizeDeviceButtonActions (XkbDeviceInfoPtr device_info, unsigned int new_total); ARGUMENTS
DESCRIPTIONXkbResizeDeviceButtonActions reallocates space, if necessary, to make sure there is room for a total of new_total button actions in the device_info structure. Any new entries allocated are zeroed. If successful, XkbResizeDeviceButtonActions returns Success. If new_total is zero, all button actions are deleted, device_info->num_btns is set to zero, and device_info->btn_acts is set to NULL. If device_info is invalid or new_total is greater than 255, BadValue is returned. If a memory allocation failure occurs, a BadAlloc is returned. To free an XkbDeviceInfoRec structure, use XkbFreeDeviceInfo. STRUCTURESInformation about X Input Extension devices is transferred between a client program and the Xkb extension in an XkbDeviceInfoRec structure:
DIAGNOSTICSSEE ALSOXkbFreeDeviceInfo(3)
|