Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/X11/ICE
File: ICElib.h
/******************************************************************************
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
Copyright 1993, 1998 The Open Group
[3] Fix | Delete
[4] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[5] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[6] Fix | Delete
the above copyright notice appear in all copies and that both that
[7] Fix | Delete
copyright notice and this permission notice appear in supporting
[8] Fix | Delete
documentation.
[9] Fix | Delete
[10] Fix | Delete
The above copyright notice and this permission notice shall be included in
[11] Fix | Delete
all copies or substantial portions of the Software.
[12] Fix | Delete
[13] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[14] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[15] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[16] Fix | Delete
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[17] Fix | Delete
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[18] Fix | Delete
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[19] Fix | Delete
[20] Fix | Delete
Except as contained in this notice, the name of The Open Group shall not be
[21] Fix | Delete
used in advertising or otherwise to promote the sale, use or other dealings
[22] Fix | Delete
in this Software without prior written authorization from The Open Group.
[23] Fix | Delete
[24] Fix | Delete
Author: Ralph Mor, X Consortium
[25] Fix | Delete
******************************************************************************/
[26] Fix | Delete
[27] Fix | Delete
#ifndef _ICELIB_H_
[28] Fix | Delete
#define _ICELIB_H_
[29] Fix | Delete
[30] Fix | Delete
#include <X11/ICE/ICE.h>
[31] Fix | Delete
#include <X11/Xfuncproto.h>
[32] Fix | Delete
[33] Fix | Delete
#define Bool int
[34] Fix | Delete
#define Status int
[35] Fix | Delete
#define True 1
[36] Fix | Delete
#define False 0
[37] Fix | Delete
[38] Fix | Delete
typedef void *IcePointer;
[39] Fix | Delete
[40] Fix | Delete
typedef enum {
[41] Fix | Delete
IcePoAuthHaveReply,
[42] Fix | Delete
IcePoAuthRejected,
[43] Fix | Delete
IcePoAuthFailed,
[44] Fix | Delete
IcePoAuthDoneCleanup
[45] Fix | Delete
} IcePoAuthStatus;
[46] Fix | Delete
[47] Fix | Delete
typedef enum {
[48] Fix | Delete
IcePaAuthContinue,
[49] Fix | Delete
IcePaAuthAccepted,
[50] Fix | Delete
IcePaAuthRejected,
[51] Fix | Delete
IcePaAuthFailed
[52] Fix | Delete
} IcePaAuthStatus;
[53] Fix | Delete
[54] Fix | Delete
typedef enum {
[55] Fix | Delete
IceConnectPending,
[56] Fix | Delete
IceConnectAccepted,
[57] Fix | Delete
IceConnectRejected,
[58] Fix | Delete
IceConnectIOError
[59] Fix | Delete
} IceConnectStatus;
[60] Fix | Delete
[61] Fix | Delete
typedef enum {
[62] Fix | Delete
IceProtocolSetupSuccess,
[63] Fix | Delete
IceProtocolSetupFailure,
[64] Fix | Delete
IceProtocolSetupIOError,
[65] Fix | Delete
IceProtocolAlreadyActive
[66] Fix | Delete
} IceProtocolSetupStatus;
[67] Fix | Delete
[68] Fix | Delete
typedef enum {
[69] Fix | Delete
IceAcceptSuccess,
[70] Fix | Delete
IceAcceptFailure,
[71] Fix | Delete
IceAcceptBadMalloc
[72] Fix | Delete
} IceAcceptStatus;
[73] Fix | Delete
[74] Fix | Delete
typedef enum {
[75] Fix | Delete
IceClosedNow,
[76] Fix | Delete
IceClosedASAP,
[77] Fix | Delete
IceConnectionInUse,
[78] Fix | Delete
IceStartedShutdownNegotiation
[79] Fix | Delete
} IceCloseStatus;
[80] Fix | Delete
[81] Fix | Delete
typedef enum {
[82] Fix | Delete
IceProcessMessagesSuccess,
[83] Fix | Delete
IceProcessMessagesIOError,
[84] Fix | Delete
IceProcessMessagesConnectionClosed
[85] Fix | Delete
} IceProcessMessagesStatus;
[86] Fix | Delete
[87] Fix | Delete
typedef struct {
[88] Fix | Delete
unsigned long sequence_of_request;
[89] Fix | Delete
int major_opcode_of_request;
[90] Fix | Delete
int minor_opcode_of_request;
[91] Fix | Delete
IcePointer reply;
[92] Fix | Delete
} IceReplyWaitInfo;
[93] Fix | Delete
[94] Fix | Delete
typedef struct _IceConn *IceConn;
[95] Fix | Delete
typedef struct _IceListenObj *IceListenObj;
[96] Fix | Delete
[97] Fix | Delete
typedef void (*IceWatchProc) (
[98] Fix | Delete
IceConn /* iceConn */,
[99] Fix | Delete
IcePointer /* clientData */,
[100] Fix | Delete
Bool /* opening */,
[101] Fix | Delete
IcePointer * /* watchData */
[102] Fix | Delete
);
[103] Fix | Delete
[104] Fix | Delete
typedef void (*IcePoProcessMsgProc) (
[105] Fix | Delete
IceConn /* iceConn */,
[106] Fix | Delete
IcePointer /* clientData */,
[107] Fix | Delete
int /* opcode */,
[108] Fix | Delete
unsigned long /* length */,
[109] Fix | Delete
Bool /* swap */,
[110] Fix | Delete
IceReplyWaitInfo * /* replyWait */,
[111] Fix | Delete
Bool * /* replyReadyRet */
[112] Fix | Delete
);
[113] Fix | Delete
[114] Fix | Delete
typedef void (*IcePaProcessMsgProc) (
[115] Fix | Delete
IceConn /* iceConn */,
[116] Fix | Delete
IcePointer /* clientData */,
[117] Fix | Delete
int /* opcode */,
[118] Fix | Delete
unsigned long /* length */,
[119] Fix | Delete
Bool /* swap */
[120] Fix | Delete
);
[121] Fix | Delete
[122] Fix | Delete
typedef struct {
[123] Fix | Delete
int major_version;
[124] Fix | Delete
int minor_version;
[125] Fix | Delete
IcePoProcessMsgProc process_msg_proc;
[126] Fix | Delete
} IcePoVersionRec;
[127] Fix | Delete
[128] Fix | Delete
typedef struct {
[129] Fix | Delete
int major_version;
[130] Fix | Delete
int minor_version;
[131] Fix | Delete
IcePaProcessMsgProc process_msg_proc;
[132] Fix | Delete
} IcePaVersionRec;
[133] Fix | Delete
[134] Fix | Delete
typedef IcePoAuthStatus (*IcePoAuthProc) (
[135] Fix | Delete
IceConn /* iceConn */,
[136] Fix | Delete
IcePointer * /* authStatePtr */,
[137] Fix | Delete
Bool /* cleanUp */,
[138] Fix | Delete
Bool /* swap */,
[139] Fix | Delete
int /* authDataLen */,
[140] Fix | Delete
IcePointer /* authData */,
[141] Fix | Delete
int * /* replyDataLenRet */,
[142] Fix | Delete
IcePointer * /* replyDataRet */,
[143] Fix | Delete
char ** /* errorStringRet */
[144] Fix | Delete
);
[145] Fix | Delete
[146] Fix | Delete
typedef IcePaAuthStatus (*IcePaAuthProc) (
[147] Fix | Delete
IceConn /* iceConn */,
[148] Fix | Delete
IcePointer * /* authStatePtr */,
[149] Fix | Delete
Bool /* swap */,
[150] Fix | Delete
int /* authDataLen */,
[151] Fix | Delete
IcePointer /* authData */,
[152] Fix | Delete
int * /* replyDataLenRet */,
[153] Fix | Delete
IcePointer * /* replyDataRet */,
[154] Fix | Delete
char ** /* errorStringRet */
[155] Fix | Delete
);
[156] Fix | Delete
[157] Fix | Delete
typedef Bool (*IceHostBasedAuthProc) (
[158] Fix | Delete
char * /* hostName */
[159] Fix | Delete
);
[160] Fix | Delete
[161] Fix | Delete
typedef Status (*IceProtocolSetupProc) (
[162] Fix | Delete
IceConn /* iceConn */,
[163] Fix | Delete
int /* majorVersion */,
[164] Fix | Delete
int /* minorVersion */,
[165] Fix | Delete
char * /* vendor */,
[166] Fix | Delete
char * /* release */,
[167] Fix | Delete
IcePointer * /* clientDataRet */,
[168] Fix | Delete
char ** /* failureReasonRet */
[169] Fix | Delete
);
[170] Fix | Delete
[171] Fix | Delete
typedef void (*IceProtocolActivateProc) (
[172] Fix | Delete
IceConn /* iceConn */,
[173] Fix | Delete
IcePointer /* clientData */
[174] Fix | Delete
);
[175] Fix | Delete
[176] Fix | Delete
typedef void (*IceIOErrorProc) (
[177] Fix | Delete
IceConn /* iceConn */
[178] Fix | Delete
);
[179] Fix | Delete
[180] Fix | Delete
typedef void (*IcePingReplyProc) (
[181] Fix | Delete
IceConn /* iceConn */,
[182] Fix | Delete
IcePointer /* clientData */
[183] Fix | Delete
);
[184] Fix | Delete
[185] Fix | Delete
typedef void (*IceErrorHandler) (
[186] Fix | Delete
IceConn /* iceConn */,
[187] Fix | Delete
Bool /* swap */,
[188] Fix | Delete
int /* offendingMinorOpcode */,
[189] Fix | Delete
unsigned long /* offendingSequence */,
[190] Fix | Delete
int /* errorClass */,
[191] Fix | Delete
int /* severity */,
[192] Fix | Delete
IcePointer /* values */
[193] Fix | Delete
);
[194] Fix | Delete
[195] Fix | Delete
typedef void (*IceIOErrorHandler) (
[196] Fix | Delete
IceConn /* iceConn */
[197] Fix | Delete
);
[198] Fix | Delete
[199] Fix | Delete
[200] Fix | Delete
/*
[201] Fix | Delete
* Function prototypes
[202] Fix | Delete
*/
[203] Fix | Delete
[204] Fix | Delete
_XFUNCPROTOBEGIN
[205] Fix | Delete
[206] Fix | Delete
extern int IceRegisterForProtocolSetup (
[207] Fix | Delete
const char * /* protocolName */,
[208] Fix | Delete
const char * /* vendor */,
[209] Fix | Delete
const char * /* release */,
[210] Fix | Delete
int /* versionCount */,
[211] Fix | Delete
IcePoVersionRec * /* versionRecs */,
[212] Fix | Delete
int /* authCount */,
[213] Fix | Delete
const char ** /* authNames */,
[214] Fix | Delete
IcePoAuthProc * /* authProcs */,
[215] Fix | Delete
IceIOErrorProc /* IOErrorProc */
[216] Fix | Delete
);
[217] Fix | Delete
[218] Fix | Delete
extern int IceRegisterForProtocolReply (
[219] Fix | Delete
const char * /* protocolName */,
[220] Fix | Delete
const char * /* vendor */,
[221] Fix | Delete
const char * /* release */,
[222] Fix | Delete
int /* versionCount */,
[223] Fix | Delete
IcePaVersionRec * /* versionRecs */,
[224] Fix | Delete
int /* authCount */,
[225] Fix | Delete
const char ** /* authNames */,
[226] Fix | Delete
IcePaAuthProc * /* authProcs */,
[227] Fix | Delete
IceHostBasedAuthProc /* hostBasedAuthProc */,
[228] Fix | Delete
IceProtocolSetupProc /* protocolSetupProc */,
[229] Fix | Delete
IceProtocolActivateProc /* protocolActivateProc */,
[230] Fix | Delete
IceIOErrorProc /* IOErrorProc */
[231] Fix | Delete
);
[232] Fix | Delete
[233] Fix | Delete
extern IceConn IceOpenConnection (
[234] Fix | Delete
char * /* networkIdsList */,
[235] Fix | Delete
IcePointer /* context */,
[236] Fix | Delete
Bool /* mustAuthenticate */,
[237] Fix | Delete
int /* majorOpcodeCheck */,
[238] Fix | Delete
int /* errorLength */,
[239] Fix | Delete
char * /* errorStringRet */
[240] Fix | Delete
);
[241] Fix | Delete
[242] Fix | Delete
extern IcePointer IceGetConnectionContext (
[243] Fix | Delete
IceConn /* iceConn */
[244] Fix | Delete
);
[245] Fix | Delete
[246] Fix | Delete
extern Status IceListenForConnections (
[247] Fix | Delete
int * /* countRet */,
[248] Fix | Delete
IceListenObj ** /* listenObjsRet */,
[249] Fix | Delete
int /* errorLength */,
[250] Fix | Delete
char * /* errorStringRet */
[251] Fix | Delete
);
[252] Fix | Delete
[253] Fix | Delete
extern Status IceListenForWellKnownConnections (
[254] Fix | Delete
char * /* port */,
[255] Fix | Delete
int * /* countRet */,
[256] Fix | Delete
IceListenObj ** /* listenObjsRet */,
[257] Fix | Delete
int /* errorLength */,
[258] Fix | Delete
char * /* errorStringRet */
[259] Fix | Delete
);
[260] Fix | Delete
[261] Fix | Delete
extern int IceGetListenConnectionNumber (
[262] Fix | Delete
IceListenObj /* listenObj */
[263] Fix | Delete
);
[264] Fix | Delete
[265] Fix | Delete
extern char *IceGetListenConnectionString (
[266] Fix | Delete
IceListenObj /* listenObj */
[267] Fix | Delete
);
[268] Fix | Delete
[269] Fix | Delete
extern char *IceComposeNetworkIdList (
[270] Fix | Delete
int /* count */,
[271] Fix | Delete
IceListenObj * /* listenObjs */
[272] Fix | Delete
);
[273] Fix | Delete
[274] Fix | Delete
extern void IceFreeListenObjs (
[275] Fix | Delete
int /* count */,
[276] Fix | Delete
IceListenObj * /* listenObjs */
[277] Fix | Delete
);
[278] Fix | Delete
[279] Fix | Delete
extern void IceSetHostBasedAuthProc (
[280] Fix | Delete
IceListenObj /* listenObj */,
[281] Fix | Delete
IceHostBasedAuthProc /* hostBasedAuthProc */
[282] Fix | Delete
);
[283] Fix | Delete
[284] Fix | Delete
extern IceConn IceAcceptConnection (
[285] Fix | Delete
IceListenObj /* listenObj */,
[286] Fix | Delete
IceAcceptStatus * /* statusRet */
[287] Fix | Delete
);
[288] Fix | Delete
[289] Fix | Delete
extern void IceSetShutdownNegotiation (
[290] Fix | Delete
IceConn /* iceConn */,
[291] Fix | Delete
Bool /* negotiate */
[292] Fix | Delete
);
[293] Fix | Delete
[294] Fix | Delete
extern Bool IceCheckShutdownNegotiation (
[295] Fix | Delete
IceConn /* iceConn */
[296] Fix | Delete
);
[297] Fix | Delete
[298] Fix | Delete
extern IceCloseStatus IceCloseConnection (
[299] Fix | Delete
IceConn /* iceConn */
[300] Fix | Delete
);
[301] Fix | Delete
[302] Fix | Delete
extern Status IceAddConnectionWatch (
[303] Fix | Delete
IceWatchProc /* watchProc */,
[304] Fix | Delete
IcePointer /* clientData */
[305] Fix | Delete
);
[306] Fix | Delete
[307] Fix | Delete
extern void IceRemoveConnectionWatch (
[308] Fix | Delete
IceWatchProc /* watchProc */,
[309] Fix | Delete
IcePointer /* clientData */
[310] Fix | Delete
);
[311] Fix | Delete
[312] Fix | Delete
extern IceProtocolSetupStatus IceProtocolSetup (
[313] Fix | Delete
IceConn /* iceConn */,
[314] Fix | Delete
int /* myOpcode */,
[315] Fix | Delete
IcePointer /* clientData */,
[316] Fix | Delete
Bool /* mustAuthenticate */,
[317] Fix | Delete
int * /* majorVersionRet */,
[318] Fix | Delete
int * /* minorVersionRet */,
[319] Fix | Delete
char ** /* vendorRet */,
[320] Fix | Delete
char ** /* releaseRet */,
[321] Fix | Delete
int /* errorLength */,
[322] Fix | Delete
char * /* errorStringRet */
[323] Fix | Delete
);
[324] Fix | Delete
[325] Fix | Delete
extern Status IceProtocolShutdown (
[326] Fix | Delete
IceConn /* iceConn */,
[327] Fix | Delete
int /* majorOpcode */
[328] Fix | Delete
);
[329] Fix | Delete
[330] Fix | Delete
extern IceProcessMessagesStatus IceProcessMessages (
[331] Fix | Delete
IceConn /* iceConn */,
[332] Fix | Delete
IceReplyWaitInfo * /* replyWait */,
[333] Fix | Delete
Bool * /* replyReadyRet */
[334] Fix | Delete
);
[335] Fix | Delete
[336] Fix | Delete
extern Status IcePing (
[337] Fix | Delete
IceConn /* iceConn */,
[338] Fix | Delete
IcePingReplyProc /* pingReplyProc */,
[339] Fix | Delete
IcePointer /* clientData */
[340] Fix | Delete
);
[341] Fix | Delete
[342] Fix | Delete
extern char *IceAllocScratch (
[343] Fix | Delete
IceConn /* iceConn */,
[344] Fix | Delete
unsigned long /* size */
[345] Fix | Delete
);
[346] Fix | Delete
[347] Fix | Delete
extern int IceFlush (
[348] Fix | Delete
IceConn /* iceConn */
[349] Fix | Delete
);
[350] Fix | Delete
[351] Fix | Delete
extern int IceGetOutBufSize (
[352] Fix | Delete
IceConn /* iceConn */
[353] Fix | Delete
);
[354] Fix | Delete
[355] Fix | Delete
extern int IceGetInBufSize (
[356] Fix | Delete
IceConn /* iceConn */
[357] Fix | Delete
);
[358] Fix | Delete
[359] Fix | Delete
extern IceConnectStatus IceConnectionStatus (
[360] Fix | Delete
IceConn /* iceConn */
[361] Fix | Delete
);
[362] Fix | Delete
[363] Fix | Delete
extern char *IceVendor (
[364] Fix | Delete
IceConn /* iceConn */
[365] Fix | Delete
);
[366] Fix | Delete
[367] Fix | Delete
extern char *IceRelease (
[368] Fix | Delete
IceConn /* iceConn */
[369] Fix | Delete
);
[370] Fix | Delete
[371] Fix | Delete
extern int IceProtocolVersion (
[372] Fix | Delete
IceConn /* iceConn */
[373] Fix | Delete
);
[374] Fix | Delete
[375] Fix | Delete
extern int IceProtocolRevision (
[376] Fix | Delete
IceConn /* iceConn */
[377] Fix | Delete
);
[378] Fix | Delete
[379] Fix | Delete
extern int IceConnectionNumber (
[380] Fix | Delete
IceConn /* iceConn */
[381] Fix | Delete
);
[382] Fix | Delete
[383] Fix | Delete
extern char *IceConnectionString (
[384] Fix | Delete
IceConn /* iceConn */
[385] Fix | Delete
);
[386] Fix | Delete
[387] Fix | Delete
extern unsigned long IceLastSentSequenceNumber (
[388] Fix | Delete
IceConn /* iceConn */
[389] Fix | Delete
);
[390] Fix | Delete
[391] Fix | Delete
extern unsigned long IceLastReceivedSequenceNumber (
[392] Fix | Delete
IceConn /* iceConn */
[393] Fix | Delete
);
[394] Fix | Delete
[395] Fix | Delete
extern Bool IceSwapping (
[396] Fix | Delete
IceConn /* iceConn */
[397] Fix | Delete
);
[398] Fix | Delete
[399] Fix | Delete
extern IceErrorHandler IceSetErrorHandler (
[400] Fix | Delete
IceErrorHandler /* handler */
[401] Fix | Delete
);
[402] Fix | Delete
[403] Fix | Delete
extern IceIOErrorHandler IceSetIOErrorHandler (
[404] Fix | Delete
IceIOErrorHandler /* handler */
[405] Fix | Delete
);
[406] Fix | Delete
[407] Fix | Delete
extern char *IceGetPeerName (
[408] Fix | Delete
IceConn /* iceConn */
[409] Fix | Delete
);
[410] Fix | Delete
[411] Fix | Delete
/*
[412] Fix | Delete
* Multithread Routines
[413] Fix | Delete
*/
[414] Fix | Delete
[415] Fix | Delete
extern Status IceInitThreads (
[416] Fix | Delete
void
[417] Fix | Delete
);
[418] Fix | Delete
[419] Fix | Delete
extern void IceAppLockConn (
[420] Fix | Delete
IceConn /* iceConn */
[421] Fix | Delete
);
[422] Fix | Delete
[423] Fix | Delete
extern void IceAppUnlockConn (
[424] Fix | Delete
IceConn /* iceConn */
[425] Fix | Delete
);
[426] Fix | Delete
[427] Fix | Delete
_XFUNCPROTOEND
[428] Fix | Delete
[429] Fix | Delete
#endif /* _ICELIB_H_ */
[430] Fix | Delete
[431] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function