dtpad: emit error on catopen() failure
[oweals/cde.git] / cde / programs / dtsession / SmProtocol.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: SmProtocol.h /main/7 1998/08/05 13:38:42 samborn $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  **
27  **   File:        SmProtocol.h
28  **
29  **   Project:     HP DT
30  **
31  **   Description
32  **   -----------
33  **   Variables and declarations needed for
34  **   Protocol Handling for the session manager
35  **
36  **
37  ****************************************************************************
38  ************************************<+>*************************************/
39 /*                                                               
40  * (c) Copyright 1996 Digital Equipment Corporation.
41  * (c) Copyright 1990, 1993, 1994, 1996 Hewlett-Packard Company        
42  * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.       
43  * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.                      
44  * (c) Copyright 1993, 1994, 1996 Novell, Inc.                                
45  * (c) Copyright 1996 FUJITSU LIMITED.
46  * (c) Copyright 1996 Hitachi.
47  */
48
49 #ifndef _smprotocol_h
50 #define _smprotocol_h
51  
52 /* 
53  *  #include statements 
54  */
55 #include <X11/Xlib.h>
56
57
58 /* 
59  *  #define statements 
60  */
61
62 /*
63  * Property types used by the session manager not defined elsewhere
64  */
65 #define _XA_WM_PROTOCOLS                "WM_PROTOCOLS"
66 #define _XA_WM_STATE                    "WM_STATE"
67 #define _XA_WM_SAVE_YOURSELF            "WM_SAVE_YOURSELF"
68
69
70
71 /* 
72  * typedef statements 
73  */
74
75 /*
76  *  External variables  
77  */
78
79 /*
80  * Atoms interned by the session manager in order to communicate with
81  * the other clients in the session
82  */
83 extern Atom             XaWmProtocols;
84 extern Atom             XaWmSaveYourself;
85 extern Atom             XaWmState;
86 extern Atom             XaWmDtHints;
87 extern Atom             XaSmSaveMode;
88 extern Atom             XaSmRestoreMode;
89 extern Atom             XaSmRestoreDir;
90 extern Atom             XaSmStartAckWindow;
91 extern Atom             XaSmStopAckWindow;
92 extern Atom             XaWmWindowAck;
93 extern Atom             XaWmExitSession;
94 extern Atom             XaWmLockDisplay;
95 extern Atom             XaWmReady;
96 extern Atom             XaSmWmProtocol;
97 extern Atom             XaVsmInfo;
98 extern Atom             XaDtSmStateInfo;
99 extern Atom             XaDtSmSaverInfo;
100 extern Atom             XaDtSmStmProtocol;
101 extern Atom             XaDtSmSaveToHome;
102 extern Atom             XaDtSmStateChange;
103 extern Atom             XaDtSmRestoreDefault;
104 extern Atom             XaDtSmLockChange;
105 extern Atom             XaDtSmScreenInfo;
106 extern Atom             XaDtSmAudioInfo;
107 extern Atom             XaDtSmKeyboardInfo;
108 extern Atom             XaDtSmFontInfo;
109 extern Atom             XaDtSmPointerInfo;
110 extern Atom             XaSmScreenSaveRet;
111 extern Atom             XaDtSmPreeditInfo;
112
113 /*  
114  *  External Interface  
115  */
116
117
118 extern void InitProtocol(void);
119
120
121 #endif /*_smprotocols_h*/
122 /* DON'T ADD ANYTHING AFTER THIS #endif */