diff --git a/include/draw.h b/include/draw.h index 0f9ba63a..a9ae96af 100644 --- a/include/draw.h +++ b/include/draw.h @@ -509,10 +509,21 @@ 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. */ 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];