ICEproto.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _ICEPROTO_H_
00027 #define _ICEPROTO_H_
00028
00029 #ifndef QWS
00030 #include <X11/Xmd.h>
00031 #else
00032 #if defined(__alpha__) || defined(__ia64__) || defined(__s390x__)
00033 typedef unsigned int CARD32;
00034 #else
00035 typedef unsigned long CARD32;
00036 #endif
00037 typedef unsigned short CARD16;
00038 typedef unsigned char CARD8;
00039 #define B32 :32
00040 #define B16 :16
00041 #include <unistd.h>
00042 #endif
00043
00044 typedef struct {
00045 CARD8 majorOpcode;
00046 CARD8 minorOpcode;
00047 CARD8 data[2];
00048 CARD32 length B32;
00049 } iceMsg;
00050
00051 typedef struct {
00052 CARD8 majorOpcode;
00053 CARD8 minorOpcode;
00054 CARD16 errorClass B16;
00055 CARD32 length B32;
00056 CARD8 offendingMinorOpcode;
00057 CARD8 severity;
00058 CARD16 unused B16;
00059 CARD32 offendingSequenceNum B32;
00060
00061
00062 } iceErrorMsg;
00063
00064 typedef struct {
00065 CARD8 majorOpcode;
00066 CARD8 minorOpcode;
00067 CARD8 byteOrder;
00068 CARD8 unused;
00069 CARD32 length B32;
00070 } iceByteOrderMsg;
00071
00072 typedef struct {
00073 CARD8 majorOpcode;
00074 CARD8 minorOpcode;
00075 CARD8 versionCount;
00076 CARD8 authCount;
00077 CARD32 length B32;
00078 CARD8 mustAuthenticate;
00079 CARD8 unused[7];
00080
00081
00082
00083
00084
00085 } iceConnectionSetupMsg;
00086
00087 typedef struct {
00088 CARD8 majorOpcode;
00089 CARD8 minorOpcode;
00090 CARD8 authIndex;
00091 CARD8 unused1;
00092 CARD32 length B32;
00093 CARD16 authDataLength B16;
00094 CARD8 unused2[6];
00095
00096
00097 } iceAuthRequiredMsg;
00098
00099 typedef struct {
00100 CARD8 majorOpcode;
00101 CARD8 minorOpcode;
00102 CARD8 unused1[2];
00103 CARD32 length B32;
00104 CARD16 authDataLength B16;
00105 CARD8 unused2[6];
00106
00107
00108 } iceAuthReplyMsg;
00109
00110 typedef struct {
00111 CARD8 majorOpcode;
00112 CARD8 minorOpcode;
00113 CARD8 unused1[2];
00114 CARD32 length B32;
00115 CARD16 authDataLength B16;
00116 CARD8 unused2[6];
00117
00118
00119 } iceAuthNextPhaseMsg;
00120
00121 typedef struct {
00122 CARD8 majorOpcode;
00123 CARD8 minorOpcode;
00124 CARD8 versionIndex;
00125 CARD8 unused;
00126 CARD32 length B32;
00127
00128
00129
00130 } iceConnectionReplyMsg;
00131
00132 typedef struct {
00133 CARD8 majorOpcode;
00134 CARD8 minorOpcode;
00135 CARD8 protocolOpcode;
00136 CARD8 mustAuthenticate;
00137 CARD32 length B32;
00138 CARD8 versionCount;
00139 CARD8 authCount;
00140 CARD8 unused[6];
00141
00142
00143
00144
00145
00146
00147 } iceProtocolSetupMsg;
00148
00149 typedef struct {
00150 CARD8 majorOpcode;
00151 CARD8 minorOpcode;
00152 CARD8 versionIndex;
00153 CARD8 protocolOpcode;
00154 CARD32 length B32;
00155
00156
00157
00158 } iceProtocolReplyMsg;
00159
00160 typedef iceMsg icePingMsg;
00161 typedef iceMsg icePingReplyMsg;
00162 typedef iceMsg iceWantToCloseMsg;
00163 typedef iceMsg iceNoCloseMsg;
00164
00165
00166
00167
00168
00169
00170 #define sz_iceMsg 8
00171 #define sz_iceErrorMsg 16
00172 #define sz_iceByteOrderMsg 8
00173 #define sz_iceConnectionSetupMsg 16
00174 #define sz_iceAuthRequiredMsg 16
00175 #define sz_iceAuthReplyMsg 16
00176 #define sz_iceAuthNextPhaseMsg 16
00177 #define sz_iceConnectionReplyMsg 8
00178 #define sz_iceProtocolSetupMsg 16
00179 #define sz_iceProtocolReplyMsg 8
00180 #define sz_icePingMsg 8
00181 #define sz_icePingReplyMsg 8
00182 #define sz_iceWantToCloseMsg 8
00183 #define sz_iceNoCloseMsg 8
00184
00185 #endif
This file is part of the documentation for kdelibs Version 3.1.0.