diff options
author | Niels Provos <provos@gmail.com> | 2007-12-31 19:33:30 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2007-12-31 19:33:30 +0000 |
commit | 2460aa5939c91fe75761c75c3d0a90f32b9a73b2 (patch) | |
tree | a22ba55ea44895a066887c203e9cb255fead5d04 /evrpc-internal.h | |
parent | 5a5609c75317a8c011b02daf3853ebd3b6bab9fc (diff) | |
download | libevent-2460aa5939c91fe75761c75c3d0a90f32b9a73b2.tar.gz |
allow hooks to get access to the connection object
svn:r623
Diffstat (limited to 'evrpc-internal.h')
-rw-r--r-- | evrpc-internal.h | 14 |
1 files changed, 13 insertions, 1 deletions
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_ */ |