1XrmEnumerateDatabase(3)         XLIB FUNCTIONS         XrmEnumerateDatabase(3)
2
3
4

NAME

6       XrmEnumerateDatabase - enumerate resource database entries
7

SYNTAX

9       #include <X11/Xresource.h>
10
11              #de‐    XrmEnumAllLevels       0
12              fine
13              #de‐    XrmEnumOneLevel        1
14              fine
15
16       Bool  XrmEnumerateDatabase(XrmDatabase  database, XrmNameList name_pre‐
17              fix,  XrmClassList  class_prefix,  int  mode,  Bool   (*proc)(),
18              XPointer arg);
19

ARGUMENTS

21       database  Specifies the resource database.
22
23       name_prefix
24                 Specifies the resource name prefix.
25
26       class_prefix
27                 Specifies the resource class prefix.
28
29       mode      Specifies the number of levels to enumerate.
30
31       proc      Specifies  the procedure that is to be called for each match‐
32                 ing entry.
33
34       arg       Specifies the user-supplied argument that will be  passed  to
35                 the procedure.
36

DESCRIPTION

38       The  XrmEnumerateDatabase  function  calls  the specified procedure for
39       each resource in the database that would match some completion  of  the
40       given  name/class  resource  prefix.   The order in which resources are
41       found is implementation-dependent.  If mode is XrmEnumOneLevel,  a  re‐
42       source  must  match the given name/class prefix with just a single name
43       and class appended.  If mode is  XrmEnumAllLevels,  the  resource  must
44       match  the  given  name/class prefix with one or more names and classes
45       appended.  If the procedure returns True,  the  enumeration  terminates
46       and  the function returns True.  If the procedure always returns False,
47       all matching resources are enumerated and the function returns False.
48
49       The procedure is called with the following arguments:
50
51       (*proc)(database, bindings, quarks, type, value, arg)
52               XrmDatabase *database;
53               XrmBindingList bindings;
54               XrmQuarkList quarks;
55               XrmRepresentation *type;
56               XrmValue *value;
57               XPointer arg;
58
59       The bindings and quarks lists are terminated by NULLQUARK.   Note  that
60       pointers  to  the database and type are passed, but these values should
61       not be modified.
62
63       The procedure must not modify the database.  If Xlib has been  initial‐
64       ized  for threads, the procedure is called with the database locked and
65       the result of a call by the procedure to any Xlib  function  using  the
66       same database is not defined.
67

SEE ALSO

69       XrmGetResource(3), XrmInitialize(3), XrmPutResource(3)
70       Xlib - C Language X Interface
71
72
73
74X Version 11                     libX11 1.7.0          XrmEnumerateDatabase(3)
Impressum