Data Definitions for libICE

X11/ICE/ICElib.h

typedef void *IcePointer;

typedef enum
{
  IcePoAuthHaveReply,
  IcePoAuthRejected,
  IcePoAuthFailed,
  IcePoAuthDoneCleanup
}
IcePoAuthStatus;

typedef enum
{
  IcePaAuthContinue,
  IcePaAuthAccepted,
  IcePaAuthRejected,
  IcePaAuthFailed
}
IcePaAuthStatus;

typedef enum
{
  IceConnectPending,
  IceConnectAccepted,
  IceConnectRejected,
  IceConnectIOError
}
IceConnectStatus;

typedef enum
{
  IceProtocolSetupSuccess,
  IceProtocolSetupFailure,
  IceProtocolSetupIOError,
  IceProtocolAlreadyActive
}
IceProtocolSetupStatus;

typedef enum
{
  IceAcceptSuccess,
  IceAcceptFailure,
  IceAcceptBadMalloc
}
IceAcceptStatus;

typedef enum
{
  IceClosedNow,
  IceClosedASAP,
  IceConnectionInUse,
  IceStartedShutdownNegotiation
}
IceCloseStatus;

typedef enum
{
  IceProcessMessagesSuccess,
  IceProcessMessagesIOError,
  IceProcessMessagesConnectionClosed
}
IceProcessMessagesStatus;

typedef struct
{
  unsigned long sequence_of_request;
  int major_opcode_of_request;
  int minor_opcode_of_request;
  IcePointer reply;
}
IceReplyWaitInfo;

typedef struct _IceConn *IceConn;

typedef struct _IceListenObj *IceListenObj;

typedef void (*IceWatchProc) ();

typedef void (*IcePoProcessMsgProc) ();

typedef void (*IcePaProcessMsgProc) ();

typedef IcePoAuthStatus (*IcePoAuthProc) ();

typedef IcePaAuthStatus (*IcePaAuthProc) ();

typedef int (*IceHostBasedAuthProc) ();

typedef int (*IceProtocolSetupProc) ();

typedef void (*IceProtocolActivateProc) ();

typedef void (*IceIOErrorProc) ();

typedef void (*IcePingReplyProc) ();

typedef void (*IceErrorHandler) ();

typedef void (*IceIOErrorHandler) ();

typedef struct
{
  int major_version;
  int minor_version;
  IcePoProcessMsgProc process_msg_proc;
}
IcePoVersionRec;

typedef struct
{
  int major_version;
  int minor_version;
  IcePaProcessMsgProc process_msg_proc;
}
IcePaVersionRec;

X11/ICE/ICEutil.h

typedef struct
{
  char *protocol_name;
  unsigned short protocol_data_length;
  char *protocol_data;
  char *network_id;
  char *auth_name;
  unsigned short auth_data_length;
  char *auth_data;
}
IceAuthFileEntry;

typedef struct
{
  char *protocol_name;
  char *network_id;
  char *auth_name;
  unsigned short auth_data_length;
  char *auth_data;
}
IceAuthDataEntry;