]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/mothra/mothra.h
exec(2): fix prototypes
[plan9front.git] / sys / src / cmd / mothra / mothra.h
index b3be95d948157f9a56c0f219f6087334130caa5f..665f7084dfe69196eead81a7a4a09f91eee980ff 100644 (file)
@@ -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,
@@ -36,6 +37,7 @@ struct Www{
        char title[NTITLE];
        Rtext *text;
        int yoffs;
+       int gottitle;           /* title got drawn */
        int changed;            /* reader sets this every time it updates page */
        int finished;           /* reader sets this when done */
        int alldone;            /* page will not change further -- used to adjust cursor */
@@ -44,11 +46,13 @@ struct Www{
 enum{
        PLAIN,
        HTML,
+
        GIF,
        JPEG,
        PNG,
        BMP,
-       GUNZIP,
+       ICO,
+
        PAGE,
 };
 
@@ -61,7 +65,6 @@ enum{
 };
 
 Image *hrule, *bullet, *linespace;
-char home[512];                /* where to put files */
 int chrwidth;          /* nominal width of characters in font */
 Panel *text;           /* Panel displaying the current www page */
 int debug;             /* command line flag */
@@ -74,19 +77,29 @@ enum{
        POST,
 };
 
+void finish(Www *w);
 void plrdhtml(char *, int, Www *);
 void plrdplain(char *, int, Www *);
 void htmlerror(char *, int, char *, ...);      /* user-supplied routine */
 void seturl(Url *, char *, char *);
+Url *selurl(char *);
 void getpix(Rtext *, Www *);
-int pipeline(char *, int);
-int urlopen(Url *, int, char *);
+ulong countpix(void *p);
+void freepix(void *p);
+void dupfds(int fd, ...);
+int pipeline(int fd, char *fmt, ...);
 void getfonts(void);
 void *emalloc(int);
-void *emallocz(int, int);
-void setbitmap(Rtext *);
+void nstrcpy(char *to, char *from, int len);
+void freeform(void *p);
+int Ufmt(Fmt *f);
+#pragma        varargck type "U" char*
 void message(char *, ...);
-int snooptype(int fd);
+int filetype(int, char *, int);
+int snooptype(int);
 void mkfieldpanel(Rtext *);
-void geturl(char *, int, char *, int, int);
-char version[];
+void geturl(char *, int, int, int);
+int urlpost(Url*, char*);
+int urlget(Url*, int);
+int urlresolve(Url *);
+Mouse mouse;