From 2460aa5939c91fe75761c75c3d0a90f32b9a73b2 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Mon, 31 Dec 2007 19:33:30 +0000 Subject: allow hooks to get access to the connection object svn:r623 --- evrpc-internal.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'evrpc-internal.h') diff --git a/evrpc-internal.h b/evrpc-internal.h index bffe8a2c..44ebee18 100644 --- a/evrpc-internal.h +++ b/evrpc-internal.h @@ -110,7 +110,19 @@ struct evrpc_meta { TAILQ_HEAD(evrpc_meta_list, evrpc_meta); +struct evrpc_hook_meta { + struct evrpc_meta_list meta_data; + struct evhttp_connection *evcon; +}; + +/* allows association of meta data with a request */ +static void evrpc_hook_associate_meta(struct evrpc_hook_meta **pctx, + struct evhttp_connection *evcon); + +/* creates a new meta data store */ +static struct evrpc_hook_meta *evrpc_hook_meta_new(void); + /* frees the meta data associated with a request */ -static void evrpc_meta_data_free(struct evrpc_meta_list *meta_data); +static void evrpc_hook_context_free(struct evrpc_hook_meta *ctx); #endif /* _EVRPC_INTERNAL_H_ */ -- cgit v1.2.1