Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:23

0001 /*
0002 
0003 Copyright 1993, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 */
0026 
0027 /*
0028  * Author: Ralph Mor, X Consortium
0029  */
0030 
0031 #ifndef _SM_H_
0032 #define _SM_H_
0033 
0034 /*
0035  * Protocol Version
0036  */
0037 
0038 #define SmProtoMajor    1
0039 #define SmProtoMinor    0
0040 
0041 
0042 /*
0043  * Interact Style
0044  */
0045 
0046 #define SmInteractStyleNone 0
0047 #define SmInteractStyleErrors   1
0048 #define SmInteractStyleAny  2
0049 
0050 
0051 /*
0052  * Dialog Type
0053  */
0054 
0055 #define SmDialogError       0
0056 #define SmDialogNormal      1
0057 
0058 
0059 /*
0060  * Save Type
0061  */
0062 
0063 #define SmSaveGlobal    0
0064 #define SmSaveLocal 1
0065 #define SmSaveBoth  2
0066 
0067 
0068 /*
0069  * Restart Style Hints
0070  */
0071 
0072 #define SmRestartIfRunning  0
0073 #define SmRestartAnyway     1
0074 #define SmRestartImmediately    2
0075 #define SmRestartNever      3
0076 
0077 
0078 /*
0079  * Property names
0080  */
0081 
0082 #define SmCloneCommand      "CloneCommand"
0083 #define SmCurrentDirectory  "CurrentDirectory"
0084 #define SmDiscardCommand    "DiscardCommand"
0085 #define SmEnvironment       "Environment"
0086 #define SmProcessID     "ProcessID"
0087 #define SmProgram       "Program"
0088 #define SmRestartCommand    "RestartCommand"
0089 #define SmResignCommand     "ResignCommand"
0090 #define SmRestartStyleHint  "RestartStyleHint"
0091 #define SmShutdownCommand   "ShutdownCommand"
0092 #define SmUserID        "UserID"
0093 
0094 
0095 /*
0096  * Property types
0097  */
0098 
0099 #define SmCARD8         "CARD8"
0100 #define SmARRAY8        "ARRAY8"
0101 #define SmLISTofARRAY8      "LISTofARRAY8"
0102 
0103 
0104 /*
0105  * SM minor opcodes
0106  */
0107 
0108 #define SM_Error            0
0109 #define SM_RegisterClient       1
0110 #define SM_RegisterClientReply      2
0111 #define SM_SaveYourself         3
0112 #define SM_SaveYourselfRequest      4
0113 #define SM_InteractRequest      5
0114 #define SM_Interact             6
0115 #define SM_InteractDone         7
0116 #define SM_SaveYourselfDone         8
0117 #define SM_Die              9
0118 #define SM_ShutdownCancelled        10
0119 #define SM_CloseConnection      11
0120 #define SM_SetProperties        12
0121 #define SM_DeleteProperties         13
0122 #define SM_GetProperties        14
0123 #define SM_PropertiesReply      15
0124 #define SM_SaveYourselfPhase2Request    16
0125 #define SM_SaveYourselfPhase2       17
0126 #define SM_SaveComplete         18
0127 
0128 #endif /* _SM_H_ */