Back to home page

EIC code displayed by LXR

 
 

    


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

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 _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     /* n    ARRAY8      previousId */
0042 } smRegisterClientMsg;
0043 
0044 typedef struct {
0045     CARD8   majorOpcode;
0046     CARD8   minorOpcode;
0047     CARD8   unused[2];
0048     CARD32  length;
0049     /* n    ARRAY8      clientId */
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     /* b    LISTofARRAY8    reasons */
0128 } smCloseConnectionMsg;
0129 
0130 typedef struct {
0131     CARD8   majorOpcode;
0132     CARD8   minorOpcode;
0133     CARD8   unused[2];
0134     CARD32  length;
0135     /* a    LISTofPROPERTY  properties */
0136 } smSetPropertiesMsg;
0137 
0138 typedef struct {
0139     CARD8   majorOpcode;
0140     CARD8   minorOpcode;
0141     CARD8   unused[2];
0142     CARD32  length;
0143     /* a    LISTofARRAY8    property names */
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     /* a    LISTofPROPERTY  properties */
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  * SIZEOF values.  These better be multiples of 8.
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 /* _SMPROTO_H_ */