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