keyboard description in which to allocate server map
.TP
.I\-which
mask selecting map components to allocate
.TP
.I\-count_acts
value of num_acts field in map to be allocated
.SHDESCRIPTION
.LP
.IXkbAllocServerMap
allocates and initializes an empty server map in the
.Iserver
field of the keyboard description specified by
.Ixkb.
The
.Iwhich
parameter specifies the particular components of the server map structure to allocate, as specified in Table 1.
.TS
c s
l l
l lw(4i).
Table 1 XkbAllocServerMap Masks
_
Mask Effect
_
XkbExplicitComponentsMask T{
The min_key_code and max_key_code fields of the xkb parameter are used to
allocate the explicit field of the server map.
T}
.sp
XkbKeyActionsMask T{
The min_key_code and max_key_code fields of the xkb parameter are used to allocate the key_acts field of the server map. The count_acts parameter is used to allocate the acts field of the server map.
T}
.sp
XkbKeyBehaviorsMask T{
The min_key_code and max_key_code fields of the xkb parameter are used to allocate the behaviors field of the server map.
T}
.sp
XkbVirtualModMapMask T{
The min_key_code and max_key_code fields of the xkb parameter are used to allocate the vmodmap field of the server map.
T}
.TE
If the server map of the keyboard description is not NULL and any fields are already allocated in the server map,
.IXkbAllocServerMap
does not overwrite the existing values. The only exception is with the
.Iacts
array. If the
.Icount_acts
parameter is greater than the current
.Inum_acts
field of the server map,
.IXkbAllocServerMap
resizes the
.Iacts
array and resets the
.Inum_acts
field accordingly.
If
.IXkbAllocServerMap
is successful, it returns Success. Otherwise, it can return either BadMatch or BadAlloc errors.
.SHDIAGNOSTICS
.TP15
.BBadAlloc
Unable to allocate storage
.TP15
.BBadMatch
A compatible version of Xkb was not available in the server or an argument has correct type and range, but is otherwise invalid
.TP15
.BBadValue
An argument is out of range
.SHNOTES
.LP
The
.Imin_key_code
and
.Imax_key_code
fields of the
.Ixkb
parameter must be legal values. If they are not valid,