d847ae5311aae2544a3dedd9ede8dbf59f0321ad
[oweals/cde.git] / cde / programs / dtsession / SmError.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23 /* $TOG: SmError.h /main/6 1998/10/26 17:20:54 mgreess $ */
24 /*                                                                      *
25  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
26  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
27  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
28  * (c) Copyright 1993, 1994 Novell, Inc.                                *
29  */
30 /************************************<+>*************************************
31  ****************************************************************************
32  **
33  **   File:        SmError.h
34  **
35  **   Project:     HP DT
36  **
37  **   Description
38  **   -----------
39  **   Variables and definitions needed for
40  **   Error Handling for the session manager
41  **
42  **
43  **  (c) Copyright Hewlett-Packard Company, 1990.  
44  **
45  **
46  **
47  ****************************************************************************
48  ************************************<+>*************************************/
49 #ifndef _smerror_h
50 #define _smerror_h
51  
52 /* 
53  *  #include statements 
54  */
55
56
57 /* 
58  *  #define statements 
59  */
60
61
62 /*
63  *  Error messages trapped by X window calls - These are never displayed
64  */
65 #define         BAD_ACCESS              "Attempt to access unavailable resource"
66 #define         BAD_ATOM                "Atom for argument is not a defined atom"
67 #define         BAD_DRAWABLE    "Drawable argument is invalid"
68 #define         BAD_MATCH               "Drawable is a invalid match for operation"
69 #define         BAD_VALUE               "Value in X call is invalid"
70 #define         BAD_WINDOW              "Window does not exist"
71 #define         DEFAULT_ERROR   "Non-fatal error from X server"
72
73
74 /* 
75  * typedef statements 
76  */
77
78 /*
79  * All NLS error messages
80  */
81 typedef struct _NlsStrings
82 {
83     char        *cantLockErrorString;
84     char        *trustedSystemErrorString;
85     char        *cantMallocErrorString;
86     char        *cantOpenFileString;
87     char        *cantForkClientString;
88     char        *cantExecClientString;
89     char        *cantCreateDirsString;
90 } NlsStrings;
91
92 /*
93  *  External variables  
94  */
95 extern NlsStrings       smNLS;
96
97
98 /*  
99  *  External Interface  
100  */
101
102 extern void InitErrorHandler( void ) ;
103 extern void PrintError( DtSeverity , char *) ;
104 extern void PrintErrnoError( DtSeverity , char *) ;
105 #ifndef  NO_MESSAGE_CATALOG
106 char * GetMessage( int, int, char * );
107 #endif
108
109
110 #endif /*_smerror_h*/
111 /* DON'T ADD ANYTHING AFTER THIS #endif */