diff include/lacweb.h @ 117:94856a3b4752

Serving pages
author Adam Chlipala <adamc@hcoop.net>
date Sun, 13 Jul 2008 15:44:00 -0400
parents d101cb1efe55
children 6230bdd122e7
line wrap: on
line diff
--- a/include/lacweb.h	Sun Jul 13 13:38:23 2008 -0400
+++ b/include/lacweb.h	Sun Jul 13 15:44:00 2008 -0400
@@ -1,9 +1,21 @@
+#include <sys/types.h>
+
 #include "types.h"
 
+int lw_really_send(int sock, void *buf, ssize_t len);
+
 extern lw_unit lw_unit_v;
 
-void lw_write(const char*);
+lw_context lw_init(int page_len);
+void lw_free(lw_context);
+int lw_send(lw_context, int sock);
+
+void lw_write(lw_context, const char*);
 
 char *lw_Basis_attrifyInt(lw_Basis_int);
 char *lw_Basis_attrifyFloat(lw_Basis_float);
 char *lw_Basis_attrifyString(lw_Basis_string);
+
+void lw_Basis_attrifyInt_w(lw_context, lw_Basis_int);
+void lw_Basis_attrifyFloat_w(lw_context, lw_Basis_float);
+void lw_Basis_attrifyString_w(lw_context, lw_Basis_string);