summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2001-06-08 00:32:52 +0000
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-04 18:13:07 -0700
commit062412a066cc62635c1d1eb99999ee774775ca6f (patch)
tree3a72f748e101900c292cf242055862ecce4bccb7 /scope.h
parent306057f2475b216fb73686bcb0003355cf88944a (diff)
downloadxscope-062412a066cc62635c1d1eb99999ee774775ca6f.tar.gz
Import xscope bits into keithp.com CVS
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h46
1 files changed, 35 insertions, 11 deletions
diff --git a/scope.h b/scope.h
index 62b3189..a64bac5 100644
--- a/scope.h
+++ b/scope.h
@@ -25,43 +25,67 @@
* *
********************************************** */
+#include <X11/Xos.h>
+#include <X11/Xfuncs.h>
#include <stdio.h>
-
#define Boolean short
#define true 1
#define false 0
+#include "fd.h"
+
/* ********************************************** */
/* */
/* ********************************************** */
#define Assert(b) (b)
#define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0)
-short debuglevel;
+extern short debuglevel;
/* ********************************************** */
/* */
/* ********************************************** */
-Boolean NoExtensions /* Should we deny extensions exist ? */ ;
-short Verbose /* quiet (0) or increasingly verbose ( > 0) */ ;
-Boolean RequestSync;
+extern short Verbose /* quiet (0) or increasingly verbose ( > 0) */ ;
+extern short XVerbose;
+extern short NasVerbose;
+
+
+extern int ScopePort;
+extern char *ScopeHost;
-int ScopePort;
-char *ScopeHost;
+extern int Interrupt, SingleStep, BreakPoint;
+
+extern void ReadCommands ();
+
+extern char ServerHostName[255];
+extern char AudioServerHostName[255];
/* external function type declarations */
extern char *Malloc ();
-extern char *strcpy();
-char *ClientName ();
+extern char *ClientName ();
/* ********************************************** */
/* */
/* ********************************************** */
/* need to change the MaxFD to allow larger number of fd's */
-#define StaticMaxFD 32
+#define StaticMaxFD 1024
+#define BUFFER_SIZE (1024 * 32)
-#include "fd.h"
+struct fdinfo
+{
+ Boolean Server;
+ long ClientNumber;
+ FD pair;
+ char buffer[BUFFER_SIZE];
+ int bufcount;
+ int bufstart;
+ int buflimit; /* limited writes */
+ int bufdelivered; /* total bytes delivered */
+ Boolean writeblocked;
+};
+
+extern struct fdinfo FDinfo[StaticMaxFD];