/******************************************************************************
Copyright 1993, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
#include <X11/Xfuncproto.h>
typedef void *IcePointer;
} IceProtocolSetupStatus;
IceStartedShutdownNegotiation
IceProcessMessagesSuccess,
IceProcessMessagesIOError,
IceProcessMessagesConnectionClosed
} IceProcessMessagesStatus;
unsigned long sequence_of_request;
int major_opcode_of_request;
int minor_opcode_of_request;
typedef struct _IceConn *IceConn;
typedef struct _IceListenObj *IceListenObj;
typedef void (*IceWatchProc) (
IcePointer /* clientData */,
IcePointer * /* watchData */
typedef void (*IcePoProcessMsgProc) (
IcePointer /* clientData */,
unsigned long /* length */,
IceReplyWaitInfo * /* replyWait */,
Bool * /* replyReadyRet */
typedef void (*IcePaProcessMsgProc) (
IcePointer /* clientData */,
unsigned long /* length */,
IcePoProcessMsgProc process_msg_proc;
IcePaProcessMsgProc process_msg_proc;
typedef IcePoAuthStatus (*IcePoAuthProc) (
IcePointer * /* authStatePtr */,
IcePointer /* authData */,
int * /* replyDataLenRet */,
IcePointer * /* replyDataRet */,
char ** /* errorStringRet */
typedef IcePaAuthStatus (*IcePaAuthProc) (
IcePointer * /* authStatePtr */,
IcePointer /* authData */,
int * /* replyDataLenRet */,
IcePointer * /* replyDataRet */,
char ** /* errorStringRet */
typedef Bool (*IceHostBasedAuthProc) (
typedef Status (*IceProtocolSetupProc) (
IcePointer * /* clientDataRet */,
char ** /* failureReasonRet */
typedef void (*IceProtocolActivateProc) (
IcePointer /* clientData */
typedef void (*IceIOErrorProc) (
typedef void (*IcePingReplyProc) (
IcePointer /* clientData */
typedef void (*IceErrorHandler) (
int /* offendingMinorOpcode */,
unsigned long /* offendingSequence */,
typedef void (*IceIOErrorHandler) (
extern int IceRegisterForProtocolSetup (
const char * /* protocolName */,
const char * /* vendor */,
const char * /* release */,
IcePoVersionRec * /* versionRecs */,
const char ** /* authNames */,
IcePoAuthProc * /* authProcs */,
IceIOErrorProc /* IOErrorProc */
extern int IceRegisterForProtocolReply (
const char * /* protocolName */,
const char * /* vendor */,
const char * /* release */,
IcePaVersionRec * /* versionRecs */,
const char ** /* authNames */,
IcePaAuthProc * /* authProcs */,
IceHostBasedAuthProc /* hostBasedAuthProc */,
IceProtocolSetupProc /* protocolSetupProc */,
IceProtocolActivateProc /* protocolActivateProc */,
IceIOErrorProc /* IOErrorProc */
extern IceConn IceOpenConnection (
char * /* networkIdsList */,
IcePointer /* context */,
Bool /* mustAuthenticate */,
int /* majorOpcodeCheck */,
char * /* errorStringRet */
extern IcePointer IceGetConnectionContext (
extern Status IceListenForConnections (
IceListenObj ** /* listenObjsRet */,
char * /* errorStringRet */
extern Status IceListenForWellKnownConnections (
IceListenObj ** /* listenObjsRet */,
char * /* errorStringRet */
extern int IceGetListenConnectionNumber (
IceListenObj /* listenObj */
extern char *IceGetListenConnectionString (
IceListenObj /* listenObj */
extern char *IceComposeNetworkIdList (
IceListenObj * /* listenObjs */
extern void IceFreeListenObjs (
IceListenObj * /* listenObjs */
extern void IceSetHostBasedAuthProc (
IceListenObj /* listenObj */,
IceHostBasedAuthProc /* hostBasedAuthProc */
extern IceConn IceAcceptConnection (
IceListenObj /* listenObj */,
IceAcceptStatus * /* statusRet */
extern void IceSetShutdownNegotiation (
extern Bool IceCheckShutdownNegotiation (
extern IceCloseStatus IceCloseConnection (
extern Status IceAddConnectionWatch (
IceWatchProc /* watchProc */,
IcePointer /* clientData */
extern void IceRemoveConnectionWatch (
IceWatchProc /* watchProc */,
IcePointer /* clientData */
extern IceProtocolSetupStatus IceProtocolSetup (
IcePointer /* clientData */,
Bool /* mustAuthenticate */,
int * /* majorVersionRet */,
int * /* minorVersionRet */,
char ** /* releaseRet */,
char * /* errorStringRet */
extern Status IceProtocolShutdown (
extern IceProcessMessagesStatus IceProcessMessages (
IceReplyWaitInfo * /* replyWait */,
Bool * /* replyReadyRet */
IcePingReplyProc /* pingReplyProc */,
IcePointer /* clientData */
extern char *IceAllocScratch (
extern int IceGetOutBufSize (
extern int IceGetInBufSize (
extern IceConnectStatus IceConnectionStatus (
extern char *IceRelease (
extern int IceProtocolVersion (
extern int IceProtocolRevision (
extern int IceConnectionNumber (
extern char *IceConnectionString (
extern unsigned long IceLastSentSequenceNumber (
extern unsigned long IceLastReceivedSequenceNumber (
extern Bool IceSwapping (
extern IceErrorHandler IceSetErrorHandler (
IceErrorHandler /* handler */
extern IceIOErrorHandler IceSetIOErrorHandler (
IceIOErrorHandler /* handler */
extern char *IceGetPeerName (
extern Status IceInitThreads (
extern void IceAppLockConn (
extern void IceAppUnlockConn (