summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 17:00:09 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:44:36 -0700
commit02906bf1766ad1769e03f9372611087389ee23b0 (patch)
tree461fca85f78e124bdc68ace534401d4e6af6b03e
parent6dde56a016d502cf422b5c54247e225bb13e26d0 (diff)
downloadxscope-02906bf1766ad1769e03f9372611087389ee23b0.tar.gz
Constify many char pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--audio.c40
-rw-r--r--bigreqscope.h4
-rw-r--r--decode11.c10
-rw-r--r--decode_bigreq.c10
-rw-r--r--decode_lbx.c16
-rw-r--r--decode_randr.c12
-rw-r--r--decode_render.c34
-rw-r--r--decode_shm.c16
-rw-r--r--decode_wcp.c12
-rw-r--r--decodenas.c16
-rw-r--r--lbxscope.h20
-rw-r--r--nas.h132
-rw-r--r--print11.c454
-rw-r--r--print_bigreq.c4
-rw-r--r--print_lbx.c20
-rw-r--r--print_randr.c18
-rw-r--r--print_render.c80
-rw-r--r--print_shm.c18
-rw-r--r--print_wcp.c28
-rw-r--r--printnas.c152
-rw-r--r--proto.h504
-rw-r--r--prtype.c128
-rw-r--r--randrscope.h18
-rw-r--r--renderscope.h74
-rw-r--r--scope.c9
-rw-r--r--server.c60
-rw-r--r--shmscope.h18
-rw-r--r--table11.c79
-rw-r--r--wcpscope.h18
-rw-r--r--x11.h129
30 files changed, 1073 insertions, 1060 deletions
diff --git a/audio.c b/audio.c
index 6868c47..5f38398 100644
--- a/audio.c
+++ b/audio.c
@@ -57,7 +57,7 @@ ReportFromAudioClient (
static void
ReportFromAudioServer(
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
if (NasVerbose) {
@@ -70,14 +70,14 @@ ReportFromAudioServer(
ProcessBuffer(fd, buf, n);
}
-static long StartAudioSetUpMessage (FD fd, unsigned char *buf, long n);
-static long FinishAudioSetUpMessage (FD fd, unsigned char *buf, long n);
-static long StartAudioRequest (FD fd, unsigned char *buf, long n);
-static long FinishAudioRequest (FD fd, unsigned char *buf, long n);
-static long StartAudioSetUpReply (FD fd, unsigned char *buf, long n);
-static long FinishAudioSetUpReply (FD fd, unsigned char *buf, long n);
-static long FinishAudioReply (FD fd, unsigned char *buf, long n);
-static long AudioServerPacket (FD fd, unsigned char *buf, long n);
+static long StartAudioSetUpMessage (FD fd, const unsigned char *buf, long n);
+static long FinishAudioSetUpMessage (FD fd, const unsigned char *buf, long n);
+static long StartAudioRequest (FD fd, const unsigned char *buf, long n);
+static long FinishAudioRequest (FD fd, const unsigned char *buf, long n);
+static long StartAudioSetUpReply (FD fd, const unsigned char *buf, long n);
+static long FinishAudioSetUpReply (FD fd, const unsigned char *buf, long n);
+static long FinishAudioReply (FD fd, const unsigned char *buf, long n);
+static long AudioServerPacket (FD fd, const unsigned char *buf, long n);
static void
StartAudioClientConnection(
@@ -115,7 +115,7 @@ StopAudioClientConnection(
static long
StartAudioSetUpMessage (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short namelength;
@@ -145,7 +145,7 @@ StartAudioSetUpMessage (
static long
FinishAudioSetUpMessage (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
enterprocedure("FinishSetUpMessage");
@@ -162,7 +162,7 @@ FinishAudioSetUpMessage (
static long
StartAudioRequest (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
unsigned short requestlength;
@@ -181,7 +181,7 @@ StartAudioRequest (
static long
FinishAudioRequest (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
enterprocedure("FinishRequest");
@@ -225,7 +225,7 @@ StopAudioServerConnection(
static long
StartAudioSetUpReply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short replylength;
@@ -242,7 +242,7 @@ StartAudioSetUpReply (
static long
FinishAudioSetUpReply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
enterprocedure("FinishSetUpReply");
@@ -258,7 +258,7 @@ FinishAudioSetUpReply (
static long
AudioErrorPacket (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
CS[fd].ByteProcessing = AudioServerPacket;
@@ -271,7 +271,7 @@ AudioErrorPacket (
static long
AudioEventPacket (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
CS[fd].ByteProcessing = AudioServerPacket;
@@ -285,7 +285,7 @@ AudioEventPacket (
static long
AudioReplyPacket (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
long replylength;
@@ -311,7 +311,7 @@ AudioReplyPacket (
static long
FinishAudioReply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
CS[fd].ByteProcessing = AudioServerPacket;
@@ -325,7 +325,7 @@ FinishAudioReply (
static long
AudioServerPacket (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short PacketType;
diff --git a/bigreqscope.h b/bigreqscope.h
index b127df8..64ba248 100644
--- a/bigreqscope.h
+++ b/bigreqscope.h
@@ -16,8 +16,8 @@
extern unsigned char LookForBIGREQFlag;
extern unsigned char BIGREQRequest;
-extern void BigreqEnable (FD fd, unsigned char *buf);
-extern void BigreqEnableReply (FD fd, unsigned char *buf);
+extern void BigreqEnable (FD fd, const unsigned char *buf);
+extern void BigreqEnableReply (FD fd, const unsigned char *buf);
#endif
diff --git a/decode11.c b/decode11.c
index f5ca040..f30d34a 100644
--- a/decode11.c
+++ b/decode11.c
@@ -329,7 +329,7 @@ KeepLastReplyExpected (void)
#define DUMP_EVENT 2
#define DUMP_ERROR 3
-static char *simple_names[] = {
+static const char * const simple_names[] = {
"REQUEST",
"REPLY ",
"EVENT ",
@@ -354,7 +354,7 @@ SimpleDump (int type, FD fd, short Major, short Minor, long bytes)
void
DecodeRequest (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short Request = IByte (&buf[0]);
@@ -844,7 +844,7 @@ DecodeRequest (
void
DecodeReply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short SequenceNumber = IShort (&buf[2]);
@@ -1016,7 +1016,7 @@ DecodeReply (
void
DecodeError (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short Error = IByte (&buf[1]);
@@ -1112,7 +1112,7 @@ DecodeError (
void
DecodeEvent (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short Event = IByte (&buf[0]);
diff --git a/decode_bigreq.c b/decode_bigreq.c
index d359a5a..087a65d 100644
--- a/decode_bigreq.c
+++ b/decode_bigreq.c
@@ -37,7 +37,7 @@ unsigned char BIGREQRequest;
void
bigreq_decode_req (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -55,7 +55,7 @@ bigreq_decode_req (
void
bigreq_decode_reply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
short RequestMinor)
{
switch (RequestMinor) {
@@ -65,7 +65,7 @@ bigreq_decode_reply (
void
InitializeBIGREQ(
- unsigned char *buf)
+ const unsigned char *buf)
{
TYPE p;
@@ -75,9 +75,9 @@ InitializeBIGREQ(
DefineEValue (&TD[REQUEST], (unsigned long) BIGREQRequest, "BigreqRequest");
DefineEValue (&TD[REPLY], (unsigned long) BIGREQRequest, "BigreqReply");
- p = DefineType(BIGREQREQUEST, ENUMERATED, "BIGREQREQUEST", PrintENUMERATED);
+ p = DefineType(BIGREQREQUEST, ENUMERATED, "BIGREQREQUEST", (PrintProcType) PrintENUMERATED);
DefineEValue(p, 0L, "BigreqEnable");
- p = DefineType(BIGREQREPLY, ENUMERATED, "BIGREQREPLY", PrintENUMERATED);
+ p = DefineType(BIGREQREPLY, ENUMERATED, "BIGREQREPLY", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "BigreqEnable");
}
diff --git a/decode_lbx.c b/decode_lbx.c
index 46ea90a..fc7e7f2 100644
--- a/decode_lbx.c
+++ b/decode_lbx.c
@@ -38,7 +38,7 @@ unsigned char LBXRequest, LBXEvent, LBXError;
void
lbx_decode_req (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -74,7 +74,7 @@ lbx_decode_req (
void
lbx_decode_reply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
short RequestMinor)
{
switch (RequestMinor) {
@@ -89,7 +89,7 @@ lbx_decode_reply (
void
lbx_decode_error (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short error = IByte(&buf[1]) - LBXError;
@@ -104,7 +104,7 @@ lbx_decode_error (
void
lbx_decode_event (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short event = IByte(&buf[0]) - LBXEvent;
@@ -122,7 +122,7 @@ lbx_decode_event (
void
InitializeLBX (
- unsigned char *buf)
+ const unsigned char *buf)
{
TYPE p;
@@ -136,7 +136,7 @@ InitializeLBX (
DefineEValue (&TD[EVENT], (unsigned long) LBXEvent, "LbxEvent");
DefineEValue (&TD[ERROR], (unsigned long) LBXError, "LbxError");
- p = DefineType(LBXREQUEST, ENUMERATED, "LBXREQUEST", PrintENUMERATED);
+ p = DefineType(LBXREQUEST, ENUMERATED, "LBXREQUEST", (PrintProcType) PrintENUMERATED);
DefineEValue(p, 0L, "QueryVersion");
DefineEValue(p, 1L, "StartProxy");
DefineEValue(p, 2L, "StopProxy");
@@ -145,10 +145,10 @@ InitializeLBX (
DefineEValue(p, 5L, "CloseClient");
DefineEValue(p, 6L, "ModifySequence");
- p = DefineType(LBXREPLY, ENUMERATED, "LBXREPLY", PrintENUMERATED);
+ p = DefineType(LBXREPLY, ENUMERATED, "LBXREPLY", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "QueryVersion");
- p = DefineType(LBXEVENT, ENUMERATED, "LBXEVENT", PrintENUMERATED);
+ p = DefineType(LBXEVENT, ENUMERATED, "LBXEVENT", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "SwitchEvent");
DefineEValue (p, 1L, "CloseEvent");
}
diff --git a/decode_randr.c b/decode_randr.c
index aa86de5..bb54d6a 100644
--- a/decode_randr.c
+++ b/decode_randr.c
@@ -38,7 +38,7 @@ unsigned char RANDRRequest, RANDRError, RANDREvent;
void
randr_decode_req (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -56,7 +56,7 @@ randr_decode_req (
void
randr_decode_reply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
short RequestMinor)
{
switch (RequestMinor) {
@@ -69,14 +69,14 @@ randr_decode_reply (
void
randr_decode_event (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
RandrScreenChangeNotifyEvent (buf);
}
void
InitializeRANDR (
- unsigned char *buf)
+ const unsigned char *buf)
{
TYPE p;
@@ -89,13 +89,13 @@ InitializeRANDR (
DefineEValue (&TD[REPLY], (unsigned long) RANDRRequest, "RandrReply");
DefineEValue (&TD[EVENT], (unsigned long) RANDREvent, "RRScreenChangeNotify");
- p = DefineType(RANDRREQUEST, ENUMERATED, "RANDRREQUEST", PrintENUMERATED);
+ p = DefineType(RANDRREQUEST, ENUMERATED, "RANDRREQUEST", (PrintProcType) PrintENUMERATED);
DefineEValue(p, 0L, "RandrQueryVersion");
DefineEValue(p, 1L, "RandrGetScreenInfo");
DefineEValue(p, 2L, "RandrSetScreenConfig");
DefineEValue(p, 3L, "RandrScreenChangeSelectInput");
- p = DefineType(RANDRREPLY, ENUMERATED, "RANDRREPLY", PrintENUMERATED);
+ p = DefineType(RANDRREPLY, ENUMERATED, "RANDRREPLY", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "QueryVersion");
DefineEValue (p, 1L, "GetScreenInfo");
DefineEValue (p, 2L, "SetScreenConfig");
diff --git a/decode_render.c b/decode_render.c
index ccad5ee..8cf2317 100644
--- a/decode_render.c
+++ b/decode_render.c
@@ -38,7 +38,7 @@ unsigned char RENDERRequest, RENDERError;
void
render_decode_req (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -79,7 +79,7 @@ render_decode_req (
void
render_decode_reply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
short RequestMinor)
{
switch (RequestMinor) {
@@ -93,7 +93,7 @@ render_decode_reply (
void
render_decode_error (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short error = IByte(&buf[1]) - RENDERError;
@@ -110,7 +110,7 @@ render_decode_error (
static int
PrintPICTURE (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* print a WINDOW -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -123,7 +123,7 @@ PrintPICTURE (
static int
PrintPICTFORMAT (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* print a WINDOW -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -136,7 +136,7 @@ PrintPICTFORMAT (
static int
PrintPICTFORMINFO (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* print a PictFormInfo */
long n = ILong(buf);
@@ -160,7 +160,7 @@ PrintPICTFORMINFO (
static int
PrintGLYPHSET (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* print a GLYPHSET -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -173,7 +173,7 @@ PrintGLYPHSET (
static int
PrintRENDERCOLOR (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* print a RENDERCOLOR */
unsigned short r, g, b, a;
@@ -188,7 +188,7 @@ PrintRENDERCOLOR (
static int
PrintFIXED (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* print a PICTURE */
long n = ILong (buf);
@@ -198,7 +198,7 @@ PrintFIXED (
static int
PrintPOINTFIXED (
- unsigned char *buf)
+ const unsigned char *buf)
{
long x = ILong (buf);
long y = ILong (buf+4);
@@ -208,7 +208,7 @@ PrintPOINTFIXED (
static int
PrintTRAPEZOID (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* print a TRAPEZOID */
PrintField (buf, 0, 4, FIXED, "top");
@@ -222,7 +222,7 @@ PrintTRAPEZOID (
static int
PrintTRIANGLE (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* print a TRIANGLE */
PrintField (buf, 0, 8, POINTFIXED, "p1");
@@ -233,7 +233,7 @@ PrintTRIANGLE (
void
InitializeRENDER (
- unsigned char *buf)
+ const unsigned char *buf)
{
TYPE p;
@@ -250,7 +250,7 @@ InitializeRENDER (
DefineEValue (&TD[ERROR], (unsigned long) RENDERError + 3, "BadGlyphSet");
DefineEValue (&TD[ERROR], (unsigned long) RENDERError + 4, "BadGlyph");
- p = DefineType(RENDERREQUEST, ENUMERATED, "RENDERREQUEST", PrintENUMERATED);
+ p = DefineType(RENDERREQUEST, ENUMERATED, "RENDERREQUEST", (PrintProcType) PrintENUMERATED);
DefineEValue(p, 0L, "RenderQueryVersion");
DefineEValue(p, 1L, "RenderQueryPictFormats");
DefineEValue(p, 2L, "RenderQueryPictIndexValues");
@@ -279,7 +279,7 @@ InitializeRENDER (
DefineEValue(p, 25L, "RenderCompositeGlyphs32");
DefineEValue(p, 26L, "RenderFillRectangles");
- p = DefineType(RENDERREPLY, ENUMERATED, "RENDERREPLY", PrintENUMERATED);
+ p = DefineType(RENDERREPLY, ENUMERATED, "RENDERREPLY", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "QueryVersion");
DefineEValue (p, 1L, "QueryPictFormats");
DefineEValue (p, 2L, "QueryPictIndexValues");
@@ -291,7 +291,7 @@ InitializeRENDER (
DefineType(RENDERCOLOR, BUILTIN, "RENDERCOLOR", PrintRENDERCOLOR);
DefineType(PICTFORMINFO, BUILTIN, "PICTFORMINFO", PrintPICTFORMINFO);
- p = DefineType(PICTURE_BITMASK, SET, "PICTURE_BITMASK", PrintSET);
+ p = DefineType(PICTURE_BITMASK, SET, "PICTURE_BITMASK", (PrintProcType) PrintSET);
DefineValues(p, 0x00000001L, 1, BOOL, "repeat");
DefineValues(p, 0x00000002L, 1, PICTURE, "alpha-map");
@@ -307,7 +307,7 @@ InitializeRENDER (
DefineValues(p, 0x00000800L, 1, ATOM, "dither");
DefineValues(p, 0x00001000L, 1, BOOL, "component-alpha");
- p = DefineType(PICTOP, ENUMERATED, "PICTOP", PrintENUMERATED);
+ p = DefineType(PICTOP, ENUMERATED, "PICTOP", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "Clear");
DefineEValue (p, 1L, "Src");
DefineEValue (p, 2L, "Dst");
diff --git a/decode_shm.c b/decode_shm.c
index f47712c..4c2876e 100644
--- a/decode_shm.c
+++ b/decode_shm.c
@@ -37,7 +37,7 @@ unsigned char MITSHMRequest, MITSHMError, MITSHMEvent;
void
mitshm_decode_req (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -57,7 +57,7 @@ mitshm_decode_req (
void
mitshm_decode_reply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
short RequestMinor)
{
switch (RequestMinor) {
@@ -69,14 +69,14 @@ mitshm_decode_reply (
void
mitshm_decode_event (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
}
void
mitshm_decode_error (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short error = IByte(&buf[0]) - MITSHMError;
@@ -90,7 +90,7 @@ mitshm_decode_error (
void
InitializeMITSHM (
- unsigned char *buf)
+ const unsigned char *buf)
{
TYPE p;
@@ -104,7 +104,7 @@ InitializeMITSHM (
DefineEValue (&TD[EVENT], (unsigned long) MITSHMEvent, "MitshmEvent");
DefineEValue (&TD[ERROR], (unsigned long) MITSHMError, "MitshmError");
- p = DefineType(MITSHMREQUEST, ENUMERATED, "MITSHMREQUEST", PrintENUMERATED);
+ p = DefineType(MITSHMREQUEST, ENUMERATED, "MITSHMREQUEST", (PrintProcType) PrintENUMERATED);
DefineEValue(p, 0L, "MitshmQueryVersion");
DefineEValue(p, 1L, "MitshmAttach");
DefineEValue(p, 2L, "MitshmDetach");
@@ -112,10 +112,10 @@ InitializeMITSHM (
DefineEValue(p, 4L, "MitshmGetImage");
DefineEValue(p, 5L, "MitshmCreatePixmap");
- p = DefineType(MITSHMREPLY, ENUMERATED, "MITSHMREPLY", PrintENUMERATED);
+ p = DefineType(MITSHMREPLY, ENUMERATED, "MITSHMREPLY", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "QueryVersion");
DefineEValue (p, 4L, "GetImage");
- p = DefineType(MITSHMEVENT, ENUMERATED, "MITSHMEVENT", PrintENUMERATED);
+ p = DefineType(MITSHMEVENT, ENUMERATED, "MITSHMEVENT", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "CompletionEvent");
}
diff --git a/decode_wcp.c b/decode_wcp.c
index ba93efb..bcf0653 100644
--- a/decode_wcp.c
+++ b/decode_wcp.c
@@ -38,7 +38,7 @@ unsigned char WCPRequest, WCPError;
void
wcp_decode_req (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -75,7 +75,7 @@ wcp_decode_req (
void
wcp_decode_reply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
short RequestMinor)
{
switch (RequestMinor) {
@@ -93,7 +93,7 @@ wcp_decode_reply (
void
wcp_decode_error (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short error = IByte(&buf[1]) - WCPError;
@@ -107,7 +107,7 @@ wcp_decode_error (
void
InitializeWCP (
- unsigned char *buf)
+ const unsigned char *buf)
{
TYPE p;
@@ -119,7 +119,7 @@ InitializeWCP (
DefineEValue (&TD[REPLY], (unsigned long) WCPRequest, "WcpReply");
DefineEValue (&TD[ERROR], (unsigned long) WCPError, "WcpError");
- p = DefineType(WCPREQUEST, ENUMERATED, "WCPREQUEST", PrintENUMERATED);
+ p = DefineType(WCPREQUEST, ENUMERATED, "WCPREQUEST", (PrintProcType) PrintENUMERATED);
DefineEValue(p, 0L, "WcpQueryVersion");
DefineEValue(p, 1L, "WcpPutImage");
DefineEValue(p, 2L, "WcpGetImage");
@@ -128,7 +128,7 @@ InitializeWCP (
DefineEValue(p, 5L, "WcpFreeLut");
DefineEValue(p, 6L, "WcpCopyArea");
- p = DefineType(WCPREPLY, ENUMERATED, "WCPREPLY", PrintENUMERATED);
+ p = DefineType(WCPREPLY, ENUMERATED, "WCPREPLY", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "QueryVersion");
}
diff --git a/decodenas.c b/decodenas.c
index d00ecef..56b9f33 100644
--- a/decodenas.c
+++ b/decodenas.c
@@ -45,7 +45,7 @@
#define DUMP_EVENT 2
#define DUMP_ERROR 3
-static char *simple_names[] = {
+static const char * const simple_names[] = {
"REQUEST",
"REPLY ",
"EVENT ",
@@ -70,7 +70,7 @@ AudioSimpleDump (int type, FD fd, short Major, short Minor, long bytes)
void
DecodeAudioRequest(
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short Request = IByte (&buf[0]);
@@ -243,7 +243,7 @@ DecodeAudioRequest(
void
DecodeAudioReply(
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short SequenceNumber = IShort (&buf[2]);
@@ -328,7 +328,7 @@ DecodeAudioReply(
void
DecodeAudioError(
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short Error = IByte (&buf[1]);
@@ -356,7 +356,7 @@ DecodeAudioError(
void
DecodeAudioEvent(
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short Event = IByte (&buf[0]);
@@ -405,7 +405,7 @@ InitializeAudioDecode (void)
{
TYPE p;
- p = DefineType (NASREQUEST, ENUMERATED, "NASREQUEST", PrintENUMERATED);
+ p = DefineType (NASREQUEST, ENUMERATED, "NASREQUEST", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 1L, "ListDevices");
DefineEValue (p, 2L, "GetDeviceAttributes");
DefineEValue (p, 3L, "SetDeviceAttributes");
@@ -443,7 +443,7 @@ InitializeAudioDecode (void)
DefineEValue (p, 35L, "KillClient");
DefineEValue (p, 36L, "GetServerTime");
DefineEValue (p, 37L, "NoOperation");
- p = DefineType (NASREPLY, ENUMERATED, "NASREPLY", PrintENUMERATED);
+ p = DefineType (NASREPLY, ENUMERATED, "NASREPLY", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 1L, "ListDevices");
DefineEValue (p, 2L, "GetDeviceAttributes");
DefineEValue (p, 6L, "ListBuckets");
@@ -460,7 +460,7 @@ InitializeAudioDecode (void)
DefineEValue (p, 32L, "QueryExtension");
DefineEValue (p, 33L, "GetCloseDownMode");
DefineEValue (p, 36L, "GetServerTime");
- p = DefineType (NASEVENT, ENUMERATED, "NASEVENT", PrintENUMERATED);
+ p = DefineType (NASEVENT, ENUMERATED, "NASEVENT", (PrintProcType) PrintENUMERATED);
DefineEValue(p, 2L, "ElementNotify");
DefineEValue(p, 3L, "GrabNotify");
DefineEValue(p, 4L, "MonitorNotify");
diff --git a/lbxscope.h b/lbxscope.h
index 7d2c739..6daee15 100644
--- a/lbxscope.h
+++ b/lbxscope.h
@@ -44,16 +44,16 @@ extern unsigned char LBXRequest;
extern unsigned char LBXError;
extern unsigned char LBXEvent;
-extern void LbxQueryVersion (FD fd, unsigned char *buf);
-extern void LbxQueryVersionReply (FD fd, unsigned char *buf);
-extern void LbxStartProxy (FD fd, unsigned char *buf);
-extern void LbxStopProxy (FD fd, unsigned char *buf);
-extern void LbxNewClient (FD fd, unsigned char *buf);
-extern void LbxCloseClient (FD fd, unsigned char *buf);
-extern void LbxSwitch (FD fd, unsigned char *buf);
-extern void LbxModifySequence (FD fd, unsigned char *buf);
-extern void LbxSwitchEvent (FD fd, unsigned char *buf);
-extern void LbxCloseEvent (FD fd, unsigned char *buf);
+extern void LbxQueryVersion (FD fd, const unsigned char *buf);
+extern void LbxQueryVersionReply (FD fd, const unsigned char *buf);
+extern void LbxStartProxy (FD fd, const unsigned char *buf);
+extern void LbxStopProxy (FD fd, const unsigned char *buf);
+extern void LbxNewClient (FD fd, const unsigned char *buf);
+extern void LbxCloseClient (FD fd, const unsigned char *buf);
+extern void LbxSwitch (FD fd, const unsigned char *buf);
+extern void LbxModifySequence (FD fd, const unsigned char *buf);
+extern void LbxSwitchEvent (FD fd, const unsigned char *buf);
+extern void LbxCloseEvent (FD fd, const unsigned char *buf);
#endif
diff --git a/nas.h b/nas.h
index d4fcc49..04d169f 100644
--- a/nas.h
+++ b/nas.h
@@ -127,73 +127,73 @@ extern void NewAudio (FD fd);
extern void InitializeAudio (void);
/* decodenas.c */
-extern void DecodeAudioRequest (FD fd, unsigned char *buf, long n);
-extern void DecodeAudioReply (FD fd, unsigned char *buf, long n);
-extern void DecodeAudioEvent (FD fd, unsigned char *buf, long n);
-extern void DecodeAudioError (FD fd, unsigned char *buf, long n);
+extern void DecodeAudioRequest (FD fd, const unsigned char *buf, long n);
+extern void DecodeAudioReply (FD fd, const unsigned char *buf, long n);
+extern void DecodeAudioEvent (FD fd, const unsigned char *buf, long n);
+extern void DecodeAudioError (FD fd, const unsigned char *buf, long n);
extern void InitializeAudioDecode (void);
/* printnas.c */
-extern void PrintAudioSetUpMessage (unsigned char *buf);
-extern void PrintAudioSetUpReply (unsigned char *buf);
-extern void AudioElementNotify (unsigned char *buf);
-extern void AudioGrabNotify (unsigned char *buf);
-extern void AudioMonitorNotify (unsigned char *buf);
-extern void AudioBucketNotify (unsigned char *buf);
-extern void AudioDeviceNotify (unsigned char *buf);
-extern void UnknownAudioReply (unsigned char *buf);
-extern void AudioListDevices (unsigned char *buf);
-extern void AudioListDevicesReply (unsigned char *buf);
-extern void AudioGetDeviceAttributes (unsigned char *buf);
-extern void AudioGetDeviceAttributesReply (unsigned char *buf);
-extern void AudioSetDeviceAttributes (unsigned char *buf);
-extern void AudioCreateBucket (unsigned char *buf);
-extern void AudioDestroyBucket (unsigned char *buf);
-extern void AudioListBuckets (unsigned char *buf);
-extern void AudioListBucketsReply (unsigned char *buf);
-extern void AudioGetBucketAttributes (unsigned char *buf);
-extern void AudioGetBucketAttributesReply (unsigned char *buf);
-extern void AudioSetBucketAttributes (unsigned char *buf);
-extern void AudioCreateRadio (unsigned char *buf);
-extern void AudioDestroyRadio (unsigned char *buf);
-extern void AudioListRadios (unsigned char *buf);
-extern void AudioListRadiosReply (unsigned char *buf);
-extern void AudioGetRadioAttributes (unsigned char *buf);
-extern void AudioGetRadioAttributesReply (unsigned char *buf);
-extern void AudioSetRadioAttributes (unsigned char *buf);
-extern void AudioCreateFlow (unsigned char *buf);
-extern void AudioDestroyFlow (unsigned char *buf);
-extern void AudioGetFlowAttributes (unsigned char *buf);
-extern void AudioGetFlowAttributesReply (unsigned char *buf);
-extern void AudioSetFlowAttributes (unsigned char *buf);
-extern void AudioGetElements (unsigned char *buf);
-extern void AudioGetElementsReply (unsigned char *buf);
-extern void AudioSetElements (unsigned char *buf);
-extern void AudioGetElementStates (unsigned char *buf);
-extern void AudioElementState (unsigned char *buf);
-extern void AudioGetElementStatesReply (unsigned char *buf);
-extern void AudioSetElementStates (unsigned char *buf);
-extern void AudioGetElementParameters (unsigned char *buf);
-extern void AudioGetElementParametersReply (unsigned char *buf);
-extern void AudioSetElementParameters (unsigned char *buf);
-extern void AudioWriteElement (unsigned char *buf);
-extern void AudioReadElement (unsigned char *buf);
-extern void AudioReadElementReply (unsigned char *buf);
-extern void AudioGrabComponent (unsigned char *buf);
-extern void AudioUngrabComponent (unsigned char *buf);
-extern void AudioSendEvent (unsigned char *buf);
-extern void AudioGetAllowedUsers (unsigned char *buf);
-extern void AudioGetAllowedUsersReply (unsigned char *buf);
-extern void AudioSetAllowedUsers (unsigned char *buf);
-extern void AudioListExtensions (unsigned char *buf);
-extern void AudioListExtensionsReply (unsigned char *buf);
-extern void AudioQueryExtension (unsigned char *buf);
-extern void AudioQueryExtensionReply (unsigned char *buf);
-extern void AudioGetCloseDownMode (unsigned char *buf);
-extern void AudioGetCloseDownModeReply (unsigned char *buf);
-extern void AudioSetCloseDownMode (unsigned char *buf);
-extern void AudioKillClient (unsigned char *buf);
-extern void AudioGetServerTime (unsigned char *buf);
-extern void AudioGetServerTimeReply (unsigned char *buf);
-extern void AudioNoOperation (unsigned char *buf);
+extern void PrintAudioSetUpMessage (const unsigned char *buf);
+extern void PrintAudioSetUpReply (const unsigned char *buf);
+extern void AudioElementNotify (const unsigned char *buf);
+extern void AudioGrabNotify (const unsigned char *buf);
+extern void AudioMonitorNotify (const unsigned char *buf);
+extern void AudioBucketNotify (const unsigned char *buf);
+extern void AudioDeviceNotify (const unsigned char *buf);
+extern void UnknownAudioReply (const unsigned char *buf);
+extern void AudioListDevices (const unsigned char *buf);
+extern void AudioListDevicesReply (const unsigned char *buf);
+extern void AudioGetDeviceAttributes (const unsigned char *buf);
+extern void AudioGetDeviceAttributesReply (const unsigned char *buf);
+extern void AudioSetDeviceAttributes (const unsigned char *buf);
+extern void AudioCreateBucket (const unsigned char *buf);
+extern void AudioDestroyBucket (const unsigned char *buf);
+extern void AudioListBuckets (const unsigned char *buf);
+extern void AudioListBucketsReply (const unsigned char *buf);
+extern void AudioGetBucketAttributes (const unsigned char *buf);
+extern void AudioGetBucketAttributesReply (const unsigned char *buf);
+extern void AudioSetBucketAttributes (const unsigned char *buf);
+extern void AudioCreateRadio (const unsigned char *buf);
+extern void AudioDestroyRadio (const unsigned char *buf);
+extern void AudioListRadios (const unsigned char *buf);
+extern void AudioListRadiosReply (const unsigned char *buf);
+extern void AudioGetRadioAttributes (const unsigned char *buf);
+extern void AudioGetRadioAttributesReply (const unsigned char *buf);
+extern void AudioSetRadioAttributes (const unsigned char *buf);
+extern void AudioCreateFlow (const unsigned char *buf);
+extern void AudioDestroyFlow (const unsigned char *buf);
+extern void AudioGetFlowAttributes (const unsigned char *buf);
+extern void AudioGetFlowAttributesReply (const unsigned char *buf);
+extern void AudioSetFlowAttributes (const unsigned char *buf);
+extern void AudioGetElements (const unsigned char *buf);
+extern void AudioGetElementsReply (const unsigned char *buf);
+extern void AudioSetElements (const unsigned char *buf);
+extern void AudioGetElementStates (const unsigned char *buf);
+extern void AudioElementState (const unsigned char *buf);
+extern void AudioGetElementStatesReply (const unsigned char *buf);
+extern void AudioSetElementStates (const unsigned char *buf);
+extern void AudioGetElementParameters (const unsigned char *buf);
+extern void AudioGetElementParametersReply (const unsigned char *buf);
+extern void AudioSetElementParameters (const unsigned char *buf);
+extern void AudioWriteElement (const unsigned char *buf);
+extern void AudioReadElement (const unsigned char *buf);
+extern void AudioReadElementReply (const unsigned char *buf);
+extern void AudioGrabComponent (const unsigned char *buf);
+extern void AudioUngrabComponent (const unsigned char *buf);
+extern void AudioSendEvent (const unsigned char *buf);
+extern void AudioGetAllowedUsers (const unsigned char *buf);
+extern void AudioGetAllowedUsersReply (const unsigned char *buf);
+extern void AudioSetAllowedUsers (const unsigned char *buf);
+extern void AudioListExtensions (const unsigned char *buf);
+extern void AudioListExtensionsReply (const unsigned char *buf);
+extern void AudioQueryExtension (const unsigned char *buf);
+extern void AudioQueryExtensionReply (const unsigned char *buf);
+extern void AudioGetCloseDownMode (const unsigned char *buf);
+extern void AudioGetCloseDownModeReply (const unsigned char *buf);
+extern void AudioSetCloseDownMode (const unsigned char *buf);
+extern void AudioKillClient (const unsigned char *buf);
+extern void AudioGetServerTime (const unsigned char *buf);
+extern void AudioGetServerTimeReply (const unsigned char *buf);
+extern void AudioNoOperation (const unsigned char *buf);
diff --git a/print11.c b/print11.c
index 4b9943d..63de109 100644
--- a/print11.c
+++ b/print11.c
@@ -61,10 +61,10 @@
#include "shmscope.h"
#include "wcpscope.h"
-static void PrintFailedSetUpReply(unsigned char *buf);
-static void PrintSuccessfulSetUpReply(unsigned char *buf);
-static void ListFontsWithInfoReply1(unsigned char *buf);
-static void ListFontsWithInfoReply2(unsigned char *buf);
+static void PrintFailedSetUpReply(const unsigned char *buf);
+static void PrintSuccessfulSetUpReply(const unsigned char *buf);
+static void ListFontsWithInfoReply1(const unsigned char *buf);
+static void ListFontsWithInfoReply2(const unsigned char *buf);
/* ************************************************************ */
@@ -103,7 +103,7 @@ static void ListFontsWithInfoReply2(unsigned char *buf);
void
PrintSetUpMessage (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
short d;
@@ -125,7 +125,7 @@ PrintSetUpMessage (
void
PrintSetUpReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
enterprocedure("PrintSetUpReply");
SetIndentLevel(PRINTSERVER);
@@ -137,7 +137,7 @@ PrintSetUpReply (
static void
PrintFailedSetUpReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
@@ -154,7 +154,7 @@ PrintFailedSetUpReply (
static void
PrintSuccessfulSetUpReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short v;
short n;
@@ -192,10 +192,10 @@ PrintSuccessfulSetUpReply (
/* */
/* ************************************************************ */
-char *REQUESTHEADER = "............REQUEST";
-char *EVENTHEADER = "..............EVENT";
-char *ERRORHEADER = "..............ERROR";
-char *REPLYHEADER = "..............REPLY";
+const char REQUESTHEADER[] = "............REQUEST";
+const char EVENTHEADER[] = "..............EVENT";
+const char ERRORHEADER[] = "..............ERROR";
+const char REPLYHEADER[] = "..............REPLY";
/* ************************************************************ */
@@ -207,7 +207,7 @@ char *REPLYHEADER = "..............REPLY";
void
RequestError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ;
if (Verbose < 1)
@@ -219,7 +219,7 @@ RequestError (
void
ValueError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Value */ ;
if (Verbose < 1)
@@ -232,7 +232,7 @@ ValueError (
void
WindowError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Window */ ;
if (Verbose < 1)
@@ -245,7 +245,7 @@ WindowError (
void
PixmapError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Pixmap */ ;
if (Verbose < 1)
@@ -258,7 +258,7 @@ PixmapError (
void
AtomError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Atom */ ;
if (Verbose < 1)
@@ -271,7 +271,7 @@ AtomError (
void
CursorError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Cursor */ ;
if (Verbose < 1)
@@ -284,7 +284,7 @@ CursorError (
void
FontError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Font */ ;
if (Verbose < 1)
@@ -297,7 +297,7 @@ FontError (
void
MatchError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Match */ ;
if (Verbose < 1)
@@ -309,7 +309,7 @@ MatchError (
void
DrawableError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Drawable */ ;
if (Verbose < 1)
@@ -322,7 +322,7 @@ DrawableError (
void
AccessError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Access */ ;
if (Verbose < 1)
@@ -334,7 +334,7 @@ AccessError (
void
AllocError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Alloc */ ;
if (Verbose < 1)
@@ -346,7 +346,7 @@ AllocError (
void
ColormapError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Colormap */ ;
if (Verbose < 1)
@@ -359,7 +359,7 @@ ColormapError (
void
GContextError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* GContext */ ;
if (Verbose < 1)
@@ -372,7 +372,7 @@ GContextError (
void
IDChoiceError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* IDChoice */ ;
if (Verbose < 1)
@@ -385,7 +385,7 @@ IDChoiceError (
void
NameError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Name */ ;
if (Verbose < 1)
@@ -397,7 +397,7 @@ NameError (
void
LengthError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Length */ ;
if (Verbose < 1)
@@ -409,7 +409,7 @@ LengthError (
void
ImplementationError (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Implementation */ ;
if (Verbose < 1)
@@ -428,7 +428,7 @@ ImplementationError (
void
KeyPressEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* KeyPress */ ;
if (Verbose < 1)
@@ -449,7 +449,7 @@ KeyPressEvent (
void
KeyReleaseEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* KeyRelease */ ;
if (Verbose < 1)
@@ -470,7 +470,7 @@ KeyReleaseEvent (
void
ButtonPressEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* ButtonPress */ ;
if (Verbose < 1)
@@ -491,7 +491,7 @@ ButtonPressEvent (
void
ButtonReleaseEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* ButtonRelease */ ;
if (Verbose < 1)
@@ -512,7 +512,7 @@ ButtonReleaseEvent (
void
MotionNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* MotionNotify */ ;
if (Verbose < 1)
@@ -533,7 +533,7 @@ MotionNotifyEvent (
void
EnterNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* EnterNotify */ ;
if (Verbose < 1)
@@ -555,7 +555,7 @@ EnterNotifyEvent (
void
LeaveNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* LeaveNotify */ ;
if (Verbose < 1)
@@ -577,7 +577,7 @@ LeaveNotifyEvent (
void
FocusInEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* FocusIn */ ;
if (Verbose < 1)
@@ -590,7 +590,7 @@ FocusInEvent (
void
FocusOutEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* FocusOut */ ;
if (Verbose < 1)
@@ -603,7 +603,7 @@ FocusOutEvent (
void
KeymapNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* KeymapNotify */ ;
if (Verbose < 1)
@@ -613,7 +613,7 @@ KeymapNotifyEvent (
void
ExposeEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* Expose */ ;
if (Verbose < 1)
@@ -629,7 +629,7 @@ ExposeEvent (
void
GraphicsExposureEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* GraphicsExposure */ ;
if (Verbose < 1)
@@ -647,7 +647,7 @@ GraphicsExposureEvent (
void
NoExposureEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* NoExposure */ ;
if (Verbose < 1)
@@ -660,7 +660,7 @@ NoExposureEvent (
void
VisibilityNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* VisibilityNotify */ ;
if (Verbose < 1)
@@ -672,7 +672,7 @@ VisibilityNotifyEvent (
void
CreateNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* CreateNotify */ ;
if (Verbose < 1)
@@ -690,7 +690,7 @@ CreateNotifyEvent (
void
DestroyNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* DestroyNotify */ ;
if (Verbose < 1)
@@ -702,7 +702,7 @@ DestroyNotifyEvent (
void
UnmapNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* UnmapNotify */ ;
if (Verbose < 1)
@@ -715,7 +715,7 @@ UnmapNotifyEvent (
void
MapNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* MapNotify */ ;
if (Verbose < 1)
@@ -728,7 +728,7 @@ MapNotifyEvent (
void
MapRequestEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* MapRequest */ ;
if (Verbose < 1)
@@ -740,7 +740,7 @@ MapRequestEvent (
void
ReparentNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* ReparentNotify */ ;
if (Verbose < 1)
@@ -756,7 +756,7 @@ ReparentNotifyEvent (
void
ConfigureNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* ConfigureNotify */ ;
if (Verbose < 1)
@@ -775,7 +775,7 @@ ConfigureNotifyEvent (
void
ConfigureRequestEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* ConfigureRequest */ ;
if (Verbose < 1)
@@ -795,7 +795,7 @@ ConfigureRequestEvent (
void
GravityNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* GravityNotify */ ;
if (Verbose < 1)
@@ -809,7 +809,7 @@ GravityNotifyEvent (
void
ResizeRequestEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* ResizeRequest */ ;
if (Verbose < 1)
@@ -822,7 +822,7 @@ ResizeRequestEvent (
void
CirculateNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* CirculateNotify */ ;
if (Verbose < 1)
@@ -836,7 +836,7 @@ CirculateNotifyEvent (
void
CirculateRequestEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* CirculateRequest */ ;
if (Verbose < 1)
@@ -849,7 +849,7 @@ CirculateRequestEvent (
void
PropertyNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* PropertyNotify */ ;
if (Verbose < 1)
@@ -863,7 +863,7 @@ PropertyNotifyEvent (
void
SelectionClearEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* SelectionClear */ ;
if (Verbose < 1)
@@ -876,7 +876,7 @@ SelectionClearEvent (
void
SelectionRequestEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* SelectionRequest */ ;
if (Verbose < 1)
@@ -892,7 +892,7 @@ SelectionRequestEvent (
void
SelectionNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* SelectionNotify */ ;
if (Verbose < 1)
@@ -907,7 +907,7 @@ SelectionNotifyEvent (
void
ColormapNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* ColormapNotify */ ;
if (Verbose < 1)
@@ -921,7 +921,7 @@ ColormapNotifyEvent (
void
ClientMessageEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* ClientMessage */ ;
if (Verbose < 1)
@@ -935,7 +935,7 @@ ClientMessageEvent (
void
MappingNotifyEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* MappingNotify */ ;
if (Verbose < 1)
@@ -956,7 +956,7 @@ MappingNotifyEvent (
void
ExtendedRequest (
int fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER);
@@ -972,7 +972,7 @@ ExtendedRequest (
void
UnknownReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
@@ -986,7 +986,7 @@ UnknownReply (
void
CreateWindow (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CreateWindow is opcode 1 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CreateWindow */ ;
@@ -1012,7 +1012,7 @@ CreateWindow (
void
ChangeWindowAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ChangeWindowAttributes is opcode 2 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ChangeWindowAttributes */ ;
@@ -1029,7 +1029,7 @@ ChangeWindowAttributes (
void
GetWindowAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetWindowAttributes is opcode 3 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetWindowAttributes */ ;
@@ -1044,7 +1044,7 @@ GetWindowAttributes (
void
GetWindowAttributesReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetWindowAttributes */ ;
if (Verbose < 1)
@@ -1070,7 +1070,7 @@ GetWindowAttributesReply (
void
DestroyWindow (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request DestroyWindow is opcode 4 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* DestroyWindow */ ;
@@ -1085,7 +1085,7 @@ DestroyWindow (
void
DestroySubwindows (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request DestroySubwindows is opcode 5 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* DestroySubwindows */ ;
@@ -1100,7 +1100,7 @@ DestroySubwindows (
void
ChangeSaveSet (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ChangeSaveSet is opcode 6 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ChangeSaveSet */ ;
@@ -1116,7 +1116,7 @@ ChangeSaveSet (
void
ReparentWindow (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ReparentWindow is opcode 7 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ReparentWindow */ ;
@@ -1134,7 +1134,7 @@ ReparentWindow (
void
MapWindow (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request MapWindow is opcode 8 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* MapWindow */ ;
@@ -1149,7 +1149,7 @@ MapWindow (
void
MapSubwindows (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request MapSubwindows is opcode 9 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* MapSubwindows */ ;
@@ -1164,7 +1164,7 @@ MapSubwindows (
void
UnmapWindow (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request UnmapWindow is opcode 10 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* UnmapWindow */ ;
@@ -1179,7 +1179,7 @@ UnmapWindow (
void
UnmapSubwindows (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request UnmapSubwindows is opcode 11 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* UnmapSubwindows */ ;
@@ -1194,7 +1194,7 @@ UnmapSubwindows (
void
ConfigureWindow (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ConfigureWindow is opcode 12 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ConfigureWindow */ ;
@@ -1211,7 +1211,7 @@ ConfigureWindow (
void
CirculateWindow (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CirculateWindow is opcode 13 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CirculateWindow */ ;
@@ -1227,7 +1227,7 @@ CirculateWindow (
void
GetGeometry (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetGeometry is opcode 14 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetGeometry */ ;
@@ -1242,7 +1242,7 @@ GetGeometry (
void
GetGeometryReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetGeometry */ ;
if (Verbose < 1)
@@ -1260,7 +1260,7 @@ GetGeometryReply (
void
QueryTree (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request QueryTree is opcode 15 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* QueryTree */ ;
@@ -1275,7 +1275,7 @@ QueryTree (
void
QueryTreeReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* QueryTree */ ;
@@ -1292,7 +1292,7 @@ QueryTreeReply (
void
InternAtom (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request InternAtom is opcode 16 */
@@ -1311,7 +1311,7 @@ InternAtom (
void
InternAtomReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* InternAtom */ ;
if (Verbose < 1)
@@ -1323,7 +1323,7 @@ InternAtomReply (
void
GetAtomName (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetAtomName is opcode 17 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetAtomName */ ;
@@ -1338,7 +1338,7 @@ GetAtomName (
void
GetAtomNameReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetAtomName */ ;
@@ -1353,7 +1353,7 @@ GetAtomNameReply (
void
ChangeProperty (
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
short unit;
@@ -1384,7 +1384,7 @@ ChangeProperty (
void
DeleteProperty (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request DeleteProperty is opcode 19 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* DeleteProperty */ ;
@@ -1400,7 +1400,7 @@ DeleteProperty (
void
GetProperty (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetProperty is opcode 20 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetProperty */ ;
@@ -1420,7 +1420,7 @@ GetProperty (
void
GetPropertyReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
short unit;
@@ -1446,7 +1446,7 @@ GetPropertyReply (
void
ListProperties (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ListProperties is opcode 21 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ListProperties */ ;
@@ -1461,7 +1461,7 @@ ListProperties (
void
ListPropertiesReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* ListProperties */ ;
@@ -1476,7 +1476,7 @@ ListPropertiesReply (
void
SetSelectionOwner (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request SetSelectionOwner is opcode 22 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* SetSelectionOwner */ ;
@@ -1493,7 +1493,7 @@ SetSelectionOwner (
void
GetSelectionOwner (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetSelectionOwner is opcode 23 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetSelectionOwner */ ;
@@ -1508,7 +1508,7 @@ GetSelectionOwner (
void
GetSelectionOwnerReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetSelectionOwner */ ;
if (Verbose < 1)
@@ -1520,7 +1520,7 @@ GetSelectionOwnerReply (
void
ConvertSelection (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ConvertSelection is opcode 24 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ConvertSelection */ ;
@@ -1539,7 +1539,7 @@ ConvertSelection (
void
SendEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request SendEvent is opcode 25 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* SendEvent */ ;
@@ -1557,7 +1557,7 @@ SendEvent (
void
GrabPointer (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GrabPointer is opcode 26 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GrabPointer */ ;
@@ -1579,7 +1579,7 @@ GrabPointer (
void
GrabPointerReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GrabPointer */ ;
if (Verbose < 1)
@@ -1591,7 +1591,7 @@ GrabPointerReply (
void
UngrabPointer (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request UngrabPointer is opcode 27 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* UngrabPointer */ ;
@@ -1606,7 +1606,7 @@ UngrabPointer (
void
GrabButton (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GrabButton is opcode 28 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GrabButton */ ;
@@ -1629,7 +1629,7 @@ GrabButton (
void
UngrabButton (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request UngrabButton is opcode 29 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* UngrabButton */ ;
@@ -1646,7 +1646,7 @@ UngrabButton (
void
ChangeActivePointerGrab (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ChangeActivePointerGrab is opcode 30 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ChangeActivePointerGrab */ ;
@@ -1663,7 +1663,7 @@ ChangeActivePointerGrab (
void
GrabKeyboard (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GrabKeyboard is opcode 31 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GrabKeyboard */ ;
@@ -1682,7 +1682,7 @@ GrabKeyboard (
void
GrabKeyboardReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GrabKeyboard */ ;
if (Verbose < 1)
@@ -1694,7 +1694,7 @@ GrabKeyboardReply (
void
UngrabKeyboard (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request UngrabKeyboard is opcode 32 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* UngrabKeyboard */ ;
@@ -1709,7 +1709,7 @@ UngrabKeyboard (
void
GrabKey (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GrabKey is opcode 33 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GrabKey */ ;
@@ -1729,7 +1729,7 @@ GrabKey (
void
UngrabKey (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request UngrabKey is opcode 34 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* UngrabKey */ ;
@@ -1746,7 +1746,7 @@ UngrabKey (
void
AllowEvents (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request AllowEvents is opcode 35 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* AllowEvents */ ;
@@ -1762,7 +1762,7 @@ AllowEvents (
void
GrabServer (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GrabServer is opcode 36 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GrabServer */ ;
@@ -1776,7 +1776,7 @@ GrabServer (
void
UngrabServer (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request UngrabServer is opcode 37 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* UngrabServer */ ;
@@ -1790,7 +1790,7 @@ UngrabServer (
void
QueryPointer (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request QueryPointer is opcode 38 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* QueryPointer */ ;
@@ -1805,7 +1805,7 @@ QueryPointer (
void
QueryPointerReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* QueryPointer */ ;
if (Verbose < 1)
@@ -1824,7 +1824,7 @@ QueryPointerReply (
void
GetMotionEvents (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetMotionEvents is opcode 39 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetMotionEvents */ ;
@@ -1841,7 +1841,7 @@ GetMotionEvents (
void
GetMotionEventsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetMotionEvents */ ;
@@ -1856,7 +1856,7 @@ GetMotionEventsReply (
void
TranslateCoordinates (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request TranslateCoordinates is opcode 40 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* TranslateCoordinates */ ;
@@ -1874,7 +1874,7 @@ TranslateCoordinates (
void
TranslateCoordinatesReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* TranslateCoordinates */ ;
if (Verbose < 1)
@@ -1889,7 +1889,7 @@ TranslateCoordinatesReply (
void
WarpPointer (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request WarpPointer is opcode 41 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* WarpPointer */ ;
@@ -1911,7 +1911,7 @@ WarpPointer (
void
SetInputFocus (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request SetInputFocus is opcode 42 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* SetInputFocus */ ;
@@ -1928,7 +1928,7 @@ SetInputFocus (
void
GetInputFocus (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetInputFocus is opcode 43 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetInputFocus */ ;
@@ -1942,7 +1942,7 @@ GetInputFocus (
void
GetInputFocusReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetInputFocus */ ;
if (Verbose < 1)
@@ -1955,7 +1955,7 @@ GetInputFocusReply (
void
QueryKeymap (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request QueryKeymap is opcode 44 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* QueryKeymap */ ;
@@ -1969,7 +1969,7 @@ QueryKeymap (
void
QueryKeymapReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* QueryKeymap */ ;
if (Verbose < 1)
@@ -1981,7 +1981,7 @@ QueryKeymapReply (
void
OpenFont (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request OpenFont is opcode 45 */
@@ -2000,7 +2000,7 @@ OpenFont (
void
CloseFont (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CloseFont is opcode 46 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CloseFont */ ;
@@ -2015,7 +2015,7 @@ CloseFont (
void
QueryFont (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request QueryFont is opcode 47 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* QueryFont */ ;
@@ -2030,7 +2030,7 @@ QueryFont (
void
QueryFontReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
long m;
@@ -2062,7 +2062,7 @@ QueryFontReply (
void
QueryTextExtents (
- unsigned char *buf)
+ const unsigned char *buf)
{
int n;
@@ -2084,7 +2084,7 @@ QueryTextExtents (
void
QueryTextExtentsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* QueryTextExtents */ ;
if (Verbose < 1)
@@ -2103,7 +2103,7 @@ QueryTextExtentsReply (
void
ListFonts (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request ListFonts is opcode 49 */
@@ -2122,7 +2122,7 @@ ListFonts (
void
ListFontsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
@@ -2138,7 +2138,7 @@ ListFontsReply (
void
ListFontsWithInfo (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request ListFontsWithInfo is opcode 50 */
@@ -2157,7 +2157,7 @@ ListFontsWithInfo (
void
ListFontsWithInfoReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short which;
@@ -2176,7 +2176,7 @@ ListFontsWithInfoReply (
static void
ListFontsWithInfoReply1 (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
short m;
@@ -2204,7 +2204,7 @@ ListFontsWithInfoReply1 (
static void
ListFontsWithInfoReply2 (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, CONST1(0), "last-reply indicator");
printfield(buf, 2, 2, CARD16, "sequence number");
@@ -2213,7 +2213,7 @@ ListFontsWithInfoReply2 (
void
SetFontPath (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request SetFontPath is opcode 51 */
@@ -2231,7 +2231,7 @@ SetFontPath (
void
GetFontPath (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetFontPath is opcode 52 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetFontPath */ ;
@@ -2245,7 +2245,7 @@ GetFontPath (
void
GetFontPathReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetFontPath */ ;
@@ -2260,7 +2260,7 @@ GetFontPathReply (
void
CreatePixmap (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CreatePixmap is opcode 53 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CreatePixmap */ ;
@@ -2279,7 +2279,7 @@ CreatePixmap (
void
FreePixmap (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request FreePixmap is opcode 54 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* FreePixmap */ ;
@@ -2292,7 +2292,7 @@ FreePixmap (
PrintField(buf, 4, 4, PIXMAP, "pixmap");
}
-unsigned long GCDefaults[] = {
+static const unsigned long GCDefaults[] = {
3, /* function GXcopy */
~0, /* planemask */
0, /* foreground */
@@ -2320,7 +2320,7 @@ unsigned long GCDefaults[] = {
void
CreateGC (
- unsigned char *buf)
+ const unsigned char *buf)
{
CreateValueRec (ILong(buf+4), 23, GCDefaults);
SetValueRec (ILong(buf+4), &buf[12], 4, GC_BITMASK, &buf[16]);
@@ -2341,7 +2341,7 @@ CreateGC (
void
ChangeGC (
- unsigned char *buf)
+ const unsigned char *buf)
{
SetValueRec (ILong(buf+4), &buf[8], 4, GC_BITMASK, &buf[12]);
@@ -2360,7 +2360,7 @@ ChangeGC (
void
CopyGC (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CopyGC is opcode 57 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CopyGC */ ;
@@ -2377,7 +2377,7 @@ CopyGC (
void
SetDashes (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request SetDashes is opcode 58 */
@@ -2397,7 +2397,7 @@ SetDashes (
void
SetClipRectangles (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
@@ -2419,7 +2419,7 @@ SetClipRectangles (
void
FreeGC (
- unsigned char *buf)
+ const unsigned char *buf)
{
DeleteValueRec (ILong (&buf[4]));
@@ -2436,7 +2436,7 @@ FreeGC (
void
ClearArea (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ClearArea is opcode 61 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ClearArea */ ;
@@ -2456,7 +2456,7 @@ ClearArea (
void
CopyArea (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CopyArea is opcode 62 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CopyArea */ ;
@@ -2485,7 +2485,7 @@ CopyArea (
void
CopyPlane (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CopyPlane is opcode 63 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CopyPlane */ ;
@@ -2517,7 +2517,7 @@ CopyPlane (
void
PolyPoint (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request PolyPoint is opcode 64 */
@@ -2543,7 +2543,7 @@ PolyPoint (
void
PolyLine (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request PolyLine is opcode 65 */
@@ -2577,7 +2577,7 @@ PolyLine (
void
PolySegment (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request PolySegment is opcode 66 */
@@ -2609,7 +2609,7 @@ PolySegment (
void
PolyRectangle (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request PolyRectangle is opcode 67 */
@@ -2642,7 +2642,7 @@ PolyRectangle (
void
PolyArc (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request PolyArc is opcode 68 */
@@ -2675,7 +2675,7 @@ PolyArc (
void
FillPoly (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request FillPoly is opcode 69 */
@@ -2707,7 +2707,7 @@ FillPoly (
void
PolyFillRectangle (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request PolyFillRectangle is opcode 70 */
@@ -2736,7 +2736,7 @@ PolyFillRectangle (
void
PolyFillArc (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request PolyFillArc is opcode 71 */
@@ -2766,7 +2766,7 @@ PolyFillArc (
void
PutImage (
- unsigned char *buf)
+ const unsigned char *buf)
{
int n;
/* Request PutImage is opcode 72 */
@@ -2813,7 +2813,7 @@ PutImage (
void
GetImage (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetImage is opcode 73 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetImage */ ;
@@ -2834,7 +2834,7 @@ GetImage (
void
GetImageReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
@@ -2856,7 +2856,7 @@ GetImageReply (
void
PolyText8 (
- unsigned char *buf)
+ const unsigned char *buf)
{
int n;
@@ -2889,7 +2889,7 @@ PolyText8 (
void
PolyText16 (
- unsigned char *buf)
+ const unsigned char *buf)
{
int n;
@@ -2922,7 +2922,7 @@ PolyText16 (
void
ImageText8 (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request ImageText8 is opcode 76 */
@@ -2951,7 +2951,7 @@ ImageText8 (
void
ImageText16 (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request ImageText16 is opcode 77 */
@@ -2980,7 +2980,7 @@ ImageText16 (
void
CreateColormap (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CreateColormap is opcode 78 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CreateColormap */ ;
@@ -2998,7 +2998,7 @@ CreateColormap (
void
FreeColormap (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request FreeColormap is opcode 79 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* FreeColormap */ ;
@@ -3013,7 +3013,7 @@ FreeColormap (
void
CopyColormapAndFree (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CopyColormapAndFree is opcode 80 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CopyColormapAndFree */ ;
@@ -3029,7 +3029,7 @@ CopyColormapAndFree (
void
InstallColormap (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request InstallColormap is opcode 81 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* InstallColormap */ ;
@@ -3044,7 +3044,7 @@ InstallColormap (
void
UninstallColormap (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request UninstallColormap is opcode 82 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* UninstallColormap */ ;
@@ -3059,7 +3059,7 @@ UninstallColormap (
void
ListInstalledColormaps (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ListInstalledColormaps is opcode 83 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ListInstalledColormaps */ ;
@@ -3074,7 +3074,7 @@ ListInstalledColormaps (
void
ListInstalledColormapsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* ListInstalledColormaps */ ;
@@ -3089,7 +3089,7 @@ ListInstalledColormapsReply (
void
AllocColor (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request AllocColor is opcode 84 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* AllocColor */ ;
@@ -3107,7 +3107,7 @@ AllocColor (
void
AllocColorReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* AllocColor */ ;
if (Verbose < 1)
@@ -3122,7 +3122,7 @@ AllocColorReply (
void
AllocNamedColor (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request AllocNamedColor is opcode 85 */
@@ -3141,7 +3141,7 @@ AllocNamedColor (
void
AllocNamedColorReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* AllocNamedColor */ ;
if (Verbose < 1)
@@ -3159,7 +3159,7 @@ AllocNamedColorReply (
void
AllocColorCells (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request AllocColorCells is opcode 86 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* AllocColorCells */ ;
@@ -3177,7 +3177,7 @@ AllocColorCells (
void
AllocColorCellsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
short m;
@@ -3197,7 +3197,7 @@ AllocColorCellsReply (
void
AllocColorPlanes (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request AllocColorPlanes is opcode 87 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* AllocColorPlanes */ ;
@@ -3217,7 +3217,7 @@ AllocColorPlanes (
void
AllocColorPlanesReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* AllocColorPlanes */ ;
@@ -3235,7 +3235,7 @@ AllocColorPlanesReply (
void
FreeColors (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
@@ -3255,7 +3255,7 @@ FreeColors (
void
StoreColors (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request StoreColors is opcode 89 */
@@ -3273,7 +3273,7 @@ StoreColors (
void
StoreNamedColor (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request StoreNamedColor is opcode 90 */
@@ -3294,7 +3294,7 @@ StoreNamedColor (
void
QueryColors (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request QueryColors is opcode 91 */
@@ -3312,7 +3312,7 @@ QueryColors (
void
QueryColorsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* QueryColors */ ;
@@ -3327,7 +3327,7 @@ QueryColorsReply (
void
LookupColor (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request LookupColor is opcode 92 */
@@ -3346,7 +3346,7 @@ LookupColor (
void
LookupColorReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* LookupColor */ ;
if (Verbose < 1)
@@ -3363,7 +3363,7 @@ LookupColorReply (
void
CreateCursor (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CreateCursor is opcode 93 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CreateCursor */ ;
@@ -3388,7 +3388,7 @@ CreateCursor (
void
CreateGlyphCursor (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request CreateGlyphCursor is opcode 94 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* CreateGlyphCursor */ ;
@@ -3413,7 +3413,7 @@ CreateGlyphCursor (
void
FreeCursor (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request FreeCursor is opcode 95 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* FreeCursor */ ;
@@ -3428,7 +3428,7 @@ FreeCursor (
void
RecolorCursor (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request RecolorCursor is opcode 96 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* RecolorCursor */ ;
@@ -3449,7 +3449,7 @@ RecolorCursor (
void
QueryBestSize (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request QueryBestSize is opcode 97 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* QueryBestSize */ ;
@@ -3467,7 +3467,7 @@ QueryBestSize (
void
QueryBestSizeReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* QueryBestSize */ ;
if (Verbose < 1)
@@ -3480,7 +3480,7 @@ QueryBestSizeReply (
void
QueryExtension (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request QueryExtension is opcode 98 */
@@ -3498,7 +3498,7 @@ QueryExtension (
void
QueryExtensionReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
if (LookForLBXFlag) {
InitializeLBX(buf);
@@ -3532,7 +3532,7 @@ QueryExtensionReply (
void
ListExtensions (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ListExtensions is opcode 99 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ListExtensions */ ;
@@ -3546,7 +3546,7 @@ ListExtensions (
void
ListExtensionsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
@@ -3562,7 +3562,7 @@ ListExtensionsReply (
void
ChangeKeyboardMapping (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
short m;
@@ -3584,7 +3584,7 @@ ChangeKeyboardMapping (
void
GetKeyboardMapping (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetKeyboardMapping is opcode 101 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetKeyboardMapping */ ;
@@ -3600,7 +3600,7 @@ GetKeyboardMapping (
void
GetKeyboardMappingReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetKeyboardMapping */ ;
@@ -3615,7 +3615,7 @@ GetKeyboardMappingReply (
void
ChangeKeyboardControl (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ChangeKeyboardControl is opcode 102 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ChangeKeyboardControl */ ;
@@ -3631,7 +3631,7 @@ ChangeKeyboardControl (
void
GetKeyboardControl (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetKeyboardControl is opcode 103 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetKeyboardControl */ ;
@@ -3645,7 +3645,7 @@ GetKeyboardControl (
void
GetKeyboardControlReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetKeyboardControl */ ;
if (Verbose < 1)
@@ -3663,7 +3663,7 @@ GetKeyboardControlReply (
void
Bell (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request Bell is opcode 104 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* Bell */ ;
@@ -3678,7 +3678,7 @@ Bell (
void
ChangePointerControl (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ChangePointerControl is opcode 105 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ChangePointerControl */ ;
@@ -3697,7 +3697,7 @@ ChangePointerControl (
void
GetPointerControl (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetPointerControl is opcode 106 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetPointerControl */ ;
@@ -3711,7 +3711,7 @@ GetPointerControl (
void
GetPointerControlReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetPointerControl */ ;
if (Verbose < 1)
@@ -3725,7 +3725,7 @@ GetPointerControlReply (
void
SetScreenSaver (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request SetScreenSaver is opcode 107 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* SetScreenSaver */ ;
@@ -3743,7 +3743,7 @@ SetScreenSaver (
void
GetScreenSaver (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetScreenSaver is opcode 108 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetScreenSaver */ ;
@@ -3757,7 +3757,7 @@ GetScreenSaver (
void
GetScreenSaverReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetScreenSaver */ ;
if (Verbose < 1)
@@ -3772,7 +3772,7 @@ GetScreenSaverReply (
void
ChangeHosts (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request ChangeHosts is opcode 109 */
@@ -3796,7 +3796,7 @@ ChangeHosts (
void
ListHosts (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ListHosts is opcode 110 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ListHosts */ ;
@@ -3810,7 +3810,7 @@ ListHosts (
void
ListHostsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* ListHosts */ ;
@@ -3826,7 +3826,7 @@ ListHostsReply (
void
SetAccessControl (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request SetAccessControl is opcode 111 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* SetAccessControl */ ;
@@ -3841,7 +3841,7 @@ SetAccessControl (
void
SetCloseDownMode (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request SetCloseDownMode is opcode 112 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* SetCloseDownMode */ ;
@@ -3856,7 +3856,7 @@ SetCloseDownMode (
void
KillClient (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request KillClient is opcode 113 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* KillClient */ ;
@@ -3871,7 +3871,7 @@ KillClient (
void
RotateProperties (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request RotateProperties is opcode 114 */
@@ -3891,7 +3891,7 @@ RotateProperties (
void
ForceScreenSaver (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request ForceScreenSaver is opcode 115 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* ForceScreenSaver */ ;
@@ -3906,7 +3906,7 @@ ForceScreenSaver (
void
SetPointerMapping (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request SetPointerMapping is opcode 116 */
@@ -3924,7 +3924,7 @@ SetPointerMapping (
void
SetPointerMappingReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* SetPointerMapping */ ;
if (Verbose < 1)
@@ -3936,7 +3936,7 @@ SetPointerMappingReply (
void
GetPointerMapping (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetPointerMapping is opcode 117 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetPointerMapping */ ;
@@ -3950,7 +3950,7 @@ GetPointerMapping (
void
GetPointerMappingReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetPointerMapping */ ;
@@ -3965,7 +3965,7 @@ GetPointerMappingReply (
void
SetModifierMapping (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
/* Request SetModifierMapping is opcode 118 */
@@ -3990,7 +3990,7 @@ SetModifierMapping (
void
SetModifierMappingReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* SetModifierMapping */ ;
if (Verbose < 1)
@@ -4002,7 +4002,7 @@ SetModifierMappingReply (
void
GetModifierMapping (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request GetModifierMapping is opcode 119 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* GetModifierMapping */ ;
@@ -4016,7 +4016,7 @@ GetModifierMapping (
void
GetModifierMappingReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetModifierMapping */ ;
@@ -4031,7 +4031,7 @@ GetModifierMappingReply (
void
NoOperation (
- unsigned char *buf)
+ const unsigned char *buf)
{
/* Request NoOperation is opcode 127 */
PrintField(buf, 0, 1, REQUEST, REQUESTHEADER) /* NoOperation */ ;
diff --git a/print_bigreq.c b/print_bigreq.c
index e0f1f6f..7bbe56e 100644
--- a/print_bigreq.c
+++ b/print_bigreq.c
@@ -27,7 +27,7 @@
#include "bigreqscope.h"
void
-BigreqEnable (FD fd, unsigned char *buf)
+BigreqEnable (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* BigreqRequest */ ;
PrintField (buf, 1, 1, BIGREQREQUEST, BIGREQREQUESTHEADER) /* BigreqSwitch */ ;
@@ -40,7 +40,7 @@ BigreqEnable (FD fd, unsigned char *buf)
}
void
-BigreqEnableReply (FD fd, unsigned char *buf)
+BigreqEnableReply (FD fd, const unsigned char *buf)
{
short n;
long m;
diff --git a/print_lbx.c b/print_lbx.c
index 03dcaf2..ed6ddf6 100644
--- a/print_lbx.c
+++ b/print_lbx.c
@@ -35,7 +35,7 @@ static int client_client, server_client;
void
LbxQueryVersion (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* LbxRequest */ ;
PrintField (buf, 1, 1, LBXREQUEST, LBXREQUESTHEADER) /* LbxSwitch */ ;
@@ -50,7 +50,7 @@ LbxQueryVersion (
void
LbxQueryVersionReply (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
long m;
@@ -69,7 +69,7 @@ LbxQueryVersionReply (
void
LbxStartProxy (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* LbxRequest */ ;
PrintField (buf, 1, 1, LBXREQUEST, LBXREQUESTHEADER) /* LbxSwitch */ ;
@@ -84,7 +84,7 @@ LbxStartProxy (
void
LbxStopProxy (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* LbxRequest */ ;
PrintField (buf, 1, 1, LBXREQUEST, LBXREQUESTHEADER) /* LbxSwitch */ ;
@@ -99,7 +99,7 @@ LbxStopProxy (
void
LbxNewClient (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
unsigned long c;
@@ -122,14 +122,14 @@ LbxNewClient (
void
LbxCloseClient (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
}
void
LbxSwitch (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
unsigned long c;
c = ILong(&buf[4]);
@@ -159,7 +159,7 @@ LbxSwitch (
void
LbxModifySequence (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
int mod;
@@ -180,7 +180,7 @@ LbxModifySequence (
void
LbxSwitchEvent (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
unsigned long c;
@@ -203,7 +203,7 @@ LbxSwitchEvent (
void
LbxCloseEvent (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* LbxEvent */ ;
PrintField(buf, 1, 1, LBXEVENT, LBXEVENTHEADER) /* LbxSwitchEvent */ ;
diff --git a/print_randr.c b/print_randr.c
index 03893d4..784feed 100644
--- a/print_randr.c
+++ b/print_randr.c
@@ -27,7 +27,7 @@
#include "randrscope.h"
void
-RandrQueryVersion (FD fd, unsigned char *buf)
+RandrQueryVersion (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RandrRequest */ ;
PrintField (buf, 1, 1, RANDRREQUEST, RANDRREQUESTHEADER) /* RandrSwitch */ ;
@@ -40,7 +40,7 @@ RandrQueryVersion (FD fd, unsigned char *buf)
}
void
-RandrQueryVersionReply (FD fd, unsigned char *buf)
+RandrQueryVersionReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -57,7 +57,7 @@ RandrQueryVersionReply (FD fd, unsigned char *buf)
}
void
-RandrGetScreenInfo (FD fd, unsigned char *buf)
+RandrGetScreenInfo (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RandrRequest */ ;
PrintField (buf, 1, 1, RANDRREQUEST, RANDRREQUESTHEADER) /* RandrSwitch */ ;
@@ -71,7 +71,7 @@ RandrGetScreenInfo (FD fd, unsigned char *buf)
}
void
-RandrGetScreenInfoReply (FD fd, unsigned char *buf)
+RandrGetScreenInfoReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -102,7 +102,7 @@ RandrGetScreenInfoReply (FD fd, unsigned char *buf)
}
void
-RandrSetScreenConfig (FD fd, unsigned char *buf)
+RandrSetScreenConfig (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RandrRequest */ ;
PrintField (buf, 1, 1, RANDRREQUEST, RANDRREQUESTHEADER) /* RandrSwitch */ ;
@@ -121,7 +121,7 @@ RandrSetScreenConfig (FD fd, unsigned char *buf)
}
void
-RandrSetScreenConfigReply (FD fd, unsigned char *buf)
+RandrSetScreenConfigReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -139,7 +139,7 @@ RandrSetScreenConfigReply (FD fd, unsigned char *buf)
}
void
-RandrScreenChangeSelectInput (FD fd, unsigned char *buf)
+RandrScreenChangeSelectInput (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RandrRequest */ ;
PrintField (buf, 1, 1, RANDRREQUEST, RANDRREQUESTHEADER) /* RandrSwitch */ ;
@@ -154,7 +154,7 @@ RandrScreenChangeSelectInput (FD fd, unsigned char *buf)
}
void
-RandrScreenSizes (unsigned char *buf)
+RandrScreenSizes (const unsigned char *buf)
{
PrintField(buf, 0, 2, CARD16, "width-in-pixels");
PrintField(buf, 2, 2, CARD16, "height-in-pixels");
@@ -164,7 +164,7 @@ RandrScreenSizes (unsigned char *buf)
}
void
-RandrScreenChangeNotifyEvent (unsigned char *buf)
+RandrScreenChangeNotifyEvent (const unsigned char *buf)
{
PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* RRScreenChangeNotify */ ;
if (Verbose < 1)
diff --git a/print_render.c b/print_render.c
index 0bcc370..91f1038 100644
--- a/print_render.c
+++ b/print_render.c
@@ -27,7 +27,7 @@
#include "renderscope.h"
void
-RenderQueryVersion (FD fd, unsigned char *buf)
+RenderQueryVersion (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -40,7 +40,7 @@ RenderQueryVersion (FD fd, unsigned char *buf)
}
void
-RenderQueryVersionReply (FD fd, unsigned char *buf)
+RenderQueryVersionReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -57,7 +57,7 @@ RenderQueryVersionReply (FD fd, unsigned char *buf)
}
void
-RenderQueryPictFormats (FD fd, unsigned char *buf)
+RenderQueryPictFormats (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -70,7 +70,7 @@ RenderQueryPictFormats (FD fd, unsigned char *buf)
}
void
-RenderQueryPictFormatsReply (FD fd, unsigned char *buf)
+RenderQueryPictFormatsReply (FD fd, const unsigned char *buf)
{
long n;
long f;
@@ -95,7 +95,7 @@ RenderQueryPictFormatsReply (FD fd, unsigned char *buf)
}
void
-RenderQueryPictIndexValues (FD fd, unsigned char *buf)
+RenderQueryPictIndexValues (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -108,7 +108,7 @@ RenderQueryPictIndexValues (FD fd, unsigned char *buf)
}
void
-RenderQueryPictIndexValuesReply (FD fd, unsigned char *buf)
+RenderQueryPictIndexValuesReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -123,7 +123,7 @@ RenderQueryPictIndexValuesReply (FD fd, unsigned char *buf)
}
void
-RenderQueryDithers (FD fd, unsigned char *buf)
+RenderQueryDithers (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -136,7 +136,7 @@ RenderQueryDithers (FD fd, unsigned char *buf)
}
void
-RenderQueryDithersReply (FD fd, unsigned char *buf)
+RenderQueryDithersReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -151,7 +151,7 @@ RenderQueryDithersReply (FD fd, unsigned char *buf)
}
void
-RenderCreatePicture (FD fd, unsigned char *buf)
+RenderCreatePicture (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -169,7 +169,7 @@ RenderCreatePicture (FD fd, unsigned char *buf)
}
void
-RenderChangePicture (FD fd, unsigned char *buf)
+RenderChangePicture (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -185,7 +185,7 @@ RenderChangePicture (FD fd, unsigned char *buf)
}
void
-RenderSetPictureClipRectangles (FD fd, unsigned char *buf)
+RenderSetPictureClipRectangles (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -198,7 +198,7 @@ RenderSetPictureClipRectangles (FD fd, unsigned char *buf)
}
void
-RenderFreePicture (FD fd, unsigned char *buf)
+RenderFreePicture (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -211,7 +211,7 @@ RenderFreePicture (FD fd, unsigned char *buf)
}
void
-RenderComposite (FD fd, unsigned char *buf)
+RenderComposite (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -224,7 +224,7 @@ RenderComposite (FD fd, unsigned char *buf)
}
void
-RenderScale (FD fd, unsigned char *buf)
+RenderScale (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -237,7 +237,7 @@ RenderScale (FD fd, unsigned char *buf)
}
void
-RenderTrapezoids (FD fd, unsigned char *buf)
+RenderTrapezoids (FD fd, const unsigned char *buf)
{
int n;
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
@@ -259,7 +259,7 @@ RenderTrapezoids (FD fd, unsigned char *buf)
}
void
-RenderTriangles (FD fd, unsigned char *buf)
+RenderTriangles (FD fd, const unsigned char *buf)
{
long n;
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
@@ -281,7 +281,7 @@ RenderTriangles (FD fd, unsigned char *buf)
}
void
-RenderTriStrip (FD fd, unsigned char *buf)
+RenderTriStrip (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -294,7 +294,7 @@ RenderTriStrip (FD fd, unsigned char *buf)
}
void
-RenderTriFan (FD fd, unsigned char *buf)
+RenderTriFan (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -307,7 +307,7 @@ RenderTriFan (FD fd, unsigned char *buf)
}
void
-RenderColorTrapezoids (FD fd, unsigned char *buf)
+RenderColorTrapezoids (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -320,7 +320,7 @@ RenderColorTrapezoids (FD fd, unsigned char *buf)
}
void
-RenderColorTriangles (FD fd, unsigned char *buf)
+RenderColorTriangles (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -333,7 +333,7 @@ RenderColorTriangles (FD fd, unsigned char *buf)
}
void
-RenderTransform (FD fd, unsigned char *buf)
+RenderTransform (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -346,7 +346,7 @@ RenderTransform (FD fd, unsigned char *buf)
}
void
-RenderCreateGlyphSet (FD fd, unsigned char *buf)
+RenderCreateGlyphSet (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -361,7 +361,7 @@ RenderCreateGlyphSet (FD fd, unsigned char *buf)
}
void
-RenderReferenceGlyphSet (FD fd, unsigned char *buf)
+RenderReferenceGlyphSet (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -374,7 +374,7 @@ RenderReferenceGlyphSet (FD fd, unsigned char *buf)
}
void
-RenderFreeGlyphSet (FD fd, unsigned char *buf)
+RenderFreeGlyphSet (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -388,10 +388,10 @@ RenderFreeGlyphSet (FD fd, unsigned char *buf)
}
static void
-PrintGlyphs(unsigned char *buf, int n, char *name)
+PrintGlyphs(const unsigned char *buf, int n, char *name)
{
- unsigned char *gids;
- unsigned char *glyphs;
+ const unsigned char *gids;
+ const unsigned char *glyphs;
int i;
fprintf(stdout, "%s%20s:\n", Leader, name);
@@ -411,7 +411,7 @@ PrintGlyphs(unsigned char *buf, int n, char *name)
}
void
-RenderAddGlyphs (FD fd, unsigned char *buf)
+RenderAddGlyphs (FD fd, const unsigned char *buf)
{
long n;
long i;
@@ -431,7 +431,7 @@ RenderAddGlyphs (FD fd, unsigned char *buf)
}
void
-RenderAddGlyphsFromPicture (FD fd, unsigned char *buf)
+RenderAddGlyphsFromPicture (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
PrintField (buf, 1, 1, RENDERREQUEST, RENDERREQUESTHEADER) /* RenderSwitch */ ;
@@ -445,7 +445,7 @@ RenderAddGlyphsFromPicture (FD fd, unsigned char *buf)
}
void
-RenderFreeGlyphs (FD fd, unsigned char *buf)
+RenderFreeGlyphs (FD fd, const unsigned char *buf)
{
unsigned short n;
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
@@ -462,7 +462,7 @@ RenderFreeGlyphs (FD fd, unsigned char *buf)
}
static void
-PrintGlyphList(unsigned char *buf, int length, char *name, int size)
+PrintGlyphList(const unsigned char *buf, int length, char *name, int size)
{
short n;
@@ -497,7 +497,7 @@ PrintGlyphList(unsigned char *buf, int length, char *name, int size)
}
void
-RenderCompositeGlyphs8 (FD fd, unsigned char *buf)
+RenderCompositeGlyphs8 (FD fd, const unsigned char *buf)
{
int n;
@@ -521,7 +521,7 @@ RenderCompositeGlyphs8 (FD fd, unsigned char *buf)
}
void
-RenderCompositeGlyphs16 (FD fd, unsigned char *buf)
+RenderCompositeGlyphs16 (FD fd, const unsigned char *buf)
{
int n;
@@ -546,7 +546,7 @@ RenderCompositeGlyphs16 (FD fd, unsigned char *buf)
}
void
-RenderCompositeGlyphs32 (FD fd, unsigned char *buf)
+RenderCompositeGlyphs32 (FD fd, const unsigned char *buf)
{
int n;
@@ -570,7 +570,7 @@ RenderCompositeGlyphs32 (FD fd, unsigned char *buf)
}
void
-RenderFillRectangles (FD fd, unsigned char *buf)
+RenderFillRectangles (FD fd, const unsigned char *buf)
{
int n;
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* RenderRequest */ ;
@@ -589,7 +589,7 @@ RenderFillRectangles (FD fd, unsigned char *buf)
}
void
-RenderPictFormatError (FD fd, unsigned char *buf)
+RenderPictFormatError (FD fd, const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ;
if (Verbose < 1)
@@ -601,7 +601,7 @@ RenderPictFormatError (FD fd, unsigned char *buf)
}
void
-RenderPictureError (FD fd, unsigned char *buf)
+RenderPictureError (FD fd, const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ;
if (Verbose < 1)
@@ -613,7 +613,7 @@ RenderPictureError (FD fd, unsigned char *buf)
}
void
-RenderPictOpError (FD fd, unsigned char *buf)
+RenderPictOpError (FD fd, const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ;
if (Verbose < 1)
@@ -625,7 +625,7 @@ RenderPictOpError (FD fd, unsigned char *buf)
}
void
-RenderGlyphSetError (FD fd, unsigned char *buf)
+RenderGlyphSetError (FD fd, const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ;
if (Verbose < 1)
@@ -637,7 +637,7 @@ RenderGlyphSetError (FD fd, unsigned char *buf)
}
void
-RenderGlyphError (FD fd, unsigned char *buf)
+RenderGlyphError (FD fd, const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ;
if (Verbose < 1)
diff --git a/print_shm.c b/print_shm.c
index f100477..667d556 100644
--- a/print_shm.c
+++ b/print_shm.c
@@ -27,7 +27,7 @@
#include "shmscope.h"
void
-MitshmQueryVersion (FD fd, unsigned char *buf)
+MitshmQueryVersion (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -40,7 +40,7 @@ MitshmQueryVersion (FD fd, unsigned char *buf)
}
void
-MitshmQueryVersionReply (FD fd, unsigned char *buf)
+MitshmQueryVersionReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -60,7 +60,7 @@ MitshmQueryVersionReply (FD fd, unsigned char *buf)
}
void
-MitshmAttach (FD fd, unsigned char *buf)
+MitshmAttach (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -76,7 +76,7 @@ MitshmAttach (FD fd, unsigned char *buf)
}
void
-MitshmDetach (FD fd, unsigned char *buf)
+MitshmDetach (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -90,7 +90,7 @@ MitshmDetach (FD fd, unsigned char *buf)
}
void
-MitshmPutImage (FD fd, unsigned char *buf)
+MitshmPutImage (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -119,7 +119,7 @@ MitshmPutImage (FD fd, unsigned char *buf)
}
void
-MitshmGetImage (FD fd, unsigned char *buf)
+MitshmGetImage (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -141,7 +141,7 @@ MitshmGetImage (FD fd, unsigned char *buf)
}
void
-MitshmGetImageReply (FD fd, unsigned char *buf)
+MitshmGetImageReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -157,7 +157,7 @@ MitshmGetImageReply (FD fd, unsigned char *buf)
}
void
-MitshmCreatePixmap (FD fd, unsigned char *buf)
+MitshmCreatePixmap (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -177,6 +177,6 @@ MitshmCreatePixmap (FD fd, unsigned char *buf)
}
void
-MitshmShmSegError (FD fd, unsigned char *buf)
+MitshmShmSegError (FD fd, const unsigned char *buf)
{
}
diff --git a/print_wcp.c b/print_wcp.c
index 4f864f0..5c0bbd0 100644
--- a/print_wcp.c
+++ b/print_wcp.c
@@ -30,7 +30,7 @@
void
WcpQueryVersion (
FD fd,
- register unsigned char *buf)
+ register const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* WcpRequest */ ;
PrintField (buf, 1, 1, WCPREQUEST, WCPREQUESTHEADER) /* WcpSwitch */ ;
@@ -45,7 +45,7 @@ WcpQueryVersion (
void
WcpQueryVersionReply (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
long m;
@@ -65,7 +65,7 @@ WcpQueryVersionReply (
static void
WcpAnalyzeImage1RLL (
- char *buf,
+ const char *buf,
int len,
int width,
int height)
@@ -123,7 +123,7 @@ WcpAnalyzeImage1RLL (
static void
WcpAnalyzeImageNRLL (
- char *buf,
+ const char *buf,
int len,
int width,
int height,
@@ -206,7 +206,7 @@ match (
static void
WcpAnalyzeImageNLRU (
- char *buf,
+ const char *buf,
int len,
int width,
int height,
@@ -292,7 +292,7 @@ WcpAnalyzeImageNLRU (
static void
WcpAnalyzeImage (
- char *buf,
+ const char *buf,
int len,
int depth,
int encoding,
@@ -349,7 +349,7 @@ WcpAnalyzeImage (
void
WcpPutImage (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
int n;
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* WcpRequest */ ;
@@ -378,7 +378,7 @@ WcpPutImage (
PrintField(buf, 24, 1, CARD8, "depth");
PrintField(buf, 25, 1, CARD8, "encoding");
PrintField(buf, 26, 1, CARD8, "left-pad");
- WcpAnalyzeImage (&buf[28], (long) n, buf[24], buf[25],
+ WcpAnalyzeImage ((const char *) &buf[28], (long) n, buf[24], buf[25],
IShort(&buf[20]) + buf[26],
IShort(&buf[22]));
PrintBytes(&buf[28], (long)n, "data");
@@ -387,7 +387,7 @@ WcpPutImage (
void
WcpGetImage (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* WcpRequest */ ;
PrintField (buf, 1, 1, WCPREQUEST, WCPREQUESTHEADER) /* WcpSwitch */ ;
@@ -409,7 +409,7 @@ WcpGetImage (
void
WcpGetImageReply (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
@@ -427,7 +427,7 @@ WcpGetImageReply (
void
WcpCreateColorCursor (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* WcpRequest */ ;
PrintField (buf, 1, 1, WCPREQUEST, WCPREQUESTHEADER) /* WcpSwitch */ ;
@@ -442,7 +442,7 @@ WcpCreateColorCursor (
void
WcpCreateLut (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* WcpRequest */ ;
PrintField (buf, 1, 1, WCPREQUEST, WCPREQUESTHEADER) /* WcpSwitch */ ;
@@ -457,7 +457,7 @@ WcpCreateLut (
void
WcpFreeLut (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* WcpRequest */ ;
PrintField (buf, 1, 1, WCPREQUEST, WCPREQUESTHEADER) /* WcpSwitch */ ;
@@ -472,7 +472,7 @@ WcpFreeLut (
void
WcpCopyArea (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* WcpRequest */ ;
PrintField (buf, 1, 1, WCPREQUEST, WCPREQUESTHEADER) /* WcpSwitch */ ;
diff --git a/printnas.c b/printnas.c
index 24e5d67..64d8dad 100644
--- a/printnas.c
+++ b/printnas.c
@@ -40,8 +40,8 @@
#define printfield(a,b,c,d,e) if (NasVerbose > 1) PrintField(a,b,c,d,e)
-static void PrintFailedAudioSetUpReply (unsigned char *buf);
-static void PrintSuccessfulAudioSetUpReply (unsigned char *buf);
+static void PrintFailedAudioSetUpReply (const unsigned char *buf);
+static void PrintSuccessfulAudioSetUpReply (const unsigned char *buf);
/* ************************************************************ */
/* */
@@ -50,7 +50,7 @@ static void PrintSuccessfulAudioSetUpReply (unsigned char *buf);
void
PrintAudioSetUpMessage(
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
short d;
@@ -71,7 +71,7 @@ PrintAudioSetUpMessage(
}
void
-PrintAudioSetUpReply(unsigned char *buf)
+PrintAudioSetUpReply(const unsigned char *buf)
{
enterprocedure("PrintSetUpReply");
SetIndentLevel(PRINTSERVER);
@@ -82,7 +82,7 @@ PrintAudioSetUpReply(unsigned char *buf)
}
static void
-PrintFailedAudioSetUpReply(unsigned char *buf)
+PrintFailedAudioSetUpReply(const unsigned char *buf)
{
short n;
@@ -99,7 +99,7 @@ PrintFailedAudioSetUpReply(unsigned char *buf)
static void
PrintSuccessfulAudioSetUpReply(
- unsigned char *buf)
+ const unsigned char *buf)
{
short v;
short n;
@@ -142,7 +142,7 @@ PrintSuccessfulAudioSetUpReply(
static void
AudioRequestError(
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Request */ ;
if (NasVerbose < 1)
@@ -154,7 +154,7 @@ AudioRequestError(
static void
AudioValueError(
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Value */ ;
if (NasVerbose < 1)
@@ -167,7 +167,7 @@ AudioValueError(
static void
AudioMatchError(
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Match */ ;
if (NasVerbose < 1)
@@ -179,7 +179,7 @@ AudioMatchError(
static void
AudioAccessError(
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Access */ ;
if (NasVerbose < 1)
@@ -191,7 +191,7 @@ AudioAccessError(
static void
AudioAllocError(
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Alloc */ ;
if (NasVerbose < 1)
@@ -203,7 +203,7 @@ AudioAllocError(
static void
AudioIDChoiceError(
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* IDChoice */ ;
if (NasVerbose < 1)
@@ -216,7 +216,7 @@ AudioIDChoiceError(
static void
AudioLengthError(
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Length */ ;
if (NasVerbose < 1)
@@ -228,7 +228,7 @@ AudioLengthError(
static void
AudioImplementationError(
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 1, 1, ERROR, ERRORHEADER) /* Implementation */ ;
if (NasVerbose < 1)
@@ -247,7 +247,7 @@ AudioImplementationError(
void
AudioElementNotify (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, NASEVENT, EVENTHEADER);
if (NasVerbose < 1)
@@ -266,13 +266,13 @@ AudioElementNotify (
void
AudioGrabNotify (
- unsigned char *buf)
+ const unsigned char *buf)
{
}
void
AudioMonitorNotify (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, NASEVENT, EVENTHEADER);
if (NasVerbose < 1)
@@ -293,13 +293,13 @@ AudioMonitorNotify (
void
AudioBucketNotify (
- unsigned char *buf)
+ const unsigned char *buf)
{
}
void
AudioDeviceNotify (
- unsigned char *buf)
+ const unsigned char *buf)
{
}
@@ -312,7 +312,7 @@ AudioDeviceNotify (
void
UnknownAudioReply(
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
@@ -326,7 +326,7 @@ UnknownAudioReply(
void
AudioListDevices (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER) /* ListDevices */;
if (NasVerbose < 1)
@@ -338,7 +338,7 @@ AudioListDevices (
void
AudioListDevicesReply(
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* GetWindowAttributes */ ;
@@ -352,7 +352,7 @@ AudioListDevicesReply(
static long
AuString (
- unsigned char *buf)
+ const unsigned char *buf)
{
long n;
@@ -365,7 +365,7 @@ AuString (
static void
AuDeviceAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
int l;
printfield(buf, 0, 4, CARD32, "value mask");
@@ -381,7 +381,7 @@ AuDeviceAttributes (
void
AudioGetDeviceAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -393,7 +393,7 @@ AudioGetDeviceAttributes (
void
AudioGetDeviceAttributesReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -405,7 +405,7 @@ AudioGetDeviceAttributesReply (
void
AudioSetDeviceAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -419,7 +419,7 @@ AudioSetDeviceAttributes (
void
AudioCreateBucket (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -431,7 +431,7 @@ AudioCreateBucket (
void
AudioDestroyBucket (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -443,7 +443,7 @@ AudioDestroyBucket (
void
AudioListBuckets (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -455,7 +455,7 @@ AudioListBuckets (
void
AudioListBucketsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -466,7 +466,7 @@ AudioListBucketsReply (
void
AudioGetBucketAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -478,7 +478,7 @@ AudioGetBucketAttributes (
void
AudioGetBucketAttributesReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -489,7 +489,7 @@ AudioGetBucketAttributesReply (
void
AudioSetBucketAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -501,7 +501,7 @@ AudioSetBucketAttributes (
void
AudioCreateRadio (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -513,7 +513,7 @@ AudioCreateRadio (
void
AudioDestroyRadio (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -525,7 +525,7 @@ AudioDestroyRadio (
void
AudioListRadios (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -537,7 +537,7 @@ AudioListRadios (
void
AudioListRadiosReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -548,7 +548,7 @@ AudioListRadiosReply (
void
AudioGetRadioAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -560,7 +560,7 @@ AudioGetRadioAttributes (
void
AudioGetRadioAttributesReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -571,7 +571,7 @@ AudioGetRadioAttributesReply (
void
AudioSetRadioAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -583,7 +583,7 @@ AudioSetRadioAttributes (
void
AudioCreateFlow (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -595,7 +595,7 @@ AudioCreateFlow (
void
AudioDestroyFlow (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -607,7 +607,7 @@ AudioDestroyFlow (
void
AudioGetFlowAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -619,7 +619,7 @@ AudioGetFlowAttributes (
void
AudioGetFlowAttributesReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -630,7 +630,7 @@ AudioGetFlowAttributesReply (
void
AudioSetFlowAttributes (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -642,7 +642,7 @@ AudioSetFlowAttributes (
void
AudioGetElements (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -654,7 +654,7 @@ AudioGetElements (
void
AudioGetElementsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -665,7 +665,7 @@ AudioGetElementsReply (
void
AudioSetElements (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -677,7 +677,7 @@ AudioSetElements (
void
AudioGetElementStates (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -689,7 +689,7 @@ AudioGetElementStates (
void
AudioElementState (
- unsigned char *buf)
+ const unsigned char *buf)
{
printfield(buf, 0, 4, CARD32, "flow");
printfield(buf, 4, 1, CARD8, "element number");
@@ -698,7 +698,7 @@ AudioElementState (
void
AudioGetElementStatesReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
int n, i;
int o;
@@ -719,7 +719,7 @@ AudioGetElementStatesReply (
void
AudioSetElementStates (
- unsigned char *buf)
+ const unsigned char *buf)
{
int nstates, i;
int o;
@@ -741,7 +741,7 @@ AudioSetElementStates (
void
AudioGetElementParameters (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -753,7 +753,7 @@ AudioGetElementParameters (
void
AudioGetElementParametersReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -764,7 +764,7 @@ AudioGetElementParametersReply (
void
AudioSetElementParameters (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -776,7 +776,7 @@ AudioSetElementParameters (
void
AudioWriteElement (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -791,7 +791,7 @@ AudioWriteElement (
void
AudioReadElement (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -803,7 +803,7 @@ AudioReadElement (
void
AudioReadElementReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -814,7 +814,7 @@ AudioReadElementReply (
void
AudioGrabComponent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -826,7 +826,7 @@ AudioGrabComponent (
void
AudioUngrabComponent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -838,7 +838,7 @@ AudioUngrabComponent (
void
AudioSendEvent (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -850,7 +850,7 @@ AudioSendEvent (
void
AudioGetAllowedUsers (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -862,7 +862,7 @@ AudioGetAllowedUsers (
void
AudioGetAllowedUsersReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -873,7 +873,7 @@ AudioGetAllowedUsersReply (
void
AudioSetAllowedUsers (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -885,7 +885,7 @@ AudioSetAllowedUsers (
void
AudioListExtensions (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -897,7 +897,7 @@ AudioListExtensions (
void
AudioListExtensionsReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -908,7 +908,7 @@ AudioListExtensionsReply (
void
AudioQueryExtension (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -920,7 +920,7 @@ AudioQueryExtension (
void
AudioQueryExtensionReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -931,7 +931,7 @@ AudioQueryExtensionReply (
void
AudioGetCloseDownMode (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -943,7 +943,7 @@ AudioGetCloseDownMode (
void
AudioGetCloseDownModeReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -954,7 +954,7 @@ AudioGetCloseDownModeReply (
void
AudioSetCloseDownMode (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -966,7 +966,7 @@ AudioSetCloseDownMode (
void
AudioKillClient (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -978,7 +978,7 @@ AudioKillClient (
void
AudioGetServerTime (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
@@ -990,7 +990,7 @@ AudioGetServerTime (
void
AudioGetServerTimeReply (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (RBf, 0, 1, NASREPLY, REPLYHEADER);
if (NasVerbose < 1)
@@ -1001,7 +1001,7 @@ AudioGetServerTimeReply (
void
AudioNoOperation (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField (buf, 0, 1, NASREQUEST, REQUESTHEADER);
if (NasVerbose < 1)
diff --git a/proto.h b/proto.h
index dba23d1..232c6ee 100644
--- a/proto.h
+++ b/proto.h
@@ -17,18 +17,18 @@ extern void ReplyExpected (FD fd, short Request);
extern void ExtendedReplyExpected (FD fd, short Request, short RequestMinor);
extern void KeepLastReplyExpected (void);
-extern void DecodeRequest (FD fd, unsigned char *buf, long n);
-extern void DecodeReply (FD fd, unsigned char *buf, long n);
-extern void DecodeError (FD fd, unsigned char *buf, long n);
-extern void DecodeEvent (FD fd, unsigned char *buf, long n);
+extern void DecodeRequest (FD fd, const unsigned char *buf, long n);
+extern void DecodeReply (FD fd, const unsigned char *buf, long n);
+extern void DecodeError (FD fd, const unsigned char *buf, long n);
+extern void DecodeEvent (FD fd, const unsigned char *buf, long n);
/* X11 Extension decoders in decode_*.c */
#define extension_decode_prototypes(ext) \
- extern void ext##_decode_req (FD fd, unsigned char *buf); \
- extern void ext##_decode_reply (FD fd, unsigned char *buf, \
- short RequestMinor); \
- extern void ext##_decode_error (FD fd, unsigned char *buf); \
- extern void ext##_decode_event (FD fd, unsigned char *buf)
+ extern void ext##_decode_req (FD fd, const unsigned char *buf); \
+ extern void ext##_decode_reply (FD fd, const unsigned char *buf, \
+ short RequestMinor); \
+ extern void ext##_decode_error (FD fd, const unsigned char *buf); \
+ extern void ext##_decode_event (FD fd, const unsigned char *buf)
extension_decode_prototypes(bigreq);
extension_decode_prototypes(lbx);
@@ -37,247 +37,251 @@ extension_decode_prototypes(randr);
extension_decode_prototypes(render);
extension_decode_prototypes(wcp);
-extern void InitializeBIGREQ (unsigned char *buf);
-extern void InitializeLBX (unsigned char *buf);
-extern void InitializeMITSHM (unsigned char *buf);
-extern void InitializeRANDR (unsigned char *buf);
-extern void InitializeRENDER (unsigned char *buf);
-extern void InitializeWCP (unsigned char *buf);
+extern void InitializeBIGREQ (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);
/* print11.c */
-extern void PrintSetUpMessage (unsigned char *buf);
-extern void PrintSetUpReply (unsigned char *buf);
+extern void PrintSetUpMessage (const unsigned char *buf);
+extern void PrintSetUpReply (const unsigned char *buf);
-extern void RequestError (unsigned char *buf);
-extern void ValueError (unsigned char *buf);
-extern void WindowError (unsigned char *buf);
-extern void PixmapError (unsigned char *buf);
-extern void AtomError (unsigned char *buf);
-extern void CursorError (unsigned char *buf);
-extern void FontError (unsigned char *buf);
-extern void MatchError (unsigned char *buf);
-extern void DrawableError (unsigned char *buf);
-extern void AccessError (unsigned char *buf);
-extern void AllocError (unsigned char *buf);
-extern void ColormapError (unsigned char *buf);
-extern void GContextError (unsigned char *buf);
-extern void IDChoiceError (unsigned char *buf);
-extern void NameError (unsigned char *buf);
-extern void LengthError (unsigned char *buf);
-extern void ImplementationError (unsigned char *buf);
+extern void RequestError (const unsigned char *buf);
+extern void ValueError (const unsigned char *buf);
+extern void WindowError (const unsigned char *buf);
+extern void PixmapError (const unsigned char *buf);
+extern void AtomError (const unsigned char *buf);
+extern void CursorError (const unsigned char *buf);
+extern void FontError (const unsigned char *buf);
+extern void MatchError (const unsigned char *buf);
+extern void DrawableError (const unsigned char *buf);
+extern void AccessError (const unsigned char *buf);
+extern void AllocError (const unsigned char *buf);
+extern void ColormapError (const unsigned char *buf);
+extern void GContextError (const unsigned char *buf);
+extern void IDChoiceError (const unsigned char *buf);
+extern void NameError (const unsigned char *buf);
+extern void LengthError (const unsigned char *buf);
+extern void ImplementationError (const unsigned char *buf);
-extern void KeyPressEvent (unsigned char *buf);
-extern void KeyReleaseEvent (unsigned char *buf);
-extern void ButtonPressEvent (unsigned char *buf);
-extern void ButtonReleaseEvent (unsigned char *buf);
-extern void MotionNotifyEvent (unsigned char *buf);
-extern void EnterNotifyEvent (unsigned char *buf);
-extern void LeaveNotifyEvent (unsigned char *buf);
-extern void FocusInEvent (unsigned char *buf);
-extern void FocusOutEvent (unsigned char *buf);
-extern void KeymapNotifyEvent (unsigned char *buf);
-extern void ExposeEvent (unsigned char *buf);
-extern void GraphicsExposureEvent (unsigned char *buf);
-extern void NoExposureEvent (unsigned char *buf);
-extern void VisibilityNotifyEvent (unsigned char *buf);
-extern void CreateNotifyEvent (unsigned char *buf);
-extern void DestroyNotifyEvent (unsigned char *buf);
-extern void UnmapNotifyEvent (unsigned char *buf);
-extern void MapNotifyEvent (unsigned char *buf);
-extern void MapRequestEvent (unsigned char *buf);
-extern void ReparentNotifyEvent (unsigned char *buf);
-extern void ConfigureNotifyEvent (unsigned char *buf);
-extern void ConfigureRequestEvent (unsigned char *buf);
-extern void GravityNotifyEvent (unsigned char *buf);
-extern void ResizeRequestEvent (unsigned char *buf);
-extern void CirculateNotifyEvent (unsigned char *buf);
-extern void CirculateRequestEvent (unsigned char *buf);
-extern void PropertyNotifyEvent (unsigned char *buf);
-extern void SelectionClearEvent (unsigned char *buf);
-extern void SelectionRequestEvent (unsigned char *buf);
-extern void SelectionNotifyEvent (unsigned char *buf);
-extern void ColormapNotifyEvent (unsigned char *buf);
-extern void ClientMessageEvent (unsigned char *buf);
-extern void MappingNotifyEvent (unsigned char *buf);
+extern void KeyPressEvent (const unsigned char *buf);
+extern void KeyReleaseEvent (const unsigned char *buf);
+extern void ButtonPressEvent (const unsigned char *buf);
+extern void ButtonReleaseEvent (const unsigned char *buf);
+extern void MotionNotifyEvent (const unsigned char *buf);
+extern void EnterNotifyEvent (const unsigned char *buf);
+extern void LeaveNotifyEvent (const unsigned char *buf);
+extern void FocusInEvent (const unsigned char *buf);
+extern void FocusOutEvent (const unsigned char *buf);
+extern void KeymapNotifyEvent (const unsigned char *buf);
+extern void ExposeEvent (const unsigned char *buf);
+extern void GraphicsExposureEvent (const unsigned char *buf);
+extern void NoExposureEvent (const unsigned char *buf);
+extern void VisibilityNotifyEvent (const unsigned char *buf);
+extern void CreateNotifyEvent (const unsigned char *buf);
+extern void DestroyNotifyEvent (const unsigned char *buf);
+extern void UnmapNotifyEvent (const unsigned char *buf);
+extern void MapNotifyEvent (const unsigned char *buf);
+extern void MapRequestEvent (const unsigned char *buf);
+extern void ReparentNotifyEvent (const unsigned char *buf);
+extern void ConfigureNotifyEvent (const unsigned char *buf);
+extern void ConfigureRequestEvent (const unsigned char *buf);
+extern void GravityNotifyEvent (const unsigned char *buf);
+extern void ResizeRequestEvent (const unsigned char *buf);
+extern void CirculateNotifyEvent (const unsigned char *buf);
+extern void CirculateRequestEvent (const unsigned char *buf);
+extern void PropertyNotifyEvent (const unsigned char *buf);
+extern void SelectionClearEvent (const unsigned char *buf);
+extern void SelectionRequestEvent (const unsigned char *buf);
+extern void SelectionNotifyEvent (const unsigned char *buf);
+extern void ColormapNotifyEvent (const unsigned char *buf);
+extern void ClientMessageEvent (const unsigned char *buf);
+extern void MappingNotifyEvent (const unsigned char *buf);
-extern void ExtendedRequest (int fd, unsigned char *buf);
-extern void UnknownReply (unsigned char *buf);
+extern void ExtendedRequest (int fd, const unsigned char *buf);
+extern void UnknownReply (const unsigned char *buf);
-extern void CreateWindow (unsigned char *buf);
-extern void ChangeWindowAttributes (unsigned char *buf);
-extern void GetWindowAttributes (unsigned char *buf);
-extern void GetWindowAttributesReply (unsigned char *buf);
-extern void DestroyWindow (unsigned char *buf);
-extern void DestroySubwindows (unsigned char *buf);
-extern void ChangeSaveSet (unsigned char *buf);
-extern void ReparentWindow (unsigned char *buf);
-extern void MapWindow (unsigned char *buf);
-extern void MapSubwindows (unsigned char *buf);
-extern void UnmapWindow (unsigned char *buf);
-extern void UnmapSubwindows (unsigned char *buf);
-extern void ConfigureWindow (unsigned char *buf);
-extern void CirculateWindow (unsigned char *buf);
-extern void GetGeometry (unsigned char *buf);
-extern void GetGeometryReply (unsigned char *buf);
-extern void QueryTree (unsigned char *buf);
-extern void QueryTreeReply (unsigned char *buf);
-extern void InternAtom (unsigned char *buf);
-extern void InternAtomReply (unsigned char *buf);
-extern void GetAtomName (unsigned char *buf);
-extern void GetAtomNameReply (unsigned char *buf);
-extern void ChangeProperty (unsigned char *buf);
-extern void DeleteProperty (unsigned char *buf);
-extern void GetProperty (unsigned char *buf);
-extern void GetPropertyReply (unsigned char *buf);
-extern void ListProperties (unsigned char *buf);
-extern void ListPropertiesReply (unsigned char *buf);
-extern void SetSelectionOwner (unsigned char *buf);
-extern void GetSelectionOwner (unsigned char *buf);
-extern void GetSelectionOwnerReply (unsigned char *buf);
-extern void ConvertSelection (unsigned char *buf);
-extern void SendEvent (unsigned char *buf);
-extern void GrabPointer (unsigned char *buf);
-extern void GrabPointerReply (unsigned char *buf);
-extern void UngrabPointer (unsigned char *buf);
-extern void GrabButton (unsigned char *buf);
-extern void UngrabButton (unsigned char *buf);
-extern void ChangeActivePointerGrab (unsigned char *buf);
-extern void GrabKeyboard (unsigned char *buf);
-extern void GrabKeyboardReply (unsigned char *buf);
-extern void UngrabKeyboard (unsigned char *buf);
-extern void GrabKey (unsigned char *buf);
-extern void UngrabKey (unsigned char *buf);
-extern void AllowEvents (unsigned char *buf);
-extern void GrabServer (unsigned char *buf);
-extern void UngrabServer (unsigned char *buf);
-extern void QueryPointer (unsigned char *buf);
-extern void QueryPointerReply (unsigned char *buf);
-extern void GetMotionEvents (unsigned char *buf);
-extern void GetMotionEventsReply (unsigned char *buf);
-extern void TranslateCoordinates (unsigned char *buf);
-extern void TranslateCoordinatesReply (unsigned char *buf);
-extern void WarpPointer (unsigned char *buf);
-extern void SetInputFocus (unsigned char *buf);
-extern void GetInputFocus (unsigned char *buf);
-extern void GetInputFocusReply (unsigned char *buf);
-extern void QueryKeymap (unsigned char *buf);
-extern void QueryKeymapReply (unsigned char *buf);
-extern void OpenFont (unsigned char *buf);
-extern void CloseFont (unsigned char *buf);
-extern void QueryFont (unsigned char *buf);
-extern void QueryFontReply (unsigned char *buf);
-extern void QueryTextExtents (unsigned char *buf);
-extern void QueryTextExtentsReply (unsigned char *buf);
-extern void ListFonts (unsigned char *buf);
-extern void ListFontsReply (unsigned char *buf);
-extern void ListFontsWithInfo (unsigned char *buf);
-extern void ListFontsWithInfoReply (unsigned char *buf);
-extern void SetFontPath (unsigned char *buf);
-extern void GetFontPath (unsigned char *buf);
-extern void GetFontPathReply (unsigned char *buf);
-extern void CreatePixmap (unsigned char *buf);
-extern void FreePixmap (unsigned char *buf);
-extern void CreateGC (unsigned char *buf);
-extern void ChangeGC (unsigned char *buf);
-extern void CopyGC (unsigned char *buf);
-extern void SetDashes (unsigned char *buf);
-extern void SetClipRectangles (unsigned char *buf);
-extern void FreeGC (unsigned char *buf);
-extern void ClearArea (unsigned char *buf);
-extern void CopyArea (unsigned char *buf);
-extern void CopyPlane (unsigned char *buf);
-extern void PolyPoint (unsigned char *buf);
-extern void PolyLine (unsigned char *buf);
-extern void PolySegment (unsigned char *buf);
-extern void PolyRectangle (unsigned char *buf);
-extern void PolyArc (unsigned char *buf);
-extern void FillPoly (unsigned char *buf);
-extern void PolyFillRectangle (unsigned char *buf);
-extern void PolyFillArc (unsigned char *buf);
-extern void PutImage (unsigned char *buf);
-extern void GetImage (unsigned char *buf);
-extern void GetImageReply (unsigned char *buf);
-extern void PolyText8 (unsigned char *buf);
-extern void PolyText16 (unsigned char *buf);
-extern void ImageText8 (unsigned char *buf);
-extern void ImageText16 (unsigned char *buf);
-extern void CreateColormap (unsigned char *buf);
-extern void FreeColormap (unsigned char *buf);
-extern void CopyColormapAndFree (unsigned char *buf);
-extern void InstallColormap (unsigned char *buf);
-extern void UninstallColormap (unsigned char *buf);
-extern void ListInstalledColormaps (unsigned char *buf);
-extern void ListInstalledColormapsReply (unsigned char *buf);
-extern void AllocColor (unsigned char *buf);
-extern void AllocColorReply (unsigned char *buf);
-extern void AllocNamedColor (unsigned char *buf);
-extern void AllocNamedColorReply (unsigned char *buf);
-extern void AllocColorCells (unsigned char *buf);
-extern void AllocColorCellsReply (unsigned char *buf);
-extern void AllocColorPlanes (unsigned char *buf);
-extern void AllocColorPlanesReply (unsigned char *buf);
-extern void FreeColors (unsigned char *buf);
-extern void StoreColors (unsigned char *buf);
-extern void StoreNamedColor (unsigned char *buf);
-extern void QueryColors (unsigned char *buf);
-extern void QueryColorsReply (unsigned char *buf);
-extern void LookupColor (unsigned char *buf);
-extern void LookupColorReply (unsigned char *buf);
-extern void CreateCursor (unsigned char *buf);
-extern void CreateGlyphCursor (unsigned char *buf);
-extern void FreeCursor (unsigned char *buf);
-extern void RecolorCursor (unsigned char *buf);
-extern void QueryBestSize (unsigned char *buf);
-extern void QueryBestSizeReply (unsigned char *buf);
-extern void QueryExtension (unsigned char *buf);
-extern void QueryExtensionReply (unsigned char *buf);
-extern void ListExtensions (unsigned char *buf);
-extern void ListExtensionsReply (unsigned char *buf);
-extern void ChangeKeyboardMapping (unsigned char *buf);
-extern void GetKeyboardMapping (unsigned char *buf);
-extern void GetKeyboardMappingReply (unsigned char *buf);
-extern void ChangeKeyboardControl (unsigned char *buf);
-extern void GetKeyboardControl (unsigned char *buf);
-extern void GetKeyboardControlReply (unsigned char *buf);
-extern void Bell (unsigned char *buf);
-extern void ChangePointerControl (unsigned char *buf);
-extern void GetPointerControl (unsigned char *buf);
-extern void GetPointerControlReply (unsigned char *buf);
-extern void SetScreenSaver (unsigned char *buf);
-extern void GetScreenSaver (unsigned char *buf);
-extern void GetScreenSaverReply (unsigned char *buf);
-extern void ChangeHosts (unsigned char *buf);
-extern void ListHosts (unsigned char *buf);
-extern void ListHostsReply (unsigned char *buf);
-extern void SetAccessControl (unsigned char *buf);
-extern void SetCloseDownMode (unsigned char *buf);
-extern void KillClient (unsigned char *buf);
-extern void RotateProperties (unsigned char *buf);
-extern void ForceScreenSaver (unsigned char *buf);
-extern void SetPointerMapping (unsigned char *buf);
-extern void SetPointerMappingReply (unsigned char *buf);
-extern void GetPointerMapping (unsigned char *buf);
-extern void GetPointerMappingReply (unsigned char *buf);
-extern void SetModifierMapping (unsigned char *buf);
-extern void SetModifierMappingReply (unsigned char *buf);
-extern void GetModifierMapping (unsigned char *buf);
-extern void GetModifierMappingReply (unsigned char *buf);
-extern void NoOperation (unsigned char *buf);
+extern void CreateWindow (const unsigned char *buf);
+extern void ChangeWindowAttributes (const unsigned char *buf);
+extern void GetWindowAttributes (const unsigned char *buf);
+extern void GetWindowAttributesReply (const unsigned char *buf);
+extern void DestroyWindow (const unsigned char *buf);
+extern void DestroySubwindows (const unsigned char *buf);
+extern void ChangeSaveSet (const unsigned char *buf);
+extern void ReparentWindow (const unsigned char *buf);
+extern void MapWindow (const unsigned char *buf);
+extern void MapSubwindows (const unsigned char *buf);
+extern void UnmapWindow (const unsigned char *buf);
+extern void UnmapSubwindows (const unsigned char *buf);
+extern void ConfigureWindow (const unsigned char *buf);
+extern void CirculateWindow (const unsigned char *buf);
+extern void GetGeometry (const unsigned char *buf);
+extern void GetGeometryReply (const unsigned char *buf);
+extern void QueryTree (const unsigned char *buf);
+extern void QueryTreeReply (const unsigned char *buf);
+extern void InternAtom (const unsigned char *buf);
+extern void InternAtomReply (const unsigned char *buf);
+extern void GetAtomName (const unsigned char *buf);
+extern void GetAtomNameReply (const unsigned char *buf);
+extern void ChangeProperty (const unsigned char *buf);
+extern void DeleteProperty (const unsigned char *buf);
+extern void GetProperty (const unsigned char *buf);
+extern void GetPropertyReply (const unsigned char *buf);
+extern void ListProperties (const unsigned char *buf);
+extern void ListPropertiesReply (const unsigned char *buf);
+extern void SetSelectionOwner (const unsigned char *buf);
+extern void GetSelectionOwner (const unsigned char *buf);
+extern void GetSelectionOwnerReply (const unsigned char *buf);
+extern void ConvertSelection (const unsigned char *buf);
+extern void SendEvent (const unsigned char *buf);
+extern void GrabPointer (const unsigned char *buf);
+extern void GrabPointerReply (const unsigned char *buf);
+extern void UngrabPointer (const unsigned char *buf);
+extern void GrabButton (const unsigned char *buf);
+extern void UngrabButton (const unsigned char *buf);
+extern void ChangeActivePointerGrab (const unsigned char *buf);
+extern void GrabKeyboard (const unsigned char *buf);
+extern void GrabKeyboardReply (const unsigned char *buf);
+extern void UngrabKeyboard (const unsigned char *buf);
+extern void GrabKey (const unsigned char *buf);
+extern void UngrabKey (const unsigned char *buf);
+extern void AllowEvents (const unsigned char *buf);
+extern void GrabServer (const unsigned char *buf);
+extern void UngrabServer (const unsigned char *buf);
+extern void QueryPointer (const unsigned char *buf);
+extern void QueryPointerReply (const unsigned char *buf);
+extern void GetMotionEvents (const unsigned char *buf);
+extern void GetMotionEventsReply (const unsigned char *buf);
+extern void TranslateCoordinates (const unsigned char *buf);
+extern void TranslateCoordinatesReply (const unsigned char *buf);
+extern void WarpPointer (const unsigned char *buf);
+extern void SetInputFocus (const unsigned char *buf);
+extern void GetInputFocus (const unsigned char *buf);
+extern void GetInputFocusReply (const unsigned char *buf);
+extern void QueryKeymap (const unsigned char *buf);
+extern void QueryKeymapReply (const unsigned char *buf);
+extern void OpenFont (const unsigned char *buf);
+extern void CloseFont (const unsigned char *buf);
+extern void QueryFont (const unsigned char *buf);
+extern void QueryFontReply (const unsigned char *buf);
+extern void QueryTextExtents (const unsigned char *buf);
+extern void QueryTextExtentsReply (const unsigned char *buf);
+extern void ListFonts (const unsigned char *buf);
+extern void ListFontsReply (const unsigned char *buf);
+extern void ListFontsWithInfo (const unsigned char *buf);
+extern void ListFontsWithInfoReply (const unsigned char *buf);
+extern void SetFontPath (const unsigned char *buf);
+extern void GetFontPath (const unsigned char *buf);
+extern void GetFontPathReply (const unsigned char *buf);
+extern void CreatePixmap (const unsigned char *buf);
+extern void FreePixmap (const unsigned char *buf);
+extern void CreateGC (const unsigned char *buf);
+extern void ChangeGC (const unsigned char *buf);
+extern void CopyGC (const unsigned char *buf);
+extern void SetDashes (const unsigned char *buf);
+extern void SetClipRectangles (const unsigned char *buf);
+extern void FreeGC (const unsigned char *buf);
+extern void ClearArea (const unsigned char *buf);
+extern void CopyArea (const unsigned char *buf);
+extern void CopyPlane (const unsigned char *buf);
+extern void PolyPoint (const unsigned char *buf);
+extern void PolyLine (const unsigned char *buf);
+extern void PolySegment (const unsigned char *buf);
+extern void PolyRectangle (const unsigned char *buf);
+extern void PolyArc (const unsigned char *buf);
+extern void FillPoly (const unsigned char *buf);
+extern void PolyFillRectangle (const unsigned char *buf);
+extern void PolyFillArc (const unsigned char *buf);
+extern void PutImage (const unsigned char *buf);
+extern void GetImage (const unsigned char *buf);
+extern void GetImageReply (const unsigned char *buf);
+extern void PolyText8 (const unsigned char *buf);
+extern void PolyText16 (const unsigned char *buf);
+extern void ImageText8 (const unsigned char *buf);
+extern void ImageText16 (const unsigned char *buf);
+extern void CreateColormap (const unsigned char *buf);
+extern void FreeColormap (const unsigned char *buf);
+extern void CopyColormapAndFree (const unsigned char *buf);
+extern void InstallColormap (const unsigned char *buf);
+extern void UninstallColormap (const unsigned char *buf);
+extern void ListInstalledColormaps (const unsigned char *buf);
+extern void ListInstalledColormapsReply (const unsigned char *buf);
+extern void AllocColor (const unsigned char *buf);
+extern void AllocColorReply (const unsigned char *buf);
+extern void AllocNamedColor (const unsigned char *buf);
+extern void AllocNamedColorReply (const unsigned char *buf);
+extern void AllocColorCells (const unsigned char *buf);
+extern void AllocColorCellsReply (const unsigned char *buf);
+extern void AllocColorPlanes (const unsigned char *buf);
+extern void AllocColorPlanesReply (const unsigned char *buf);
+extern void FreeColors (const unsigned char *buf);
+extern void StoreColors (const unsigned char *buf);
+extern void StoreNamedColor (const unsigned char *buf);
+extern void QueryColors (const unsigned char *buf);
+extern void QueryColorsReply (const unsigned char *buf);
+extern void LookupColor (const unsigned char *buf);
+extern void LookupColorReply (const unsigned char *buf);
+extern void CreateCursor (const unsigned char *buf);
+extern void CreateGlyphCursor (const unsigned char *buf);
+extern void FreeCursor (const unsigned char *buf);
+extern void RecolorCursor (const unsigned char *buf);
+extern void QueryBestSize (const unsigned char *buf);
+extern void QueryBestSizeReply (const unsigned char *buf);
+extern void QueryExtension (const unsigned char *buf);
+extern void QueryExtensionReply (const unsigned char *buf);
+extern void ListExtensions (const unsigned char *buf);
+extern void ListExtensionsReply (const unsigned char *buf);
+extern void ChangeKeyboardMapping (const unsigned char *buf);
+extern void GetKeyboardMapping (const unsigned char *buf);
+extern void GetKeyboardMappingReply (const unsigned char *buf);
+extern void ChangeKeyboardControl (const unsigned char *buf);
+extern void GetKeyboardControl (const unsigned char *buf);
+extern void GetKeyboardControlReply (const unsigned char *buf);
+extern void Bell (const unsigned char *buf);
+extern void ChangePointerControl (const unsigned char *buf);
+extern void GetPointerControl (const unsigned char *buf);
+extern void GetPointerControlReply (const unsigned char *buf);
+extern void SetScreenSaver (const unsigned char *buf);
+extern void GetScreenSaver (const unsigned char *buf);
+extern void GetScreenSaverReply (const unsigned char *buf);
+extern void ChangeHosts (const unsigned char *buf);
+extern void ListHosts (const unsigned char *buf);
+extern void ListHostsReply (const unsigned char *buf);
+extern void SetAccessControl (const unsigned char *buf);
+extern void SetCloseDownMode (const unsigned char *buf);
+extern void KillClient (const unsigned char *buf);
+extern void RotateProperties (const unsigned char *buf);
+extern void ForceScreenSaver (const unsigned char *buf);
+extern void SetPointerMapping (const unsigned char *buf);
+extern void SetPointerMappingReply (const unsigned char *buf);
+extern void GetPointerMapping (const unsigned char *buf);
+extern void GetPointerMappingReply (const unsigned char *buf);
+extern void SetModifierMapping (const unsigned char *buf);
+extern void SetModifierMappingReply (const unsigned char *buf);
+extern void GetModifierMapping (const unsigned char *buf);
+extern void GetModifierMappingReply (const unsigned char *buf);
+extern void NoOperation (const unsigned char *buf);
/* prtype.c */
extern void SetIndentLevel (short which);
-extern void DumpHexBuffer (unsigned char *buf, long n);
-extern void DumpItem (char *name, FD fd, unsigned char *buf, long n);
-extern void PrintField (unsigned char *buf, short start, short length,
- short FieldType, char *name);
-extern int PrintBytes (unsigned char buf[], long number, char *name);
-extern void PrintValues (unsigned char *control, int clength, int ctype,
- unsigned char *values, char *name);
-extern void PrintTextList8 (unsigned char *buf, int length, char *name);
-extern void PrintTextList16 (unsigned char *buf, int length, char *name);
+extern void DumpHexBuffer (const unsigned char *buf, long n);
+extern void DumpItem (const char *name, FD fd,
+ const unsigned char *buf, long n);
+extern void PrintField (const unsigned char *buf, short start, short length,
+ short FieldType, const char *name);
+extern int PrintBytes (const unsigned char *buf, long number,
+ const char *name);
+extern void PrintValues (const unsigned char *control, int clength, int ctype,
+ const unsigned char *values, const char *name);
+extern void PrintTextList8 (const unsigned char *buf, int length,
+ const char *name);
+extern void PrintTextList16 (const unsigned char *buf, int length,
+ const char *name);
/* scope.c */
-extern void TestBreakPoints (unsigned char *buf, long n);
+extern void TestBreakPoints (const unsigned char *buf, long n);
extern void TimerExpired (void);
extern void SetUpPair (FD client, FD server);
extern FD FDPair (FD fd);
@@ -292,9 +296,9 @@ extern void ReadCommands (void);
/* server.c */
extern FD ConnectToServer (Boolean report);
-extern void ProcessBuffer (FD fd, unsigned char *buf, long n);
-extern void ReportFromClient (FD fd, unsigned char *buf, long n);
-extern void ReportFromServer (FD fd, unsigned char *buf, long n);
+extern void ProcessBuffer (FD fd, const unsigned char *buf, long n);
+extern void ReportFromClient (FD fd, const unsigned char *buf, long n);
+extern void ReportFromServer (FD fd, const unsigned char *buf, long n);
extern void PrintTime (void);
extern void SetBufLimit (FD fd);
extern void ClearBufLimit (FD fd);
@@ -302,16 +306,16 @@ extern void StartClientConnection (FD fd);
extern void StopClientConnection (FD fd);
extern void StartServerConnection (FD fd);
extern void StopServerConnection (FD fd);
-extern long StartSetUpMessage (FD fd, unsigned char *buf, long n);
-extern long StartSetUpReply (FD fd, unsigned char *buf, long n);
+extern long StartSetUpMessage (FD fd, const unsigned char *buf, long n);
+extern long StartSetUpReply (FD fd, const unsigned char *buf, long n);
-extern long GetXRequestFromName (char *name);
+extern long GetXRequestFromName (const char *name);
/* table11.c */
extern void InitializeX11 (void);
-extern TYPE DefineType (short typeid, short class, char *name,
- int (*printproc)(unsigned char *));
-extern void DefineEValue (TYPE type, long value, char *name);
+extern TYPE DefineType (short typeid, short class, const char *name,
+ int (*printproc)(const unsigned char *));
+extern void DefineEValue (TYPE type, long value, const char *name);
extern void DefineValues (TYPE type, long value, short length,
- short ctype, char *name);
-extern long GetEValue (short typeid, char *name);
+ short ctype, const char *name);
+extern long GetEValue (short typeid, const char *name);
diff --git a/prtype.c b/prtype.c
index ad41748..56ff1db 100644
--- a/prtype.c
+++ b/prtype.c
@@ -176,9 +176,9 @@ SizeofLeader (void)
void
DumpItem (
- char *name,
+ const char *name,
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
if (n == 0)
@@ -196,7 +196,7 @@ DumpItem (
/* ************************************************************ */
int
-PrintINT8(unsigned char *buf)
+PrintINT8(const unsigned char *buf)
{
/* print a INT8 -- 8-bit signed integer */
short n = IByte (buf);
@@ -207,7 +207,7 @@ PrintINT8(unsigned char *buf)
}
int
-PrintINT16(unsigned char *buf)
+PrintINT16(const unsigned char *buf)
{
/* print a INT16 -- 16-bit signed integer */
long n = IShort (buf);
@@ -218,7 +218,7 @@ PrintINT16(unsigned char *buf)
}
int
-PrintINT32(unsigned char *buf)
+PrintINT32(const unsigned char *buf)
{
/* print a INT32 -- 32-bit signed integer */
long n = ILong (buf);
@@ -229,7 +229,7 @@ PrintINT32(unsigned char *buf)
/* ************************************************************ */
int
-PrintCARD8(unsigned char *buf)
+PrintCARD8(const unsigned char *buf)
{
/* print a CARD8 -- 8-bit unsigned integer */
unsigned short n = IByte (buf);
@@ -238,7 +238,7 @@ PrintCARD8(unsigned char *buf)
}
int
-PrintCARD16(unsigned char *buf)
+PrintCARD16(const unsigned char *buf)
{
/* print a CARD16 -- 16-bit unsigned integer */
unsigned long n = IShort (buf);
@@ -247,7 +247,7 @@ PrintCARD16(unsigned char *buf)
}
int
-PrintCARD32(unsigned char *buf)
+PrintCARD32(const unsigned char *buf)
{
/* print a CARD32 -- 32-bit unsigned integer */
unsigned long n = ILong (buf);
@@ -258,7 +258,7 @@ PrintCARD32(unsigned char *buf)
/* ************************************************************ */
int
-PrintBYTE(unsigned char *buf)
+PrintBYTE(const unsigned char *buf)
{
/* print a BYTE -- 8-bit value */
short n = IByte (buf);
@@ -268,7 +268,7 @@ PrintBYTE(unsigned char *buf)
int
-PrintCHAR8(unsigned char *buf)
+PrintCHAR8(const unsigned char *buf)
{
/* print a CHAR8 -- 8-bit character */
unsigned short n = IByte (buf);
@@ -278,7 +278,7 @@ PrintCHAR8(unsigned char *buf)
int
-PrintSTRING16(unsigned char *buf)
+PrintSTRING16(const unsigned char *buf)
{
/* print a CHAR2B -- 16-bit character which is never byte-swapped */
unsigned short n = IChar2B (buf);
@@ -287,7 +287,7 @@ PrintSTRING16(unsigned char *buf)
}
int
-PrintSTR(unsigned char *buf)
+PrintSTR(const unsigned char *buf)
{
/* STR have the length (1 byte) then a string of CHAR8 */
short n;
@@ -302,7 +302,7 @@ PrintSTR(unsigned char *buf)
/* ************************************************************ */
int
-PrintWINDOW(unsigned char *buf)
+PrintWINDOW(const unsigned char *buf)
{
/* print a WINDOW -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -314,7 +314,7 @@ PrintWINDOW(unsigned char *buf)
}
int
-PrintWINDOWD(unsigned char *buf)
+PrintWINDOWD(const unsigned char *buf)
{
/* print a WINDOWD -- CARD32 plus 0 = PointerWindow, 1 = InputFocus */
long n = ILong (buf);
@@ -328,7 +328,7 @@ PrintWINDOWD(unsigned char *buf)
}
int
-PrintWINDOWNR(unsigned char *buf)
+PrintWINDOWNR(const unsigned char *buf)
{
/* print a WINDOWNR -- CARD32 plus 0 = None, 1 = PointerRoot */
long n = ILong (buf);
@@ -343,7 +343,7 @@ PrintWINDOWNR(unsigned char *buf)
int
-PrintPIXMAP(unsigned char *buf)
+PrintPIXMAP(const unsigned char *buf)
{
/* print a PIXMAP -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -355,7 +355,7 @@ PrintPIXMAP(unsigned char *buf)
}
int
-PrintPIXMAPNPR(unsigned char *buf)
+PrintPIXMAPNPR(const unsigned char *buf)
{
/* print a PIXMAPNPR -- CARD32 plus 0 = None, 1 = ParentRelative */
long n = ILong (buf);
@@ -369,7 +369,7 @@ PrintPIXMAPNPR(unsigned char *buf)
}
int
-PrintPIXMAPC(unsigned char *buf)
+PrintPIXMAPC(const unsigned char *buf)
{
/* print a PIXMAPC -- CARD32 plus 0 = CopyFromParent */
long n = ILong (buf);
@@ -382,7 +382,7 @@ PrintPIXMAPC(unsigned char *buf)
int
-PrintCURSOR(unsigned char *buf)
+PrintCURSOR(const unsigned char *buf)
{
/* print a CURSOR -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -395,7 +395,7 @@ PrintCURSOR(unsigned char *buf)
int
-PrintFONT(unsigned char *buf)
+PrintFONT(const unsigned char *buf)
{
/* print a FONT -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -408,7 +408,7 @@ PrintFONT(unsigned char *buf)
int
-PrintGCONTEXT(unsigned char *buf)
+PrintGCONTEXT(const unsigned char *buf)
{
/* print a GCONTEXT -- CARD32 */
long n = ILong (buf);
@@ -418,7 +418,7 @@ PrintGCONTEXT(unsigned char *buf)
int
-PrintCOLORMAP(unsigned char *buf)
+PrintCOLORMAP(const unsigned char *buf)
{
/* print a COLORMAP -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -430,7 +430,7 @@ PrintCOLORMAP(unsigned char *buf)
}
int
-PrintCOLORMAPC(unsigned char *buf)
+PrintCOLORMAPC(const unsigned char *buf)
{
/* print a COLORMAPC -- CARD32 plus 0 = CopyFromParent */
long n = ILong (buf);
@@ -443,7 +443,7 @@ PrintCOLORMAPC(unsigned char *buf)
int
-PrintDRAWABLE(unsigned char *buf)
+PrintDRAWABLE(const unsigned char *buf)
{
/* print a DRAWABLE -- CARD32 */
long n = ILong (buf);
@@ -452,7 +452,7 @@ PrintDRAWABLE(unsigned char *buf)
}
int
-PrintFONTABLE(unsigned char *buf)
+PrintFONTABLE(const unsigned char *buf)
{
/* print a FONTABLE -- CARD32 */
long n = ILong (buf);
@@ -464,7 +464,7 @@ PrintFONTABLE(unsigned char *buf)
#define NumberofAtoms 68
-static char *AtomTable[NumberofAtoms + 1] =
+static const char * const AtomTable[NumberofAtoms + 1] =
{
"NONE", "PRIMARY", "SECONDARY", "ARC", "ATOM", "BITMAP", "CARDINAL",
"COLORMAP", "CURSOR", "CUT_BUFFER0", "CUT_BUFFER1", "CUT_BUFFER2",
@@ -487,7 +487,7 @@ static char *AtomTable[NumberofAtoms + 1] =
the user defined ones, too. */
int
-PrintATOM(unsigned char *buf)
+PrintATOM(const unsigned char *buf)
{
/* print a ATOM -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -499,7 +499,7 @@ PrintATOM(unsigned char *buf)
}
int
-PrintATOMT(unsigned char *buf)
+PrintATOMT(const unsigned char *buf)
{
/* print a ATOMT -- CARD32 plus 0 = AnyPropertyType */
long n = ILong (buf);
@@ -512,7 +512,7 @@ PrintATOMT(unsigned char *buf)
int
-PrintVISUALID(unsigned char *buf)
+PrintVISUALID(const unsigned char *buf)
{
/* print a VISUALID -- CARD32 plus 0 = None */
long n = ILong (buf);
@@ -524,7 +524,7 @@ PrintVISUALID(unsigned char *buf)
}
int
-PrintVISUALIDC(unsigned char *buf)
+PrintVISUALIDC(const unsigned char *buf)
{
/* print a VISUALIDC -- CARD32 plus 0 = CopyFromParent */
long n = ILong (buf);
@@ -537,7 +537,7 @@ PrintVISUALIDC(unsigned char *buf)
int
-PrintTIMESTAMP(unsigned char *buf)
+PrintTIMESTAMP(const unsigned char *buf)
{
/* print a TIMESTAMP -- CARD32 plus 0 as the current time */
long n = ILong (buf);
@@ -550,7 +550,7 @@ PrintTIMESTAMP(unsigned char *buf)
int
-PrintRESOURCEID(unsigned char *buf)
+PrintRESOURCEID(const unsigned char *buf)
{
/* print a RESOURCEID -- CARD32 plus 0 = AllTemporary */
long n = ILong (buf);
@@ -563,7 +563,7 @@ PrintRESOURCEID(unsigned char *buf)
int
-PrintKEYSYM(unsigned char *buf)
+PrintKEYSYM(const unsigned char *buf)
{
/* print a KEYSYM -- CARD32 */
long n = ILong (buf);
@@ -572,7 +572,7 @@ PrintKEYSYM(unsigned char *buf)
}
int
-PrintKEYCODE(unsigned char *buf)
+PrintKEYCODE(const unsigned char *buf)
{
/* print a KEYCODE -- CARD8 */
unsigned short n = IByte (buf);
@@ -581,7 +581,7 @@ PrintKEYCODE(unsigned char *buf)
}
int
-PrintKEYCODEA(unsigned char *buf)
+PrintKEYCODEA(const unsigned char *buf)
{
/* print a KEYCODEA -- CARD8 plus 0 = AnyKey */
long n = IByte (buf);
@@ -594,7 +594,7 @@ PrintKEYCODEA(unsigned char *buf)
int
-PrintBUTTON(unsigned char *buf)
+PrintBUTTON(const unsigned char *buf)
{
/* print a BUTTON -- CARD8 */
unsigned short n = IByte (buf);
@@ -603,7 +603,7 @@ PrintBUTTON(unsigned char *buf)
}
int
-PrintBUTTONA(unsigned char *buf)
+PrintBUTTONA(const unsigned char *buf)
{
/* print a BUTTONA -- CARD8 plus 0 = AnyButton */
long n = IByte (buf);
@@ -618,7 +618,7 @@ PrintBUTTONA(unsigned char *buf)
/* this is an interesting cheat -- we call DecodeEvent to print an event */
/* should work, but its never been tried */
int
-PrintEVENTFORM(unsigned char *buf)
+PrintEVENTFORM(const unsigned char *buf)
{
/* print an EVENT_FORM -- event format */
DecodeEvent(-1, buf, (long)-1);
@@ -629,7 +629,7 @@ PrintEVENTFORM(unsigned char *buf)
int
PrintENUMERATED(
- unsigned char *buf,
+ const unsigned char *buf,
short length,
struct ValueListEntry *ValueList)
{
@@ -657,7 +657,7 @@ PrintENUMERATED(
int
PrintSET(
- unsigned char *buf,
+ const unsigned char *buf,
short length,
struct ValueListEntry *ValueList)
{
@@ -711,11 +711,11 @@ PrintSET(
void
PrintField (
- unsigned char *buf,
+ const unsigned char *buf,
short start,
short length,
short FieldType,
- char *name)
+ const char *name)
{
if (Verbose == 0)
return;
@@ -765,10 +765,10 @@ PrintField (
long
PrintList (
- unsigned char *buf,
+ const unsigned char *buf,
long number,
short ListType,
- char *name)
+ const char *name)
{
long n;
long i;
@@ -817,9 +817,9 @@ PrintList (
long
PrintListSTR (
- unsigned char *buf,
+ const unsigned char *buf,
long number,
- char *name)
+ const char *name)
{
long n;
long i;
@@ -856,9 +856,9 @@ PrintListSTR (
int
PrintBytes(
- unsigned char buf[],
+ const unsigned char *buf,
long number,
- char *name)
+ const char *name)
{
/* print a list of BYTE -- 8-bit character */
long i;
@@ -897,9 +897,9 @@ PrintBytes(
int
PrintString8(
- unsigned char buf[],
+ const unsigned char *buf,
int number,
- char *name)
+ const char *name)
{
short i;
@@ -919,9 +919,9 @@ PrintString8(
int
PrintString16(
- unsigned char buf[],
+ const unsigned char *buf,
int number,
- char *name)
+ const char *name)
{
long i;
unsigned short c;
@@ -942,9 +942,9 @@ PrintString16(
void
PrintTString8(
- unsigned char buf[],
+ const unsigned char *buf,
long number,
- char *name)
+ const char *name)
{
long i;
int off;
@@ -965,9 +965,9 @@ PrintTString8(
/* print a String of CHAR2B -- 16-bit characters */
void
PrintTString16(
- unsigned char buf[],
+ const unsigned char *buf,
long number,
- char *name)
+ const char *name)
{
long i;
unsigned short c;
@@ -1003,11 +1003,11 @@ PrintTString16(
void
PrintValues(
- unsigned char *control,
+ const unsigned char *control,
int clength,
int ctype,
- unsigned char *values,
- char *name)
+ const unsigned char *values,
+ const char *name)
{
long cmask;
struct ValueListEntry *p;
@@ -1055,9 +1055,9 @@ PrintValues(
void
PrintTextList8(
- unsigned char *buf,
+ const unsigned char *buf,
int length,
- char *name)
+ const char *name)
{
short n;
@@ -1083,9 +1083,9 @@ PrintTextList8(
void
PrintTextList16(
- unsigned char *buf,
+ const unsigned char *buf,
int length,
- char *name)
+ const char *name)
{
short n;
@@ -1119,7 +1119,7 @@ PrintTextList16(
void
DumpHexBuffer(
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
long i;
diff --git a/randrscope.h b/randrscope.h
index 9e8a70e..94f3fc1 100644
--- a/randrscope.h
+++ b/randrscope.h
@@ -16,15 +16,15 @@ extern unsigned char LookForRANDRFlag;
extern unsigned char RANDRRequest;
extern unsigned char RANDREvent;
-extern void RandrQueryVersion (FD fd, unsigned char *buf);
-extern void RandrQueryVersionReply (FD fd, unsigned char *buf);
-extern void RandrGetScreenInfo (FD fd, unsigned char *buf);
-extern void RandrGetScreenInfoReply (FD fd, unsigned char *buf);
-extern void RandrSetScreenConfig (FD fd, unsigned char *buf);
-extern void RandrSetScreenConfigReply (FD fd, unsigned char *buf);
-extern void RandrScreenChangeSelectInput (FD fd, unsigned char *buf);
-extern void RandrScreenSizes (unsigned char *buf);
-extern void RandrScreenChangeNotifyEvent (unsigned char *buf);
+extern void RandrQueryVersion (FD fd, const unsigned char *buf);
+extern void RandrQueryVersionReply (FD fd, const unsigned char *buf);
+extern void RandrGetScreenInfo (FD fd, const unsigned char *buf);
+extern void RandrGetScreenInfoReply (FD fd, const unsigned char *buf);
+extern void RandrSetScreenConfig (FD fd, const unsigned char *buf);
+extern void RandrSetScreenConfigReply (FD fd, const unsigned char *buf);
+extern void RandrScreenChangeSelectInput (FD fd, const unsigned char *buf);
+extern void RandrScreenSizes (const unsigned char *buf);
+extern void RandrScreenChangeNotifyEvent (const unsigned char *buf);
#endif
diff --git a/renderscope.h b/renderscope.h
index 03e31d6..17fc226 100644
--- a/renderscope.h
+++ b/renderscope.h
@@ -17,43 +17,43 @@ extern unsigned char RENDERRequest;
extern unsigned char RENDERError;
#define RENDERNError 5
-extern void RenderQueryVersion (FD fd, unsigned char *buf);
-extern void RenderQueryVersionReply (FD fd, unsigned char *buf);
-extern void RenderQueryPictFormats (FD fd, unsigned char *buf);
-extern void RenderQueryPictFormatsReply (FD fd, unsigned char *buf);
-extern void RenderQueryPictIndexValues (FD fd, unsigned char *buf);
-extern void RenderQueryPictIndexValuesReply (FD fd, unsigned char *buf);
-extern void RenderQueryDithers (FD fd, unsigned char *buf);
-extern void RenderQueryDithersReply (FD fd, unsigned char *buf);
-extern void RenderCreatePicture (FD fd, unsigned char *buf);
-extern void RenderChangePicture (FD fd, unsigned char *buf);
-extern void RenderSetPictureClipRectangles (FD fd, unsigned char *buf);
-extern void RenderFreePicture (FD fd, unsigned char *buf);
-extern void RenderComposite (FD fd, unsigned char *buf);
-extern void RenderScale (FD fd, unsigned char *buf);
-extern void RenderTrapezoids (FD fd, unsigned char *buf);
-extern void RenderTriangles (FD fd, unsigned char *buf);
-extern void RenderTriStrip (FD fd, unsigned char *buf);
-extern void RenderTriFan (FD fd, unsigned char *buf);
-extern void RenderColorTrapezoids (FD fd, unsigned char *buf);
-extern void RenderColorTriangles (FD fd, unsigned char *buf);
-extern void RenderTransform (FD fd, unsigned char *buf);
-extern void RenderCreateGlyphSet (FD fd, unsigned char *buf);
-extern void RenderReferenceGlyphSet (FD fd, unsigned char *buf);
-extern void RenderFreeGlyphSet (FD fd, unsigned char *buf);
-extern void RenderAddGlyphs (FD fd, unsigned char *buf);
-extern void RenderAddGlyphsFromPicture (FD fd, unsigned char *buf);
-extern void RenderFreeGlyphs (FD fd, unsigned char *buf);
-extern void RenderCompositeGlyphs8 (FD fd, unsigned char *buf);
-extern void RenderCompositeGlyphs16 (FD fd, unsigned char *buf);
-extern void RenderCompositeGlyphs32 (FD fd, unsigned char *buf);
-extern void RenderFillRectangles (FD fd, unsigned char *buf);
-
-extern void RenderPictFormatError (FD fd, unsigned char *buf);
-extern void RenderPictureError (FD fd, unsigned char *buf);
-extern void RenderPictOpError (FD fd, unsigned char *buf);
-extern void RenderGlyphSetError (FD fd, unsigned char *buf);
-extern void RenderGlyphError (FD fd, unsigned char *buf);
+extern void RenderQueryVersion (FD fd, const unsigned char *buf);
+extern void RenderQueryVersionReply (FD fd, const unsigned char *buf);
+extern void RenderQueryPictFormats (FD fd, const unsigned char *buf);
+extern void RenderQueryPictFormatsReply (FD fd, const unsigned char *buf);
+extern void RenderQueryPictIndexValues (FD fd, const unsigned char *buf);
+extern void RenderQueryPictIndexValuesReply (FD fd, const unsigned char *buf);
+extern void RenderQueryDithers (FD fd, const unsigned char *buf);
+extern void RenderQueryDithersReply (FD fd, const unsigned char *buf);
+extern void RenderCreatePicture (FD fd, const unsigned char *buf);
+extern void RenderChangePicture (FD fd, const unsigned char *buf);
+extern void RenderSetPictureClipRectangles (FD fd, const unsigned char *buf);
+extern void RenderFreePicture (FD fd, const unsigned char *buf);
+extern void RenderComposite (FD fd, const unsigned char *buf);
+extern void RenderScale (FD fd, const unsigned char *buf);
+extern void RenderTrapezoids (FD fd, const unsigned char *buf);
+extern void RenderTriangles (FD fd, const unsigned char *buf);
+extern void RenderTriStrip (FD fd, const unsigned char *buf);
+extern void RenderTriFan (FD fd, const unsigned char *buf);
+extern void RenderColorTrapezoids (FD fd, const unsigned char *buf);
+extern void RenderColorTriangles (FD fd, const unsigned char *buf);
+extern void RenderTransform (FD fd, const unsigned char *buf);
+extern void RenderCreateGlyphSet (FD fd, const unsigned char *buf);
+extern void RenderReferenceGlyphSet (FD fd, const unsigned char *buf);
+extern void RenderFreeGlyphSet (FD fd, const unsigned char *buf);
+extern void RenderAddGlyphs (FD fd, const unsigned char *buf);
+extern void RenderAddGlyphsFromPicture (FD fd, const unsigned char *buf);
+extern void RenderFreeGlyphs (FD fd, const unsigned char *buf);
+extern void RenderCompositeGlyphs8 (FD fd, const unsigned char *buf);
+extern void RenderCompositeGlyphs16 (FD fd, const unsigned char *buf);
+extern void RenderCompositeGlyphs32 (FD fd, const unsigned char *buf);
+extern void RenderFillRectangles (FD fd, const unsigned char *buf);
+
+extern void RenderPictFormatError (FD fd, const unsigned char *buf);
+extern void RenderPictureError (FD fd, const unsigned char *buf);
+extern void RenderPictOpError (FD fd, const unsigned char *buf);
+extern void RenderGlyphSetError (FD fd, const unsigned char *buf);
+extern void RenderGlyphError (FD fd, const unsigned char *buf);
#endif
diff --git a/scope.c b/scope.c
index 3a30ce1..8545930 100644
--- a/scope.c
+++ b/scope.c
@@ -145,9 +145,10 @@ typedef struct _CMDFunc {
CMDResult (*func)(int argc, char **argv);
char *usage;
char *help;
-} CMDFuncRec, *CMDFuncPtr;
+} CMDFuncRec;
+typedef const CMDFuncRec *CMDFuncPtr;
-CMDFuncRec CMDFuncs[] = {
+static const CMDFuncRec CMDFuncs[] = {
"audio", "a", CMDAudio, "[a]udio",
"Set audio output level\n",
"break", "b", CMDBreak, "[b]reak",
@@ -236,7 +237,7 @@ CMDStringToInt (
static CMDFuncPtr
CMDStringToFunc (
- char *name)
+ const char *name)
{
int i;
for (i = 0; i < NumCMDFuncs; i++)
@@ -380,7 +381,7 @@ int breakPointNumber;
void
TestBreakPoints (
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
BP *bp;
diff --git a/server.c b/server.c
index 1f93010..be5642b 100644
--- a/server.c
+++ b/server.c
@@ -74,7 +74,7 @@ struct ConnState CS[StaticMaxFD];
void
ReportFromClient(
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
if (Verbose > 0)
@@ -91,7 +91,7 @@ ReportFromClient(
void
ReportFromServer (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
if (Verbose > 0) {
@@ -160,7 +160,7 @@ pad (
unsigned long
ILong (
- unsigned char buf[])
+ const unsigned char buf[])
{
/* check for byte-swapping */
if (littleEndian)
@@ -170,7 +170,7 @@ ILong (
unsigned short
IShort (
- unsigned char buf[])
+ const unsigned char buf[])
{
/* check for byte-swapping */
if (littleEndian)
@@ -180,7 +180,7 @@ IShort (
unsigned short
IChar2B (
- unsigned char buf[])
+ const unsigned char buf[])
{
/* CHAR2B is like an IShort, but not byte-swapped */
return((buf[0] << 8) | buf[1]);
@@ -188,14 +188,14 @@ IChar2B (
unsigned short
IByte (
- unsigned char buf[])
+ const unsigned char buf[])
{
return(buf[0]);
}
Boolean
IBool (
- unsigned char buf[])
+ const unsigned char buf[])
{
if (buf[0] != 0)
return(true);
@@ -215,7 +215,7 @@ IBool (
static void
SaveBytes (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
/* check if there is enough space to hold the bytes we want */
@@ -270,13 +270,13 @@ RemoveSavedBytes (
/* following are the possible values for ByteProcessing */
/* forward declarations */
-static long FinishSetUpMessage(FD fd, unsigned char *buf, long n);
-static long StartRequest(FD fd, unsigned char *buf, long n);
-static long FinishRequest(FD fd, unsigned char *buf, long n);
+static long FinishSetUpMessage(FD fd, const unsigned char *buf, long n);
+static long StartRequest(FD fd, const unsigned char *buf, long n);
+static long FinishRequest(FD fd, const unsigned char *buf, long n);
-static long FinishSetUpReply(FD fd, unsigned char *buf, long n);
-static long ServerPacket(FD fd, unsigned char *buf, long n);
-static long FinishReply(FD fd, unsigned char *buf, long n);
+static long FinishSetUpReply(FD fd, const unsigned char *buf, long n);
+static long ServerPacket(FD fd, const unsigned char *buf, long n);
+static long FinishReply(FD fd, const unsigned char *buf, long n);
/* ************************************************************ */
@@ -289,10 +289,10 @@ int littleEndian;
void
ProcessBuffer (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
- unsigned char *BytesToProcess;
+ const unsigned char *BytesToProcess;
long NumberofUsedBytes;
/* as long as we have enough bytes to do anything -- do it */
@@ -431,7 +431,7 @@ StartStuff (
static void
FinishStuff (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
if (BreakPoint)
@@ -488,7 +488,7 @@ StopClientConnection (
long
StartSetUpMessage (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
unsigned short namelength;
@@ -519,7 +519,7 @@ StartSetUpMessage (
static long
FinishSetUpMessage (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
enterprocedure("FinishSetUpMessage");
@@ -541,7 +541,7 @@ FinishSetUpMessage (
static long
StartBigRequest (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
enterprocedure("StartBigRequest");
@@ -560,7 +560,7 @@ StartBigRequest (
static long
StartRequest (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
enterprocedure("StartRequest");
@@ -589,7 +589,7 @@ StartRequest (
static long
FinishRequest (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
enterprocedure("FinishRequest");
@@ -639,7 +639,7 @@ StopServerConnection (
long
StartSetUpReply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
unsigned short replylength;
@@ -656,7 +656,7 @@ StartSetUpReply (
static long
FinishSetUpReply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
enterprocedure("FinishSetUpReply");
@@ -674,7 +674,7 @@ FinishSetUpReply (
static long
ErrorPacket (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
CS[fd].ByteProcessing = ServerPacket;
@@ -687,7 +687,7 @@ ErrorPacket (
static long
EventPacket (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
CS[fd].ByteProcessing = ServerPacket;
@@ -701,7 +701,7 @@ EventPacket (
static long
ReplyPacket (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
long replylength;
@@ -727,7 +727,7 @@ ReplyPacket (
static long
ServerPacket (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short PacketType;
@@ -744,7 +744,7 @@ ServerPacket (
long
FinishReply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
CS[fd].ByteProcessing = ServerPacket;
@@ -757,7 +757,7 @@ FinishReply (
long
GetXRequestFromName (
- char *name)
+ const char *name)
{
return GetEValue (REQUEST, name);
}
diff --git a/shmscope.h b/shmscope.h
index 7d1245e..412e51d 100644
--- a/shmscope.h
+++ b/shmscope.h
@@ -17,15 +17,15 @@ extern unsigned char MITSHMRequest;
extern unsigned char MITSHMError;
extern unsigned char MITSHMEvent;
-extern void MitshmQueryVersion (FD fd, unsigned char *buf);
-extern void MitshmQueryVersionReply (FD fd, unsigned char *buf);
-extern void MitshmAttach (FD fd, unsigned char *buf);
-extern void MitshmDetach (FD fd, unsigned char *buf);
-extern void MitshmPutImage (FD fd, unsigned char *buf);
-extern void MitshmGetImage (FD fd, unsigned char *buf);
-extern void MitshmGetImageReply (FD fd, unsigned char *buf);
-extern void MitshmCreatePixmap (FD fd, unsigned char *buf);
-extern void MitshmShmSegError (FD fd, unsigned char *buf);
+extern void MitshmQueryVersion (FD fd, const unsigned char *buf);
+extern void MitshmQueryVersionReply (FD fd, const unsigned char *buf);
+extern void MitshmAttach (FD fd, const unsigned char *buf);
+extern void MitshmDetach (FD fd, const unsigned char *buf);
+extern void MitshmPutImage (FD fd, const unsigned char *buf);
+extern void MitshmGetImage (FD fd, const unsigned char *buf);
+extern void MitshmGetImageReply (FD fd, const unsigned char *buf);
+extern void MitshmCreatePixmap (FD fd, const unsigned char *buf);
+extern void MitshmShmSegError (FD fd, const unsigned char *buf);
#endif
diff --git a/table11.c b/table11.c
index 87a81e8..e67b725 100644
--- a/table11.c
+++ b/table11.c
@@ -66,21 +66,21 @@ static void InitSetTypes(void);
static void InitRecordTypes(void);
static void InitValuesTypes(void);
-static int PrintCHAR2B(unsigned char *buf);
-static int PrintPOINT(unsigned char *buf);
-static int PrintRECTANGLE(unsigned char *buf);
-static int PrintARC(unsigned char *buf);
-static int PrintHOST(unsigned char *buf);
-static int PrintTIMECOORD(unsigned char *buf);
-static int PrintFONTPROP(unsigned char *buf);
-static int PrintCHARINFO(unsigned char *buf);
-static int PrintSEGMENT(unsigned char *buf);
-static int PrintCOLORITEM(unsigned char *buf);
-static int PrintRGB(unsigned char *buf);
-static int PrintFORMAT(unsigned char *buf);
-static int PrintSCREEN(unsigned char *buf);
-static int PrintDEPTH(unsigned char *buf);
-static int PrintVISUALTYPE(unsigned char *buf);
+static int PrintCHAR2B(const unsigned char *buf);
+static int PrintPOINT(const unsigned char *buf);
+static int PrintRECTANGLE(const unsigned char *buf);
+static int PrintARC(const unsigned char *buf);
+static int PrintHOST(const unsigned char *buf);
+static int PrintTIMECOORD(const unsigned char *buf);
+static int PrintFONTPROP(const unsigned char *buf);
+static int PrintCHARINFO(const unsigned char *buf);
+static int PrintSEGMENT(const unsigned char *buf);
+static int PrintCOLORITEM(const unsigned char *buf);
+static int PrintRGB(const unsigned char *buf);
+static int PrintFORMAT(const unsigned char *buf);
+static int PrintSCREEN(const unsigned char *buf);
+static int PrintDEPTH(const unsigned char *buf);
+static int PrintVISUALTYPE(const unsigned char *buf);
/*
To initialize for the X11 protocol, we need to create data structures
@@ -147,7 +147,7 @@ void
CreateValueRec (
unsigned long key,
int size,
- unsigned long *def)
+ const unsigned long *def)
{
ValuePtr *bucket, value;
int i;
@@ -158,7 +158,7 @@ CreateValueRec (
return;
value->values = (unsigned long *) (value + 1);
for (i = 0; i < size; i++)
- value->values[i] = ILong((char *) (def + i));
+ value->values[i] = ILong((const unsigned char *) (def + i));
value->size = size;
value->key = key;
value->next = *bucket;
@@ -185,10 +185,10 @@ DeleteValueRec (
void
SetValueRec (
unsigned long key,
- unsigned char *control,
+ const unsigned char *control,
short clength,
short ctype,
- unsigned char *values)
+ const unsigned char *values)
{
long cmask;
struct ValueListEntry *p;
@@ -232,8 +232,8 @@ TYPE
DefineType (
short typeid,
short class,
- char *name,
- int (*printproc)(unsigned char *))
+ const char *name,
+ int (*printproc)(const unsigned char *))
{
TD[typeid].Name = name;
TD[typeid].Type = class;
@@ -249,7 +249,7 @@ void
DefineEValue(
TYPE type,
long value,
- char *name)
+ const char *name)
{
struct ValueListEntry *p;
@@ -279,7 +279,7 @@ DefineEValue(
long
GetEValue (
short typeid,
- char *name)
+ const char *name)
{
TYPE p;
struct ValueListEntry *v;
@@ -304,7 +304,8 @@ GetEValue (
associated value for each bit */
void
-DefineValues(TYPE type, long value, short length, short ctype, char *name)
+DefineValues(TYPE type, long value, short length, short ctype,
+ const char *name)
{
struct ValueListEntry *p;
@@ -988,7 +989,7 @@ InitSetTypes (void)
static int
PrintCHAR2B (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, CARD8, "byte1");
PrintField(buf, 1, 1, CARD8, "byte2");
@@ -997,7 +998,7 @@ PrintCHAR2B (
static int
PrintPOINT (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 2, INT16, "x");
PrintField(buf, 2, 2, INT16, "y");
@@ -1006,7 +1007,7 @@ PrintPOINT (
static int
PrintRECTANGLE (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 2, INT16, "x");
PrintField(buf, 2, 2, INT16, "y");
@@ -1017,7 +1018,7 @@ PrintRECTANGLE (
static int
PrintARC (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 2, INT16, "x");
PrintField(buf, 2, 2, INT16, "y");
@@ -1030,7 +1031,7 @@ PrintARC (
static int
PrintHOST (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n;
PrintField(buf, 0, 1, HOSTFAMILY, "family");
@@ -1070,7 +1071,7 @@ PrintHOST (
static int
PrintTIMECOORD (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 4, TIMESTAMP, "time");
PrintField(buf, 4, 2, CARD16, "x");
@@ -1080,7 +1081,7 @@ PrintTIMECOORD (
static int
PrintFONTPROP (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 4, ATOM, "name");
PrintField(buf, 4, 4, INT32, "value");
@@ -1089,7 +1090,7 @@ PrintFONTPROP (
static int
PrintCHARINFO (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 2, INT16, "left-side-bearing");
PrintField(buf, 2, 2, INT16, "right-side-bearing");
@@ -1102,7 +1103,7 @@ PrintCHARINFO (
static int
PrintSEGMENT (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 2, INT16, "x1");
PrintField(buf, 2, 2, INT16, "y1");
@@ -1113,7 +1114,7 @@ PrintSEGMENT (
static int
PrintCOLORITEM (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 4, CARD32, "pixel");
PrintField(buf, 4, 2, CARD16, "red");
@@ -1125,7 +1126,7 @@ PrintCOLORITEM (
static int
PrintRGB (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 2, CARD16, "red");
PrintField(buf, 2, 2, CARD16, "green");
@@ -1135,7 +1136,7 @@ PrintRGB (
static int
PrintFORMAT (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 1, CARD8, "depth");
PrintField(buf, 1, 1, CARD8, "bits-per-pixel");
@@ -1145,7 +1146,7 @@ PrintFORMAT (
static int
PrintSCREEN (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n /* number of elements in List of DEPTH */ ;
long m /* length (in bytes) of List of DEPTH */ ;
@@ -1173,7 +1174,7 @@ PrintSCREEN (
static int
PrintDEPTH (
- unsigned char *buf)
+ const unsigned char *buf)
{
short n /* number of elements in List of VISUALTYPE */ ;
short m /* length (in bytes) of List of VISUALTYPE */ ;
@@ -1187,7 +1188,7 @@ PrintDEPTH (
static int
PrintVISUALTYPE (
- unsigned char *buf)
+ const unsigned char *buf)
{
PrintField(buf, 0, 4, VISUALID, "visual-id");
PrintField(buf, 4, 1, COLORCLASS, "class");
diff --git a/wcpscope.h b/wcpscope.h
index 81850bb..2e92843 100644
--- a/wcpscope.h
+++ b/wcpscope.h
@@ -41,15 +41,15 @@ extern unsigned char LookForWCPFlag;
extern unsigned char WCPRequest;
extern unsigned char WCPError;
-extern void WcpQueryVersion (FD fd, unsigned char *buf);
-extern void WcpQueryVersionReply (FD fd, unsigned char *buf);
-extern void WcpPutImage (FD fd, unsigned char *buf);
-extern void WcpGetImage (FD fd, unsigned char *buf);
-extern void WcpGetImageReply (FD fd, unsigned char *buf);
-extern void WcpCreateColorCursor (FD fd, unsigned char *buf);
-extern void WcpCreateLut (FD fd, unsigned char *buf);
-extern void WcpFreeLut (FD fd, unsigned char *buf);
-extern void WcpCopyArea (FD fd, unsigned char *buf);
+extern void WcpQueryVersion (FD fd, const unsigned char *buf);
+extern void WcpQueryVersionReply (FD fd, const unsigned char *buf);
+extern void WcpPutImage (FD fd, const unsigned char *buf);
+extern void WcpGetImage (FD fd, const unsigned char *buf);
+extern void WcpGetImageReply (FD fd, const unsigned char *buf);
+extern void WcpCreateColorCursor (FD fd, const unsigned char *buf);
+extern void WcpCreateLut (FD fd, const unsigned char *buf);
+extern void WcpFreeLut (FD fd, const unsigned char *buf);
+extern void WcpCopyArea (FD fd, const unsigned char *buf);
#endif
diff --git a/x11.h b/x11.h
index f357beb..37e6a43 100644
--- a/x11.h
+++ b/x11.h
@@ -290,17 +290,17 @@ extern char ScopeEnabled;
struct ValueListEntry
{
struct ValueListEntry *Next;
- char *Name;
+ const char *Name;
short Type;
short Length;
long Value;
};
-typedef int (*PrintProcType) (unsigned char *);
+typedef int (*PrintProcType) (const unsigned char *);
struct TypeDef
{
- char *Name;
+ const char *Name;
short Type /* BUILTIN, ENUMERATED, SET, or RECORD */ ;
struct ValueListEntry *ValueList;
PrintProcType PrintProc;
@@ -317,45 +317,45 @@ extern struct TypeDef TD[MaxTypes];
/* declaration of the existance of print routines for the basic types */
-extern int PrintINT8(unsigned char *buf);
-extern int PrintINT16(unsigned char *buf);
-extern int PrintINT32(unsigned char *buf);
-extern int PrintCARD8(unsigned char *buf);
-extern int PrintCARD16(unsigned char *buf);
-extern int PrintCARD32(unsigned char *buf);
-extern int PrintBYTE(unsigned char *buf);
-extern int PrintCHAR8(unsigned char *buf);
-extern int PrintSTRING16(unsigned char *buf);
-extern int PrintTEXTITEM8(unsigned char *buf);
-extern int PrintTEXTITEM16(unsigned char *buf);
-extern int PrintSTR(unsigned char *buf);
-extern int PrintWINDOW(unsigned char *buf);
-extern int PrintWINDOWD(unsigned char *buf);
-extern int PrintWINDOWNR(unsigned char *buf);
-extern int PrintPIXMAP(unsigned char *buf);
-extern int PrintPIXMAPNPR(unsigned char *buf);
-extern int PrintPIXMAPC(unsigned char *buf);
-extern int PrintCURSOR(unsigned char *buf);
-extern int PrintFONT(unsigned char *buf);
-extern int PrintGCONTEXT(unsigned char *buf);
-extern int PrintCOLORMAP(unsigned char *buf);
-extern int PrintCOLORMAPC(unsigned char *buf);
-extern int PrintDRAWABLE(unsigned char *buf);
-extern int PrintFONTABLE(unsigned char *buf);
-extern int PrintATOM(unsigned char *buf);
-extern int PrintATOMT(unsigned char *buf);
-extern int PrintVISUALID(unsigned char *buf);
-extern int PrintVISUALIDC(unsigned char *buf);
-extern int PrintTIMESTAMP(unsigned char *buf);
-extern int PrintRESOURCEID(unsigned char *buf);
-extern int PrintKEYSYM(unsigned char *buf);
-extern int PrintKEYCODE(unsigned char *buf);
-extern int PrintKEYCODEA(unsigned char *buf);
-extern int PrintBUTTON(unsigned char *buf);
-extern int PrintBUTTONA(unsigned char *buf);
-extern int PrintEVENTFORM(unsigned char *buf);
-extern int PrintENUMERATED(unsigned char *buf, short length, struct ValueListEntry *ValueList);
-extern int PrintSET(unsigned char *buf, short length, struct ValueListEntry *ValueList);
+extern int PrintINT8(const unsigned char *buf);
+extern int PrintINT16(const unsigned char *buf);
+extern int PrintINT32(const unsigned char *buf);
+extern int PrintCARD8(const unsigned char *buf);
+extern int PrintCARD16(const unsigned char *buf);
+extern int PrintCARD32(const unsigned char *buf);
+extern int PrintBYTE(const unsigned char *buf);
+extern int PrintCHAR8(const unsigned char *buf);
+extern int PrintSTRING16(const unsigned char *buf);
+extern int PrintTEXTITEM8(const unsigned char *buf);
+extern int PrintTEXTITEM16(const unsigned char *buf);
+extern int PrintSTR(const unsigned char *buf);
+extern int PrintWINDOW(const unsigned char *buf);
+extern int PrintWINDOWD(const unsigned char *buf);
+extern int PrintWINDOWNR(const unsigned char *buf);
+extern int PrintPIXMAP(const unsigned char *buf);
+extern int PrintPIXMAPNPR(const unsigned char *buf);
+extern int PrintPIXMAPC(const unsigned char *buf);
+extern int PrintCURSOR(const unsigned char *buf);
+extern int PrintFONT(const unsigned char *buf);
+extern int PrintGCONTEXT(const unsigned char *buf);
+extern int PrintCOLORMAP(const unsigned char *buf);
+extern int PrintCOLORMAPC(const unsigned char *buf);
+extern int PrintDRAWABLE(const unsigned char *buf);
+extern int PrintFONTABLE(const unsigned char *buf);
+extern int PrintATOM(const unsigned char *buf);
+extern int PrintATOMT(const unsigned char *buf);
+extern int PrintVISUALID(const unsigned char *buf);
+extern int PrintVISUALIDC(const unsigned char *buf);
+extern int PrintTIMESTAMP(const unsigned char *buf);
+extern int PrintRESOURCEID(const unsigned char *buf);
+extern int PrintKEYSYM(const unsigned char *buf);
+extern int PrintKEYCODE(const unsigned char *buf);
+extern int PrintKEYCODEA(const unsigned char *buf);
+extern int PrintBUTTON(const unsigned char *buf);
+extern int PrintBUTTONA(const unsigned char *buf);
+extern int PrintEVENTFORM(const unsigned char *buf);
+extern int PrintENUMERATED(const unsigned char *buf, short length, struct ValueListEntry *ValueList);
+extern int PrintSET(const unsigned char *buf, short length, struct ValueListEntry *ValueList);
/* ************************************************************ */
/* */
@@ -500,7 +500,7 @@ struct ConnState
long NumberofBytesNeeded;
long NumberofBytesProcessed;
- long (*ByteProcessing)(FD fd, unsigned char *buf, long n);
+ long (*ByteProcessing)(FD fd, const unsigned char *buf, long n);
long SequenceNumber;
};
@@ -515,10 +515,12 @@ typedef struct _Value {
} ValueRec, *ValuePtr;
extern ValuePtr GetValueRec (unsigned long key);
-extern void CreateValueRec (unsigned long key, int size, unsigned long *def);
+extern void CreateValueRec (unsigned long key, int size,
+ const unsigned long *def);
extern void DeleteValueRec (unsigned long key);
-extern void SetValueRec (unsigned long key, unsigned char *control,
- short clength, short ctype, unsigned char *values);
+extern void SetValueRec (unsigned long key, const unsigned char *control,
+ short clength, short ctype,
+ const unsigned char *values);
extern void PrintValueRec (unsigned long key, unsigned long cmask,
short ctype);
@@ -529,24 +531,29 @@ extern void PrintValueRec (unsigned long key, unsigned long cmask,
/* declaration of the types of some common functions */
-extern unsigned long ILong(unsigned char buf[]);
-extern unsigned short IShort(unsigned char buf[]);
-extern unsigned short IChar2B(unsigned char buf[]);
-extern unsigned short IByte(unsigned char buf[]);
-extern Boolean IBool(unsigned char buf[]);
-
-extern int PrintString8(unsigned char buf[], int number, char *name);
-extern int PrintString16(unsigned char buf[], int number, char *name);
-extern void PrintTString8(unsigned char buf[], long number, char *name);
-extern void PrintTString16(unsigned char buf[], long number, char *name);
-
-extern long PrintList (unsigned char *buf, long number, short ListType,
- char *name);
-extern long PrintListSTR (unsigned char *buf, long number, char *name);
+extern unsigned long ILong(const unsigned char *buf);
+extern unsigned short IShort(const unsigned char *buf);
+extern unsigned short IChar2B(const unsigned char *buf);
+extern unsigned short IByte(const unsigned char *buf);
+extern Boolean IBool(const unsigned char *buf);
+
+extern int PrintString8(const unsigned char *buf, int number,
+ const char *name);
+extern int PrintString16(const unsigned char *buf, int number,
+ const char *name);
+extern void PrintTString8(const unsigned char *buf, long number,
+ const char *name);
+extern void PrintTString16(const unsigned char *buf, long number,
+ const char *name);
+
+extern long PrintList (const unsigned char *buf, long number, short ListType,
+ const char *name);
+extern long PrintListSTR (const unsigned char *buf, long number,
+ const char *name);
extern long pad(long n);
-extern char *REQUESTHEADER, *EVENTHEADER, *ERRORHEADER, *REPLYHEADER;
+extern const char REQUESTHEADER[], EVENTHEADER[], ERRORHEADER[], REPLYHEADER[];
#define GC_function 0x00000001L
#define GC_plane_mask 0x00000002L