X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fhtparser.h;h=d9f014dbbf2e9763cc8149b7d76fd22e7d04a5ba;hb=7d1e14f405f389656604c68e18a381feabcd3d4a;hp=88bfb6e512361fc999b3868e05af379d171539c9;hpb=7595e3a4d77b7e498fa84e27d93cc9f680076561;p=ashd.git diff --git a/src/htparser.h b/src/htparser.h index 88bfb6e..d9f014d 100644 --- a/src/htparser.h +++ b/src/htparser.h @@ -6,7 +6,12 @@ struct conn { void *pdata; }; -void serve(FILE *in, struct conn *conn); +struct mtbuf { + struct muth **b; + size_t s, d; +}; + +void serve(struct bufio *in, int infd, struct conn *conn); int listensock4(int port); int listensock6(int port); @@ -16,4 +21,6 @@ void handleplain(int argc, char **argp, char **argv); void handlegnussl(int argc, char **argp, char **argv); #endif +extern struct mtbuf listeners; + #endif