Mercurial > urweb
diff include/lacweb.h @ 167:2be573fec9a6
Unurlifying a datatype; longjmp-based error signaling mechanism
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 29 Jul 2008 15:25:42 -0400 |
parents | f0d3402184d1 |
children | c7a5c8e0a0e0 |
line wrap: on
line diff
--- a/include/lacweb.h Tue Jul 29 14:28:44 2008 -0400 +++ b/include/lacweb.h Tue Jul 29 15:25:42 2008 -0400 @@ -9,6 +9,13 @@ lw_context lw_init(size_t page_len, size_t heap_len); void lw_free(lw_context); void lw_reset(lw_context); +void lw_reset_keep_request(lw_context); +void lw_reset_keep_error_message(lw_context); +failure_kind lw_begin(lw_context, char *path); + +void lw_error(lw_context, failure_kind, const char *fmt, ...); +char *lw_error_message(lw_context); + void *lw_malloc(lw_context, size_t); int lw_send(lw_context, int sock);