diff options
Diffstat (limited to 'proxy/src/gp_utils.h')
-rw-r--r-- | proxy/src/gp_utils.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/proxy/src/gp_utils.h b/proxy/src/gp_utils.h index 09f3f06..47d766d 100644 --- a/proxy/src/gp_utils.h +++ b/proxy/src/gp_utils.h @@ -34,13 +34,17 @@ #define _(STRING) gettext(STRING) struct gp_config { - char *config_file; - bool daemonize; - char *socket_name; + char *config_file; /* gssproxy configuration file */ + bool daemonize; /* let gssproxy daemonize */ + char *socket_name; /* the socket name to use for */ + int num_workers; /* number of worker threads */ }; +struct gp_workers; + struct gssproxy_ctx { struct gp_config *config; + struct gp_workers *workers; }; struct gp_conn; @@ -60,4 +64,10 @@ void gp_conn_free(struct gp_conn *conn); 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); +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); + #endif /* _SRV_UTILS_H_ */ |