File indexing completed on 2025-01-18 10:14:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 #ifndef _SMPROTO_H_
0032 #define _SMPROTO_H_
0033
0034 #include <X11/Xmd.h>
0035
0036 typedef struct {
0037 CARD8 majorOpcode;
0038 CARD8 minorOpcode;
0039 CARD8 unused[2];
0040 CARD32 length;
0041
0042 } smRegisterClientMsg;
0043
0044 typedef struct {
0045 CARD8 majorOpcode;
0046 CARD8 minorOpcode;
0047 CARD8 unused[2];
0048 CARD32 length;
0049
0050 } smRegisterClientReplyMsg;
0051
0052 typedef struct {
0053 CARD8 majorOpcode;
0054 CARD8 minorOpcode;
0055 CARD8 unused1[2];
0056 CARD32 length;
0057 CARD8 saveType;
0058 CARD8 shutdown;
0059 CARD8 interactStyle;
0060 CARD8 fast;
0061 CARD8 unused2[4];
0062 } smSaveYourselfMsg;
0063
0064 typedef struct {
0065 CARD8 majorOpcode;
0066 CARD8 minorOpcode;
0067 CARD8 unused1[2];
0068 CARD32 length;
0069 CARD8 saveType;
0070 CARD8 shutdown;
0071 CARD8 interactStyle;
0072 CARD8 fast;
0073 CARD8 global;
0074 CARD8 unused2[3];
0075 } smSaveYourselfRequestMsg;
0076
0077 typedef struct {
0078 CARD8 majorOpcode;
0079 CARD8 minorOpcode;
0080 CARD8 dialogType;
0081 CARD8 unused;
0082 CARD32 length;
0083 } smInteractRequestMsg;
0084
0085 typedef struct {
0086 CARD8 majorOpcode;
0087 CARD8 minorOpcode;
0088 CARD8 unused[2];
0089 CARD32 length;
0090 } smInteractMsg;
0091
0092 typedef struct {
0093 CARD8 majorOpcode;
0094 CARD8 minorOpcode;
0095 CARD8 cancelShutdown;
0096 CARD8 unused;
0097 CARD32 length;
0098 } smInteractDoneMsg;
0099
0100 typedef struct {
0101 CARD8 majorOpcode;
0102 CARD8 minorOpcode;
0103 CARD8 success;
0104 CARD8 unused;
0105 CARD32 length;
0106 } smSaveYourselfDoneMsg;
0107
0108 typedef struct {
0109 CARD8 majorOpcode;
0110 CARD8 minorOpcode;
0111 CARD8 unused[2];
0112 CARD32 length;
0113 } smDieMsg;
0114
0115 typedef struct {
0116 CARD8 majorOpcode;
0117 CARD8 minorOpcode;
0118 CARD8 unused[2];
0119 CARD32 length;
0120 } smShutdownCancelledMsg;
0121
0122 typedef struct {
0123 CARD8 majorOpcode;
0124 CARD8 minorOpcode;
0125 CARD8 unused[2];
0126 CARD32 length;
0127
0128 } smCloseConnectionMsg;
0129
0130 typedef struct {
0131 CARD8 majorOpcode;
0132 CARD8 minorOpcode;
0133 CARD8 unused[2];
0134 CARD32 length;
0135
0136 } smSetPropertiesMsg;
0137
0138 typedef struct {
0139 CARD8 majorOpcode;
0140 CARD8 minorOpcode;
0141 CARD8 unused[2];
0142 CARD32 length;
0143
0144 } smDeletePropertiesMsg;
0145
0146 typedef struct {
0147 CARD8 majorOpcode;
0148 CARD8 minorOpcode;
0149 CARD8 unused[2];
0150 CARD32 length;
0151 } smGetPropertiesMsg;
0152
0153 typedef struct {
0154 CARD8 majorOpcode;
0155 CARD8 minorOpcode;
0156 CARD8 unused[2];
0157 CARD32 length;
0158
0159 } smPropertiesReplyMsg;
0160
0161 typedef struct {
0162 CARD8 majorOpcode;
0163 CARD8 minorOpcode;
0164 CARD8 unused[2];
0165 CARD32 length;
0166 } smSaveYourselfPhase2RequestMsg;
0167
0168 typedef struct {
0169 CARD8 majorOpcode;
0170 CARD8 minorOpcode;
0171 CARD8 unused[2];
0172 CARD32 length;
0173 } smSaveYourselfPhase2Msg;
0174
0175 typedef struct {
0176 CARD8 majorOpcode;
0177 CARD8 minorOpcode;
0178 CARD8 unused[2];
0179 CARD32 length;
0180 } smSaveCompleteMsg;
0181
0182
0183
0184
0185
0186
0187 #define sz_smRegisterClientMsg 8
0188 #define sz_smRegisterClientReplyMsg 8
0189 #define sz_smSaveYourselfMsg 16
0190 #define sz_smSaveYourselfRequestMsg 16
0191 #define sz_smInteractRequestMsg 8
0192 #define sz_smInteractMsg 8
0193 #define sz_smInteractDoneMsg 8
0194 #define sz_smSaveYourselfDoneMsg 8
0195 #define sz_smDieMsg 8
0196 #define sz_smShutdownCancelledMsg 8
0197 #define sz_smCloseConnectionMsg 8
0198 #define sz_smSetPropertiesMsg 8
0199 #define sz_smDeletePropertiesMsg 8
0200 #define sz_smGetPropertiesMsg 8
0201 #define sz_smPropertiesReplyMsg 8
0202 #define sz_smSaveYourselfPhase2RequestMsg 8
0203 #define sz_smSaveYourselfPhase2Msg 8
0204 #define sz_smSaveCompleteMsg 8
0205
0206 #endif