comparison include/urweb.h @ 1115:150465f2895c

Database quotas
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Jan 2010 17:13:45 -0500
parents 01b6c7144a44
children 87b0a9d08e73
comparison
equal deleted inserted replaced
1114:01b6c7144a44 1115:150465f2895c
38 void uw_commit(uw_context); 38 void uw_commit(uw_context);
39 int uw_rollback(uw_context); 39 int uw_rollback(uw_context);
40 40
41 __attribute__((noreturn)) void uw_error(uw_context, failure_kind, const char *fmt, ...); 41 __attribute__((noreturn)) void uw_error(uw_context, failure_kind, const char *fmt, ...);
42 char *uw_error_message(uw_context); 42 char *uw_error_message(uw_context);
43 void uw_set_error_message(uw_context, const char *);
43 void uw_push_cleanup(uw_context, void (*func)(void *), void *arg); 44 void uw_push_cleanup(uw_context, void (*func)(void *), void *arg);
44 void uw_pop_cleanup(uw_context); 45 void uw_pop_cleanup(uw_context);
45 46
46 void *uw_malloc(uw_context, size_t); 47 void *uw_malloc(uw_context, size_t);
47 void uw_begin_region(uw_context); 48 void uw_begin_region(uw_context);
258 void uw_set_currentUrl(uw_context, char *); 259 void uw_set_currentUrl(uw_context, char *);
259 260
260 extern size_t uw_messages_max, uw_clients_max, uw_headers_max, uw_page_max, uw_heap_max, uw_script_max; 261 extern size_t uw_messages_max, uw_clients_max, uw_headers_max, uw_page_max, uw_heap_max, uw_script_max;
261 extern size_t uw_inputs_max, uw_cleanup_max, uw_subinputs_max, uw_deltas_max, uw_transactionals_max, uw_globals_max; 262 extern size_t uw_inputs_max, uw_cleanup_max, uw_subinputs_max, uw_deltas_max, uw_transactionals_max, uw_globals_max;
262 263
264 extern size_t uw_database_max;
265
263 extern int uw_time; 266 extern int uw_time;
264 267
265 void uw_set_deadline(uw_context, int); 268 void uw_set_deadline(uw_context, int);
266 void uw_check_deadline(uw_context); 269 void uw_check_deadline(uw_context);
267 270