Mercurial > urweb
diff include/urweb.h @ 272:4d80d6122df1
Initializing database connection
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 02 Sep 2008 11:57:25 -0400 |
parents | 71bafe66dbe1 |
children | 137744c5b1ae |
line wrap: on
line diff
--- a/include/urweb.h Tue Sep 02 10:51:41 2008 -0400 +++ b/include/urweb.h Tue Sep 02 11:57:25 2008 -0400 @@ -7,10 +7,14 @@ extern lw_unit lw_unit_v; lw_context lw_init(size_t page_len, size_t heap_len); +void lw_set_db(lw_context, void*); +void *lw_get_db(lw_context); 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_init(lw_context); failure_kind lw_begin(lw_context, char *path); void lw_error(lw_context, failure_kind, const char *fmt, ...);