comparison 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
comparison
equal deleted inserted replaced
271:42dfb0d61cf0 272:4d80d6122df1
5 int lw_really_send(int sock, void *buf, ssize_t len); 5 int lw_really_send(int sock, void *buf, ssize_t len);
6 6
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_set_db(lw_context, void*);
11 void *lw_get_db(lw_context);
10 void lw_free(lw_context); 12 void lw_free(lw_context);
11 void lw_reset(lw_context); 13 void lw_reset(lw_context);
12 void lw_reset_keep_request(lw_context); 14 void lw_reset_keep_request(lw_context);
13 void lw_reset_keep_error_message(lw_context); 15 void lw_reset_keep_error_message(lw_context);
16
17 failure_kind lw_begin_init(lw_context);
14 failure_kind lw_begin(lw_context, char *path); 18 failure_kind lw_begin(lw_context, char *path);
15 19
16 void lw_error(lw_context, failure_kind, const char *fmt, ...); 20 void lw_error(lw_context, failure_kind, const char *fmt, ...);
17 char *lw_error_message(lw_context); 21 char *lw_error_message(lw_context);
18 22