#ifndef XSCOPE_EXTENSIONS_H
#define XSCOPE_EXTENSIONS_H
#include "scope.h"
#define EXTENSION_MIN_REQ 128
#define EXTENSION_MAX_REQ 255
#define EXTENSION_MIN_EV 64
#define EXTENSION_MAX_EV 127
#define EXTENSION_MIN_ERR 128
#define EXTENSION_MAX_ERR 255
#define NUM_EXTENSIONS 128
#define NUM_EXT_EVENTS 64
extern void ProcessQueryExtensionRequest(long seq, const unsigned char *buf);
extern void ProcessQueryExtensionReply(long seq, const unsigned char *buf);
extern void ExtensionRequest(FD fd, const unsigned char *buf, short Request);
extern void ExtensionReply(FD fd, const unsigned char *buf,
short Request, short RequestMinor);
extern void ExtensionError(FD fd, const unsigned char *buf, short Error);
extern void ExtensionEvent(FD fd, const unsigned char *buf, short Event);
extern void InitializeBIGREQ (const unsigned char *buf);
extern void InitializeGLX (const unsigned char *buf);
extern void InitializeLBX (const unsigned char *buf);
extern void InitializeMITSHM (const unsigned char *buf);
extern void InitializeRANDR (const unsigned char *buf);
extern void InitializeRENDER (const unsigned char *buf);
extern void InitializeWCP (const unsigned char *buf);
typedef void (*extension_decode_req_ptr) (FD fd, const unsigned char *buf);
typedef void (*extension_decode_reply_ptr) (FD fd, const unsigned char *buf,
short RequestMinor);
typedef void (*extension_decode_error_ptr) (FD fd, const unsigned char *buf);
typedef void (*extension_decode_event_ptr) (FD fd, const unsigned char *buf);
extern void InitializeExtensionDecoder (int Request,
extension_decode_req_ptr reqd,
extension_decode_reply_ptr repd);
extern void InitializeExtensionErrorDecoder(int Error,
extension_decode_error_ptr errd);
extern void InitializeExtensionEventDecoder(int Event,
extension_decode_event_ptr evd);
extern void InitializeGenericEventDecoder (int Request,
extension_decode_event_ptr evd);
#endif