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