2 .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium
4 .\" Permission is hereby granted, free of charge, to any person obtaining
5 .\" a copy of this software and associated documentation files (the
6 .\" "Software"), to deal in the Software without restriction, including
7 .\" without limitation the rights to use, copy, modify, merge, publish,
8 .\" distribute, sublicense, and/or sell copies of the Software, and to
9 .\" permit persons to whom the Software is furnished to do so, subject to
10 .\" the following conditions:
12 .\" The above copyright notice and this permission notice shall be included
13 .\" in all copies or substantial portions of the Software.
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 .\" OTHER DEALINGS IN THE SOFTWARE.
23 .\" Except as contained in this notice, the name of the X Consortium shall
24 .\" not be used in advertising or otherwise to promote the sale, use or
25 .\" other dealings in this Software without prior written authorization
26 .\" from the X Consortium.
28 .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by
29 .\" Digital Equipment Corporation
31 .\" Portions Copyright \(co 1990, 1991 by
34 .\" Permission to use, copy, modify and distribute this documentation for
35 .\" any purpose and without fee is hereby granted, provided that the above
36 .\" copyright notice appears in all copies and that both that copyright notice
37 .\" and this permission notice appear in all copies, and that the names of
38 .\" Digital and Tektronix not be used in in advertising or publicity pertaining
39 .\" to this documentation without specific, written prior permission.
40 .\" Digital and Tektronix makes no representations about the suitability
41 .\" of this documentation for any purpose.
42 .\" It is provided ``as is'' without express or implied warranty.
45 .ds xT X Toolkit Intrinsics \- C Language Interface
46 .ds xW Athena X Widgets \- C Language X Toolkit Interface
47 .ds xL Xlib \- C Language X Interface
48 .ds xC Inter-Client Communication Conventions Manual
55 .\".if \\n(VS>=40 .vs \\n(VSu
56 .\".if \\n(VS<=39 .vs \\n(VSp
79 .de IN \" send an index entry to the stderr
86 .\" choose appropriate monospace font
87 .\" the imagen conditional, 480,
88 .\" may be changed to L if LB is too
89 .\" heavy for your eyes...
91 .ie "\\*(.T"480" .ft L
92 .el .ie "\\*(.T"300" .ft L
93 .el .ie "\\*(.T"202" .ft PO
94 .el .ie "\\*(.T"aps" .ft CW
97 .ie \\n(VS>40 .vs \\n(VSu
105 .ie t \\$1\fB\^\\$2\^\fR\\$3
106 .el \\$1\fI\^\\$2\^\fP\\$3
109 .ie t \fB\^\\$1\^\fR\\$2
110 .el \fI\^\\$1\^\fP\\$2
113 .ie t <\fB\\$1\fR>\\$2
119 .if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2
120 .if \\n(.$ .if !'\\$1'C' .ds NO \\$1
134 . \" Note End -- doug kraft 3/85
144 .TH XrmEnumerateDatabase __libmansuffix__ __xorgversion__ "XLIB FUNCTIONS"
146 XrmEnumerateDatabase \- enumerate resource database entries
149 lw(.5i) lw(2i) lw(2.5i).
166 Bool XrmEnumerateDatabase\^(\^XrmDatabase \fIdatabase\fP\^, XrmNameList
167 \fIname_prefix\fP\^, XrmClassList \fIclass_prefix\fP\^, int \fImode\fP\^, Bool
168 (\^*\fIproc\fP\^)\^(\^)\^, XPointer \fIarg\fP\^);
170 .IP \fIdatabase\fP 1i
171 Specifies the resource database.
172 .IP \fIname_prefix\fP 1i
173 Specifies the resource name prefix.
174 .IP \fIclass_prefix\fP 1i
175 Specifies the resource class prefix.
177 Specifies the number of levels to enumerate.
179 Specifies the procedure that is to be called for each matching entry.
181 Specifies the user-supplied argument that will be passed to the procedure.
184 .ZN XrmEnumerateDatabase
185 function calls the specified procedure for each resource in the database
186 that would match some completion of the given name/class resource prefix.
187 The order in which resources are found is implementation-dependent.
189 .ZN XrmEnumOneLevel ,
190 a resource must match the given name/class prefix with
191 just a single name and class appended. If mode is
192 .ZN XrmEnumAllLevels ,
193 the resource must match the given name/class prefix with one or more names and
195 If the procedure returns
197 the enumeration terminates and the function returns
199 If the procedure always returns
201 all matching resources are enumerated and the function returns
204 The procedure is called with the following arguments:
206 .\" Start marker code here
210 (*\fIproc\fP\^)(\^\fIdatabase\fP, \fIbindings\fP, \fIquarks\fP, \fItype\fP, \fIvalue\fP, \fIarg\fP\^)
211 XrmDatabase *\fIdatabase\fP\^;
212 XrmBindingList \fIbindings\fP\^;
213 XrmQuarkList \fIquarks\fP\^;
214 XrmRepresentation *\fItype\fP\^;
215 XrmValue *\fIvalue\fP\^;
216 XPointer \fIarg\fP\^;
218 .\" End marker code here
220 The bindings and quarks lists are terminated by
223 to the database and type are passed, but these values should not be modified.
225 The procedure must not modify the database.
226 If Xlib has been initialized for threads, the procedure is called with
227 the database locked and the result of a call by the procedure to any
228 Xlib function using the same database is not defined.
230 XrmGetResource(__libmansuffix__),
231 XrmInitialize(__libmansuffix__),
232 XrmPutResource(__libmansuffix__)