From cb1ab5633b112e083fa252712f8fc667373a93af Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 19 Jan 2012 15:15:57 -0500 Subject: Refactor workers init so we can pass down gpctx --- proxy/src/gp_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proxy/src/gp_utils.h') diff --git a/proxy/src/gp_utils.h b/proxy/src/gp_utils.h index 38ca400..fb77cd7 100644 --- a/proxy/src/gp_utils.h +++ b/proxy/src/gp_utils.h @@ -70,6 +70,7 @@ struct gp_workers; struct gssproxy_ctx { struct gp_config *config; struct gp_workers *workers; + verto_ctx *vctx; }; struct gp_conn; @@ -90,7 +91,7 @@ void gp_socket_send_data(verto_ctx *vctx, struct gp_conn *conn, uint8_t *buffer, size_t buflen); /* from gp_workers.c */ -struct gp_workers *gp_workers_init(verto_ctx *vctx, struct gp_config *cfg); +int gp_workers_init(struct gssproxy_ctx *gpctx); void gp_workers_free(struct gp_workers *w); int gp_query_new(struct gp_workers *w, struct gp_conn *conn, uint8_t *buffer, size_t buflen); -- cgit