3 Copyright 1993, 1998 The Open Group
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 Except as contained in this notice, the name of The Open Group shall not be
22 used in advertising or otherwise to promote the sale, use or other dealings
23 in this Software without prior written authorization from The Open Group.
28 * Author: Ralph Mor, X Consortium
38 #define SmProtoMajor 1
39 #define SmProtoMinor 0
46 #define SmInteractStyleNone 0
47 #define SmInteractStyleErrors 1
48 #define SmInteractStyleAny 2
55 #define SmDialogError 0
56 #define SmDialogNormal 1
63 #define SmSaveGlobal 0
72 #define SmRestartIfRunning 0
73 #define SmRestartAnyway 1
74 #define SmRestartImmediately 2
75 #define SmRestartNever 3
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"
99 #define SmCARD8 "CARD8"
100 #define SmARRAY8 "ARRAY8"
101 #define SmLISTofARRAY8 "LISTofARRAY8"
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
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