summaryrefslogtreecommitdiff
path: root/include/request.h
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-06-23 14:05:12 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-06-23 14:05:12 -0400
commit91faf79d92661a24d5a79f340c54be460b2af431 (patch)
treee623aac5c0b1237fc0e7d16fa0749b114d18aa6e /include/request.h
parent5279aee30a3e80436340771adffb4bc9cc7c4718 (diff)
Factor out common request functionality, in preparation for supporting different protocols
Diffstat (limited to 'include/request.h')
-rw-r--r--include/request.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/request.h b/include/request.h
new file mode 100644
index 00000000..1111f47f
--- /dev/null
+++ b/include/request.h
@@ -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