diff options
author | rsc <devnull@localhost> | 2003-10-11 02:50:20 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-10-11 02:50:20 +0000 |
commit | 2009374690190b95a29db0c31decd07f4652eb45 (patch) | |
tree | 4c4e9307367b4d7e05871bc99826704720857dc9 | |
parent | a6ea03aea90b26d0d4c1c88881b43174a46f977d (diff) | |
download | plan9port-2009374690190b95a29db0c31decd07f4652eb45.tar.gz plan9port-2009374690190b95a29db0c31decd07f4652eb45.tar.bz2 plan9port-2009374690190b95a29db0c31decd07f4652eb45.zip |
Various cleanup.
-rw-r--r-- | include/draw.h | 13 | ||||
-rw-r--r-- | include/lib9.h | 3 | ||||
-rw-r--r-- | include/memdraw.h | 1 |
3 files changed, 15 insertions, 2 deletions
diff --git a/include/draw.h b/include/draw.h index 0f9ba63a..a9ae96af 100644 --- a/include/draw.h +++ b/include/draw.h @@ -509,11 +509,22 @@ extern void _twiddlecompressed(uchar*, int); extern int _compblocksize(Rectangle, int); /* XXX backwards helps; should go */ -extern int log2[]; extern u32int drawld2chan[]; extern void drawsetdebug(int); /* + * Snarf buffer + */ +enum +{ + SnarfSize = 64*1024, +}; +char *getsnarf(void); +void putsnarf(char*); + +void drawtopwindow(void); + +/* * Port magic. */ int _drawmsgread(Display*, void*, int); diff --git a/include/lib9.h b/include/lib9.h index 42f6f44b..534efb37 100644 --- a/include/lib9.h +++ b/include/lib9.h @@ -176,7 +176,8 @@ extern ulong rendezvous(ulong, ulong); /* one of a kind */ extern void sysfatal(char*, ...); -extern int nrand(int); +extern int nrand(int); +extern long lrand(void); extern void setmalloctag(void*, ulong); extern void setrealloctag(void*, ulong); extern void *mallocz(ulong, int); diff --git a/include/memdraw.h b/include/memdraw.h index 08784ce9..2d4f54f5 100644 --- a/include/memdraw.h +++ b/include/memdraw.h @@ -46,6 +46,7 @@ struct Memimage Memlayer *layer; /* nil if not a layer*/ u32int flags; void *X; + int screenref; /* reference count if this is a screen */ int shift[NChan]; int mask[NChan]; |