1/*
2
3Copyright 1993, 1998 The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25*/
26
27/*
28 * Author: Ralph Mor, X Consortium
29 */
30
31#ifndef _SM_H_
32#define _SM_H_
33
34/*
35 * Protocol Version
36 */
37
38#define SmProtoMajor 1
39#define SmProtoMinor 0
40
41
42/*
43 * Interact Style
44 */
45
46#define SmInteractStyleNone 0
47#define SmInteractStyleErrors 1
48#define SmInteractStyleAny 2
49
50
51/*
52 * Dialog Type
53 */
54
55#define SmDialogError 0
56#define SmDialogNormal 1
57
58
59/*
60 * Save Type
61 */
62
63#define SmSaveGlobal 0
64#define SmSaveLocal 1
65#define SmSaveBoth 2
66
67
68/*
69 * Restart Style Hints
70 */
71
72#define SmRestartIfRunning 0
73#define SmRestartAnyway 1
74#define SmRestartImmediately 2
75#define SmRestartNever 3
76
77
78/*
79 * Property names
80 */
81
82#define SmCloneCommand "CloneCommand"
83#define SmCurrentDirectory "CurrentDirectory"
84#define SmDiscardCommand "DiscardCommand"
85#define SmEnvironment "Environment"
86#define SmProcessID "ProcessID"
87#define SmProgram "Program"
88#define SmRestartCommand "RestartCommand"
89#define SmResignCommand "ResignCommand"
90#define SmRestartStyleHint "RestartStyleHint"
91#define SmShutdownCommand "ShutdownCommand"
92#define SmUserID "UserID"
93
94
95/*
96 * Property types
97 */
98
99#define SmCARD8 "CARD8"
100#define SmARRAY8 "ARRAY8"
101#define SmLISTofARRAY8 "LISTofARRAY8"
102
103
104/*
105 * SM minor opcodes
106 */
107
108#define SM_Error 0
109#define SM_RegisterClient 1
110#define SM_RegisterClientReply 2
111#define SM_SaveYourself 3
112#define SM_SaveYourselfRequest 4
113#define SM_InteractRequest 5
114#define SM_Interact 6
115#define SM_InteractDone 7
116#define SM_SaveYourselfDone 8
117#define SM_Die 9
118#define SM_ShutdownCancelled 10
119#define SM_CloseConnection 11
120#define SM_SetProperties 12
121#define SM_DeleteProperties 13
122#define SM_GetProperties 14
123#define SM_PropertiesReply 15
124#define SM_SaveYourselfPhase2Request 16
125#define SM_SaveYourselfPhase2 17
126#define SM_SaveComplete 18
127
128#endif /* _SM_H_ */
129

source code of include/X11/SM/SM.h