diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-12-27 10:37:24 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-12-27 10:37:24 -0500 |
commit | d14fddf5c814d77030a2bf1885ac2e955c8c961e (patch) | |
tree | 860e97379bc9422f4f7bd8fade58f9752afd92d9 /include/types.h | |
parent | 2ace64baba707b2e76778c74789735263eb50823 (diff) |
All three current protocols work with move to using uw_app
Diffstat (limited to 'include/types.h')
-rw-r--r-- | include/types.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 |