comparison include/types.h @ 1094:db52c32dbe42

All three current protocols work with move to using uw_app
author Adam Chlipala <adamc@hcoop.net>
date Sun, 27 Dec 2009 10:37:24 -0500
parents 217eb87dde31
children 150465f2895c
comparison
equal deleted inserted replaced
1093:8d3aa6c7cee0 1094:db52c32dbe42
50 #define TIMES_MAX 100 50 #define TIMES_MAX 100
51 51
52 typedef void (*uw_callback)(void *); 52 typedef void (*uw_callback)(void *);
53 typedef void (*uw_logger)(void*, const char *fmt, ...); 53 typedef void (*uw_logger)(void*, const char *fmt, ...);
54 54
55 typedef struct {
56 int inputs_len, timeout;
57 char *url_prefix;
58
59 void (*client_init)();
60 void (*initializer)(uw_context);
61 void (*expunger)(uw_context, uw_Basis_client);
62
63 void (*db_init)(uw_context);
64 int (*db_begin)(uw_context);
65 int (*db_commit)(uw_context);
66 int (*db_rollback)(uw_context);
67 void (*db_close)(uw_context);
68
69 void (*handle)(uw_context, char *);
70
71 int (*input_num)(const char*);
72 uw_Basis_string (*cookie_sig)(uw_context);
73 int (*check_url)(const char *);
74 int (*check_mime)(const char *);
75 } uw_app;
76
55 #endif 77 #endif