2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $TOG: UserMsg.h /main/6 1998/04/09 17:50:49 mgreess $ */
25 * (c) Copyright 1995 Digital Equipment Corporation.
26 * (c) Copyright 1988, 1993, 1994, 1995 Hewlett-Packard Company
27 * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
28 * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
29 * (c) Copyright 1993, 1994, 1995 Novell, Inc.
30 * (c) Copyright 1995 FUJITSU LIMITED.
31 * (c) Copyright 1995 Hitachi.
35 ********************************************************************************
38 * Description: Header for error logging routines
39 * Status: Experimental (Do Not Distribute)
41 ********************************************************************************
47 #include <X11/Intrinsic.h>
55 #include <bms/XeUserMsg.h>
67 extern void _DtSimpleError(
73 extern void _DtSimpleErrnoError(
80 #define DtProgName XeProgName
82 extern int _DtPrintDefaultError(
87 #define _DTPRINTDEFAULTERROR_BUFSIZE 1024
89 extern int _DtPrintDefaultErrorSafe(
98 Supply the standard Xerror output to a buffer (instead of stederr)
99 so client can do what it wants with it. Also don't exit. Allow
100 client to decide what to do.
102 An appropriate thing to do would be to pass the buffer to
103 DtSimpleError() and return. ie. In your error callback:
108 ret = _DtPrintDefaultError (style.display, rep, errmsg);
109 DtSimpleError(DtWarning, "><An X Error has occurred...continuing" ,
116 int _DtPrintDefaultError (dpy, event, msg)
118 Display *dpy; The application's display structure.
120 XErrorEvent *event; Error event returned to error callback.
122 char *msg; Buffer returning the formatted text of
123 the error message. It won't be more than
128 #endif /* _usermsg_h */
129 /* DON'T ADD STUFF AFTER THIS #endif */