summaryrefslogtreecommitdiff
path: root/evrpc-internal.h
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2006-11-20 03:32:53 +0000
committerNiels Provos <provos@gmail.com>2006-11-20 03:32:53 +0000
commitfda1216b6e18df98b8f3c32ce4132f955c346a90 (patch)
treeefd16c5cc8716b7a867f9756185d8d9497904808 /evrpc-internal.h
parent3a15f7d4e4f3de810e2b81634b4e60f286605066 (diff)
downloadlibevent-fda1216b6e18df98b8f3c32ce4132f955c346a90.tar.gz
generate client request code via macro; flesh out the pools a little bit.
svn:r268
Diffstat (limited to 'evrpc-internal.h')
-rw-r--r--evrpc-internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/evrpc-internal.h b/evrpc-internal.h
index 4a27a364..de2ab47d 100644
--- a/evrpc-internal.h
+++ b/evrpc-internal.h
@@ -27,6 +27,8 @@
#ifndef _EVRPC_INTERNAL_H_
#define _EVRPC_INTERNAL_H_
+#include "http-internal.h"
+
struct evrpc;
#define EVRPC_URI_PREFIX "/.rpc."
@@ -42,4 +44,12 @@ struct evrpc_base {
struct evrpc_req_generic;
void evrpc_reqstate_free(struct evrpc_req_generic* rpc_state);
+/* A pool for holding evhttp_connection objects */
+struct evrpc_pool {
+ struct evconq connections;
+
+ TAILQ_HEAD(evrpc_requestq, evrpc_request_wrapper) requests;
+};
+
+
#endif /* _EVRPC_INTERNAL_H_ */