1 .\" Copyright 1993 X Consortium
3 .\" Permission is hereby granted, free of charge, to any person obtaining
4 .\" a copy of this software and associated documentation files (the
5 .\" "Software"), to deal in the Software without restriction, including
6 .\" without limitation the rights to use, copy, modify, merge, publish,
7 .\" distribute, sublicense, and/or sell copies of the Software, and to
8 .\" permit persons to whom the Software is furnished to do so, subject to
9 .\" the following conditions:
11 .\" The above copyright notice and this permission notice shall be
12 .\" included in all copies or substantial portions of the Software.
14 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 .\" OTHER DEALINGS IN THE SOFTWARE.
22 .\" Except as contained in this notice, the name of the X Consortium shall
23 .\" not be used in advertising or otherwise to promote the sale, use or
24 .\" other dealings in this Software without prior written authorization
25 .\" from the X Consortium.
28 .ds xT X Toolkit Intrinsics \- C Language Interface
30 .ds xW X Toolkit Athena Widgets \- C Language Interface
31 .ds xL Xlib \- C Language X Interface
32 .ds xC Inter-Client Communication Conventions Manual
35 .hw XtApp-Get-Error-Database XtApp-Get-Error-Database-Text wid-get
42 .\".if \\n(VS>=40 .vs \\n(VSu
43 .\".if \\n(VS<=39 .vs \\n(VSp
54 .de IN \" send an index entry to the stderr
57 .ie t \\$1\fB\^\\$2\^\fR\\$3
58 .el \\$1\fI\^\\$2\^\fP\\$3
61 .ie t \fB\^\\$1\^\fR\\$2
62 .el \fI\^\\$1\^\fP\\$2
65 .TH XtAppGetErrorDatabase __libmansuffix__ __xorgversion__ "XT FUNCTIONS"
67 XtAppGetErrorDatabase, XtAppGetErrorDatabaseText \- obtain error database
70 XrmDatabase *XtAppGetErrorDatabase(\^XtAppContext \fIapp_context\fP);
72 void XtAppGetErrorDatabaseText(XtAppContext \fIapp_context\fP, char
73 *\fIname\fP, char *\fItype\fP, char *\fIclass\fP, char *\fIdefault\fP, char
74 *\fIbuffer_return\fP, int \fInbytes\fP, XrmDatabase \fIdatabase\fP);
76 .IP \fIapp_context\fP 1i
77 Specifies the application context.
78 .IP \fIbuffer_return\fP 1i
79 Specifies the buffer into which the error message is to be returned.
80 .ds Cl \ of the error message
82 Specifies the resource class\*(Cl.
84 Specifies the name of the alternative database that is to be used
85 or NULL if the application's database is to be used.
87 Specifies the default message to use\*(Dm.
92 Specifies the name and type that are concatenated to form the resource name
95 Specifies the size of the buffer in bytes.
98 .ZN XtAppGetErrorDatabase
99 function returns the address of the error database.
100 The \*(xI do a lazy binding of the error database and do not merge in the
101 database file until the first call to
102 .ZN XtAppGetErrorDatbaseText .
105 .ZN XtAppGetErrorDatabaseText
106 returns the appropriate message from the error database
107 or returns the specified default message if one is not found in the
110 XtAppError(__libmansuffix__),
111 XtAppErrorMsg(__libmansuffix__)