comparison 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
comparison
equal deleted inserted replaced
166:a991431b77eb 167:2be573fec9a6
7 extern lw_unit lw_unit_v; 7 extern lw_unit lw_unit_v;
8 8
9 lw_context lw_init(size_t page_len, size_t heap_len); 9 lw_context lw_init(size_t page_len, size_t heap_len);
10 void lw_free(lw_context); 10 void lw_free(lw_context);
11 void lw_reset(lw_context); 11 void lw_reset(lw_context);
12 void lw_reset_keep_request(lw_context);
13 void lw_reset_keep_error_message(lw_context);
14 failure_kind lw_begin(lw_context, char *path);
15
16 void lw_error(lw_context, failure_kind, const char *fmt, ...);
17 char *lw_error_message(lw_context);
18
12 void *lw_malloc(lw_context, size_t); 19 void *lw_malloc(lw_context, size_t);
13 int lw_send(lw_context, int sock); 20 int lw_send(lw_context, int sock);
14 21
15 void lw_set_input(lw_context, char *name, char *value); 22 void lw_set_input(lw_context, char *name, char *value);
16 char *lw_get_input(lw_context, int name); 23 char *lw_get_input(lw_context, int name);