From d14fddf5c814d77030a2bf1885ac2e955c8c961e Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 27 Dec 2009 10:37:24 -0500 Subject: All three current protocols work with move to using uw_app --- include/types.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include/types.h') diff --git a/include/types.h b/include/types.h index 767b2345..1c52d460 100644 --- a/include/types.h +++ b/include/types.h @@ -52,4 +52,26 @@ typedef struct input *uw_input; typedef void (*uw_callback)(void *); typedef void (*uw_logger)(void*, const char *fmt, ...); +typedef struct { + int inputs_len, timeout; + char *url_prefix; + + void (*client_init)(); + void (*initializer)(uw_context); + void (*expunger)(uw_context, uw_Basis_client); + + void (*db_init)(uw_context); + int (*db_begin)(uw_context); + int (*db_commit)(uw_context); + int (*db_rollback)(uw_context); + void (*db_close)(uw_context); + + void (*handle)(uw_context, char *); + + int (*input_num)(const char*); + uw_Basis_string (*cookie_sig)(uw_context); + int (*check_url)(const char *); + int (*check_mime)(const char *); +} uw_app; + #endif -- cgit v1.2.3