Mercurial > urweb
comparison include/request.h @ 853:19fdeef40ada
Factor out common request functionality, in preparation for supporting different protocols
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 23 Jun 2009 14:05:12 -0400 |
parents | |
children | 158d980889ac |
comparison
equal
deleted
inserted
replaced
852:4d4c62d95b9c | 853:19fdeef40ada |
---|---|
1 #ifndef REQUEST_H | |
2 #define REQUEST_H | |
3 | |
4 #include <sys/types.h> | |
5 | |
6 #include "types.h" | |
7 | |
8 typedef struct uw_rc *uw_request_context; | |
9 | |
10 void uw_request_init(void); | |
11 void uw_sign(const char *in, char *out); | |
12 | |
13 uw_request_context uw_new_request_context(void); | |
14 void uw_free_request_context(uw_request_context); | |
15 | |
16 request_result uw_request(uw_request_context, uw_context, char *request, size_t request_len, int sock); | |
17 | |
18 uw_context uw_request_new_context(void); | |
19 | |
20 void *client_pruner(void *data); | |
21 | |
22 #endif |