2
...\" OpenHieC.sgm /main/10 1996/09/08 21:26:00 rws $
10
.fl \" force out current output buffer
11
\!!save /psv exch def currentpoint translate 0 0 moveto
14
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
18
.ie \\*(f1 .ds f1 \\n(.f
19
.el .ie \\*(f2 .ds f2 \\n(.f
20
.el .ie \\*(f3 .ds f3 \\n(.f
21
.el .ie \\*(f4 .ds f4 \\n(.f
22
.el .tm ? font overflow
42
.el .tm ? font underflow
48
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
49
.TH "MrmOpenHierarchyPerDisplay" "library call"
51
\fBMrmOpenHierarchyPerDisplay\fP \(em Allocates a hierarchy ID and opens all the UID files in the hierarchy
52
.iX "MrmOpenHierarchyPer\\%Display"
53
.iX "uil functions" "MrmOpenHierarchyPer\\%Display"
57
#include <Mrm/MrmPublic\&.h>
58
\fBCardinal \fBMrmOpenHierarchyPerDisplay\fP\fR(
59
\fBDisplay *\fBdisplay\fR\fR,
60
\fBMrmCount \fBnum_files\fR\fR,
61
\fBString \fBfile_names_list\fR[]\fR,
62
\fBMrmOsOpenParamPtr *\fBancillary_structures_list\fR\fR,
63
\fBMrmHierarchy *\fBhierarchy_id\fR\fR);
67
\fBMrmOpenHierarchyPerDisplay\fP allows you to specify the list
68
of UID files that MRM searches in subsequent fetch operations\&.
69
All subsequent fetch operations return the first occurrence of the
70
named item encountered while traversing the UID hierarchy from
71
the first list element (UID file specification) to the last list
74
allocates a hierarchy ID and opens all the UID files in the
76
It initializes the optimized search lists in the hierarchy\&.
78
\fBMrmOpenHierarchyPerDisplay\fP
79
encounters any errors during its execution, any files that were opened
82
The application must call \fBXtAppInitialize\fP before calling
83
\fBMrmOpenHierarchyPerDisplay\fP\&.
84
.IP "\fIdisplay\fP" 10
85
Specifies the connection to the X server and the value to pass
86
to \fBXtResolvePathname\fP\&. For more information on the \fBDisplay\fR
87
structure, see the Xlib function \fBXOpenDisplay\fP\&.
88
.IP "\fInum_files\fP" 10
89
Specifies the number of files in the name list\&.
90
.IP "\fIfile_names_list\fP" 10
91
Specifies an array of character strings that identify
93
.IP "\fIancillary_structures_list\fP" 10
94
A list of operating-system-dependent ancillary structures corresponding
95
to items such as filenames, clobber flags, and so forth\&.
96
This argument should be NULL for most operations\&.
97
If you need to reference this structure,
99
\fBMrmOsOpenParamPtr\fR
100
in the \fBMrmPublic\&.h\fP header file for more information\&.
101
.IP "\fIhierarchy_id\fP" 10
102
Returns the search hierarchy ID\&.
103
The search hierarchy ID identifies the list of UID files that
104
MRM searches (in order) when performing subsequent
107
Each UID file string in \fIfile_names_list\fP can specify either a full
108
pathname or a filename\&.
109
If a UID file string has a leading / (slash), it specifies a full
110
pathname, and MRM opens the file as specified\&.
111
Otherwise, the UID file string specifies a filename\&.
112
In this case MRM looks for the file along a search path specified by the
113
\fBUIDPATH\fP environment variable or by a default search path, which
114
varies depending on whether or not the \fBXAPPLRESDIR\fP environment
117
The \fBUIDPATH\fP environment variable specifies a search path and
118
naming conventions associated with UID files\&.
119
It can contain the substitution field \fB%U\fP, where the UID file string from
120
the \fIfile_names_list\fP argument to \fBMrmOpenHierarchyPerDisplay\fP is
121
substituted for \fB%U\fP\&.
122
It can also contain the substitution fields accepted by
123
\fBXtResolvePathname\fP\&.
124
The substitution field \fB%T\fP is always mapped to \fIuid\fP\&.
125
The entire path is searched first with \fB%S\fP mapped to \fB\&.uid\fP\&.
126
If no file is found, it is searched again with \fB%S\fP mapped to NULL\&.
127
For example, the following \fBUIDPATH\fP value and
128
\fBMrmOpenHierarchyPerDisplay\fP call cause MRM to open two separate UID
132
\f(CWUIDPATH=/uidlib/%L/%U\&.uid:/uidlib/%U/%L
133
static char *uid_files[] = {"/usr/users/me/test\&.uid", "test2"};
134
MrmHierarchy *Hierarchy_id;
135
MrmOpenHierarchyPerDisplay((MrmCount)2,uid_files, NULL, Hierarchy_id)\fR
139
MRM opens the first file, \fB/usr/users/me/test\&.uid\fP, as specified in
140
the \fIfile_names_list\fP argument to \fBMrmOpenHierarchyPerDisplay\fP,
141
because the UID file string in the \fIfile_names_list\fP argument
142
specifies a full pathname\&.
143
MRM looks for the second file,
146
\fB/uidlib/%L/test2\&.uid\fP
148
\fB/uidlib/test2/%L\fP,
149
where the display\&'s language string is substituted for \fB%L\fP\&.
152
\fBMrmOpenHierarchyPerDisplay\fP
153
opens the UID hierarchy, you should not delete or modify the
154
UID files until you close the UID hierarchy by calling
155
\fBMrmCloseHierarchy\fP\&.
157
If \fBUIDPATH\fP is not set, but the environment variable
158
\fBXAPPLRESDIR\fP is set, MRM searches the following pathnames:
162
\fB$XAPPLRESDIR/%L/uid/%N/%U%S\fP
164
\fB$XAPPLRESDIR/%l/uid/%N/%U%S\fP
166
\fB$XAPPLRESDIR/uid/%N/%U%S\fP
168
\fB$XAPPLRESDIR/%L/uid/%U%S\fP
170
\fB$XAPPLRESDIR/%l/uid/%U%S\fP
172
\fB$XAPPLRESDIR/uid/%U%S\fP
178
\fB/usr/lib/X11/%L/uid/%N/%U%S\fP
180
\fB/usr/lib/X11/%l/uid/%N/%U%S\fP
182
\fB/usr/lib/X11/uid/%N/%U%S\fP
184
\fB/usr/lib/X11/%L/uid/%U%S\fP
186
\fB/usr/lib/X11/%l/uid/%U%S\fP
188
\fB/usr/lib/X11/uid/%U%S\fP
190
\fB/usr/include/X11/uid/%U%S\fP
192
If neither \fBUIDPATH\fP nor \fBXAPPLRESDIR\fP is set, MRM searches the
197
\fB$HOME/%L/uid/%N/%U%S\fP
199
\fB$HOME/%l/uid/%N/%U%S\fP
201
\fB$HOME/uid/%N/%U%S\fP
203
\fB$HOME/%L/uid/%U%S\fP
205
\fB$HOME/%l/uid/%U%S\fP
211
\fB/usr/lib/X11/%L/uid/%N/%U%S\fP
213
\fB/usr/lib/X11/%l/uid/%N/%U%S\fP
215
\fB/usr/lib/X11/uid/%N/%U%S\fP
217
\fB/usr/lib/X11/%L/uid/%U%S\fP
219
\fB/usr/lib/X11/%l/uid/%U%S\fP
221
\fB/usr/lib/X11/uid/%U%S\fP
223
\fB/usr/include/X11/uid/%U%S\fP
225
These paths are defaults that vendors may change\&.
226
For example, a vendor may use different directories for
227
\fB/usr/lib/X11\fP and \fB/usr/include/X11\fP\&.
229
The following substitutions are used in these paths:
231
The UID file string, from the \fIfile_names_list\fP argument\&.
233
The class name of the application\&.
235
The display\&'s language string\&.
236
This string is influenced by \fBXtSetLanguageProc\fP\&.
237
The default string is determined by
238
calling setlocale(\fBLC_ALL, NULL\fP)\&.
240
The language component of the display\&'s language string\&.
242
The suffix to the filename\&.
243
The entire path is first searched with a suffix of
246
no file is found, it is searched again with a NULL suffix\&.
249
This function returns one of the following status return constants:
253
.IP "\fBMrmSUCCESS\fP" 10
254
The function executed successfully\&.
255
.IP "\fBMrmNOT_FOUND\fP" 10
257
.IP "\fBMrmFAILURE\fP" 10
258
The function failed\&.
261
\fBMrmCloseHierarchy\fP(3)\&.
262
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:17