comparison include/urweb.h @ 1294:b4480a56cab7

Server-side 'onError'
author Adam Chlipala <adam@chlipala.net>
date Tue, 07 Sep 2010 08:28:07 -0400
parents e80582b927f2
children 929981850d9d
comparison
equal deleted inserted replaced
1293:acabf3935060 1294:b4480a56cab7
34 34
35 failure_kind uw_begin_init(uw_context); 35 failure_kind uw_begin_init(uw_context);
36 void uw_set_on_success(char *); 36 void uw_set_on_success(char *);
37 void uw_set_headers(uw_context, char *(*get_header)(void *, const char *), void *get_header_data); 37 void uw_set_headers(uw_context, char *(*get_header)(void *, const char *), void *get_header_data);
38 failure_kind uw_begin(uw_context, char *path); 38 failure_kind uw_begin(uw_context, char *path);
39 failure_kind uw_begin_onError(uw_context, char *msg);
39 void uw_login(uw_context); 40 void uw_login(uw_context);
40 void uw_commit(uw_context); 41 void uw_commit(uw_context);
41 int uw_rollback(uw_context); 42 int uw_rollback(uw_context);
42 43
43 __attribute__((noreturn)) void uw_error(uw_context, failure_kind, const char *fmt, ...); 44 __attribute__((noreturn)) void uw_error(uw_context, failure_kind, const char *fmt, ...);