summaryrefslogtreecommitdiff
path: root/x11.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 09:42:48 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:44:35 -0700
commit80ac8c6d04c04ec1f892883397507f32292ae590 (patch)
tree4133191d4c63cd27315491b6f82028cf3efca134 /x11.h
parent245871145e6a12739ed8d4512b5e2cb6b1a1721c (diff)
downloadxscope-80ac8c6d04c04ec1f892883397507f32292ae590.tar.gz
Ansify prototypes and move extern declarations to header files
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'x11.h')
-rw-r--r--x11.h39
1 files changed, 23 insertions, 16 deletions
diff --git a/x11.h b/x11.h
index b733e79..f357beb 100644
--- a/x11.h
+++ b/x11.h
@@ -500,7 +500,7 @@ struct ConnState
long NumberofBytesNeeded;
long NumberofBytesProcessed;
- long (*ByteProcessing)();
+ long (*ByteProcessing)(FD fd, unsigned char *buf, long n);
long SequenceNumber;
};
@@ -514,30 +514,37 @@ typedef struct _Value {
unsigned long *values;
} ValueRec, *ValuePtr;
-extern ValuePtr GetValueRec ();
-extern CreateValueRec ();
-extern DeleteValueRec ();
-extern SetValueRec ();
-extern PrintValueRec ();
+extern ValuePtr GetValueRec (unsigned long key);
+extern void CreateValueRec (unsigned long key, int size, 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 PrintValueRec (unsigned long key, unsigned long cmask,
+ short ctype);
/* ************************************************************ */
/* */
/* */
/* ************************************************************ */
-/* declaraction of the types of some common functions */
+/* declaration of the types of some common functions */
-extern unsigned long ILong();
-extern unsigned short IShort();
-extern unsigned short IByte();
-extern Boolean IBool();
+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 PrintString8(), PrintTString8 ();
-extern PrintString16(), PrintTString16 ();
+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();
-extern long PrintListSTR();
-extern long pad();
+extern long PrintList (unsigned char *buf, long number, short ListType,
+ char *name);
+extern long PrintListSTR (unsigned char *buf, long number, char *name);
+
+extern long pad(long n);
extern char *REQUESTHEADER, *EVENTHEADER, *ERRORHEADER, *REPLYHEADER;