diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-11-14 12:59:48 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-11-14 12:59:48 +0100 |
commit | 322f72313d66550698e918707ea5d32e44da9dca (patch) | |
tree | cf3f79e181747f33ca5b01d29a93bd95109a7c03 /sys/src/cmd/mothra/mothra.h | |
parent | 92fa7cbcd1e519e3fff221cb010caa4ba8669c54 (diff) |
mothra: limit amount of image data kept in devdraw to 8MB
Diffstat (limited to 'sys/src/cmd/mothra/mothra.h')
-rw-r--r-- | sys/src/cmd/mothra/mothra.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/mothra.h b/sys/src/cmd/mothra/mothra.h index 288fb2366..8c45b8ec6 100644 --- a/sys/src/cmd/mothra/mothra.h +++ b/sys/src/cmd/mothra/mothra.h @@ -1,6 +1,7 @@ enum{ NWWW=64, /* # of pages we hold in the log */ NXPROC=5, /* # of parallel procs loading the pix */ + NPIXMB=8, /* megabytes of image data to keep arround */ NNAME=512, NLINE=256, NAUTH=128, @@ -82,12 +83,14 @@ void plrdplain(char *, int, Www *); void htmlerror(char *, int, char *, ...); /* user-supplied routine */ void seturl(Url *, char *, char *); void getpix(Rtext *, Www *); +ulong countpix(void *p); +void freepix(void *p); int pipeline(char *, int); int urlopen(Url *, int, char *); void getfonts(void); void *emalloc(int); void *emallocz(int, int); -void setbitmap(Rtext *); +void freeform(void *p); void message(char *, ...); int snooptype(int fd); void mkfieldpanel(Rtext *); |