diff options
author | 2009-06-23 17:59:23 -0400 | |
---|---|---|
committer | 2009-06-23 17:59:23 -0400 | |
commit | 1a20e0c5c29da01338be0812bb819f9dd5e84ebc (patch) | |
tree | 767ed7f7342d56957d23eea82004fb2f2d85e032 /include/request.h | |
parent | a4717bf85434747f0e96aa11030ce0869db2706c (diff) |
cgi protocol
Diffstat (limited to 'include/request.h')
-rw-r--r-- | include/request.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/request.h b/include/request.h index 7a2dc517..e319e91a 100644 --- a/include/request.h +++ b/include/request.h @@ -7,7 +7,7 @@ typedef struct uw_rc *uw_request_context; -void uw_request_init(void); +void uw_request_init(void *logger_data, uw_logger log_error, uw_logger log_debug); void uw_sign(const char *in, char *out); uw_request_context uw_new_request_context(void); @@ -16,9 +16,16 @@ void uw_free_request_context(uw_request_context); request_result uw_request(uw_request_context, uw_context, char *method, char *path, char *query_string, char *body, size_t body_len, + void (*on_success)(uw_context), void (*on_failure)(uw_context), + void *logger_data, uw_logger log_error, uw_logger log_debug, int sock); -uw_context uw_request_new_context(void); +uw_context uw_request_new_context(void *logger_data, uw_logger log_error, uw_logger log_debug); + +typedef struct { + void *logger_data; + uw_logger log_error, log_debug; +} loggers; void *client_pruner(void *data); |