Mercurial > urweb
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/request.h Tue Jun 23 14:05:12 2009 -0400 @@ -0,0 +1,22 @@ +#ifndef REQUEST_H +#define REQUEST_H + +#include <sys/types.h> + +#include "types.h" + +typedef struct uw_rc *uw_request_context; + +void uw_request_init(void); +void uw_sign(const char *in, char *out); + +uw_request_context uw_new_request_context(void); +void uw_free_request_context(uw_request_context); + +request_result uw_request(uw_request_context, uw_context, char *request, size_t request_len, int sock); + +uw_context uw_request_new_context(void); + +void *client_pruner(void *data); + +#endif