2 .\" Copyright 1999 Oracle and/or its affiliates. All rights reserved.
4 .\" Permission is hereby granted, free of charge, to any person obtaining a
5 .\" copy of this software and associated documentation files (the "Software"),
6 .\" to deal in the Software without restriction, including without limitation
7 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 .\" and/or sell copies of the Software, and to permit persons to whom the
9 .\" Software is furnished to do so, subject to the following conditions:
11 .\" The above copyright notice and this permission notice (including the next
12 .\" paragraph) shall be included in all copies or substantial portions of the
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 .\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 .\" DEALINGS IN THE SOFTWARE.
23 .TH XkbAllocServerMap __libmansuffix__ __xorgversion__ "XKB FUNCTIONS"
25 XkbAllocServerMap \- Allocate and initialize an empty server map description record
28 .B Status XkbAllocServerMap
29 .BI "(\^XkbDescPtr " "xkb" "\^,"
30 .BI "unsigned int " "which" "\^,"
31 .BI "unsigned int " "count_acts" "\^);"
37 keyboard description in which to allocate server map
40 mask selecting map components to allocate
43 value of num_acts field in map to be allocated
47 allocates and initializes an empty server map in the
49 field of the keyboard description specified by
53 parameter specifies the particular components of the server map structure to allocate, as specified in Table 1.
59 Table 1 XkbAllocServerMap Masks
63 XkbExplicitComponentsMask T{
64 The min_key_code and max_key_code fields of the xkb parameter are used to
65 allocate the explicit field of the server map.
69 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.
72 XkbKeyBehaviorsMask T{
73 The min_key_code and max_key_code fields of the xkb parameter are used to allocate the behaviors field of the server map.
76 XkbVirtualModMapMask T{
77 The min_key_code and max_key_code fields of the xkb parameter are used to allocate the vmodmap field of the server map.
82 If the server map of the keyboard description is not NULL and any fields are already allocated in the server map,
84 does not overwrite the existing values. The only exception is with the
88 parameter is greater than the current
90 field of the server map,
100 is successful, it returns Success. Otherwise, it can return either BadMatch or BadAlloc errors.
104 Unable to allocate storage
107 A compatible version of Xkb was not available in the server or an argument has correct type and range, but is otherwise invalid
110 An argument is out of range
119 parameter must be legal values. If they are not valid,