diff options
author | Simo Sorce <simo@redhat.com> | 2012-01-16 19:25:07 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-01-17 23:49:33 -0500 |
commit | 6e78f9028693fa17bbdc89dfd64111c76c2c9981 (patch) | |
tree | e325ae2c11dd638cd4a02f6ea70a4acf3acdfc79 /proxy/src/gp_utils.h | |
parent | 1aec40b19514481b4b155bf46a71e8bca139ccba (diff) | |
download | gss-proxy-6e78f9028693fa17bbdc89dfd64111c76c2c9981.tar.gz gss-proxy-6e78f9028693fa17bbdc89dfd64111c76c2c9981.tar.xz gss-proxy-6e78f9028693fa17bbdc89dfd64111c76c2c9981.zip |
Add proper reader/writer functions to gp_socket
Diffstat (limited to 'proxy/src/gp_utils.h')
-rw-r--r-- | proxy/src/gp_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/proxy/src/gp_utils.h b/proxy/src/gp_utils.h index 70e3293..09f3f06 100644 --- a/proxy/src/gp_utils.h +++ b/proxy/src/gp_utils.h @@ -28,6 +28,7 @@ #include <libintl.h> #include <stdbool.h> +#include <stdint.h> #include "verto.h" #define _(STRING) gettext(STRING) @@ -42,6 +43,8 @@ struct gssproxy_ctx { struct gp_config *config; }; +struct gp_conn; + /* from gp_config.c */ struct gp_config *read_config(char *config_file, int opt_daemonize); @@ -53,5 +56,8 @@ verto_ctx *init_event_loop(void); /* from gp_socket.c */ int init_unix_socket(const char *file_name); void accept_sock_conn(verto_ctx *vctx, verto_ev *ev); +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); #endif /* _SRV_UTILS_H_ */ |