diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-07-13 15:44:00 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-07-13 15:44:00 -0400 |
commit | c54e3eca0a8d7e72f12801bc5ec993dddfa7958b (patch) | |
tree | a37326be0f01025df57b4f3bf1f209528042df1c /include | |
parent | 0eb51a6e21e5f435d37afd885ae316a0575c7208 (diff) |
Serving pages
Diffstat (limited to 'include')
-rw-r--r-- | include/lacweb.h | 14 | ||||
-rw-r--r-- | include/types.h | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/include/lacweb.h b/include/lacweb.h index 983f979a..891b059d 100644 --- a/include/lacweb.h +++ b/include/lacweb.h @@ -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); diff --git a/include/types.h b/include/types.h index 28a8ea80..2dfaad84 100644 --- a/include/types.h +++ b/include/types.h @@ -6,3 +6,6 @@ struct __lws_0 { }; typedef struct __lws_0 lw_unit; + +typedef struct lw_context *lw_context; + |