1XrmEnumerateDatabase(3X11) XLIB FUNCTIONS XrmEnumerateDatabase(3X11)
2
3
4
6 XrmEnumerateDatabase - enumerate resource database entries
7
9 #define XrmEnumAllLevels 0
10 #define XrmEnumOneLevel 1
11
12 Bool XrmEnumerateDatabase(XrmDatabase database, XrmNameList name_pre‐
13 fix, XrmClassList class_prefix, int mode, Bool (*proc)(),
14 XPointer arg);
15
17 database Specifies the resource database.
18
19 name_prefix
20 Specifies the resource name prefix.
21
22 class_prefix
23 Specifies the resource class prefix.
24
25 mode Specifies the number of levels to enumerate.
26
27 proc Specifies the procedure that is to be called for each match‐
28 ing entry.
29
30 arg Specifies the user-supplied argument that will be passed to
31 the procedure.
32
34 The XrmEnumerateDatabase function calls the specified procedure for
35 each resource in the database that would match some completion of the
36 given name/class resource prefix. The order in which resources are
37 found is implementation-dependent. If mode is XrmEnumOneLevel, a
38 resource must match the given name/class prefix with just a single name
39 and class appended. If mode is XrmEnumAllLevels, the resource must
40 match the given name/class prefix with one or more names and classes
41 appended. If the procedure returns True, the enumeration terminates
42 and the function returns True. If the procedure always returns False,
43 all matching resources are enumerated and the function returns False.
44
45 The procedure is called with the following arguments:
46
47 (*proc)(database, bindings, quarks, type, value, arg)
48 XrmDatabase *database;
49 XrmBindingList bindings;
50 XrmQuarkList quarks;
51 XrmRepresentation *type;
52 XrmValue *value;
53 XPointer arg;
54
55 The bindings and quarks lists are terminated by NULLQUARK. Note that
56 pointers to the database and type are passed, but these values should
57 not be modified.
58
59 The procedure must not modify the database. If Xlib has been initial‐
60 ized for threads, the procedure is called with the database locked and
61 the result of a call by the procedure to any Xlib function using the
62 same database is not defined.
63
65 XrmGetResource(3X11), XrmInitialize(3X11), XrmPutResource(3X11)
66 Xlib - C Language X Interface
67
68
69
70X Version 11 libX11 1.0.3 XrmEnumerateDatabase(3X11)