summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2012-06-14 16:57:15 +0200
committerSimo Sorce <simo@redhat.com>2012-06-25 16:49:36 -0400
commit0db9885a0217bd9416c464f26a1caa7d33fcaa9a (patch)
treeb1b010b96f2fc6a84e7e2e9a0d515f02ec2290c9
parenta8920635978c357f10c1477ea656eeee9689b374 (diff)
downloadgss-proxy-0db9885a0217bd9416c464f26a1caa7d33fcaa9a.tar.gz
gss-proxy-0db9885a0217bd9416c464f26a1caa7d33fcaa9a.tar.xz
gss-proxy-0db9885a0217bd9416c464f26a1caa7d33fcaa9a.zip
Add gp_service_get_ring_buffer to retrieve buffer from a service.
Guenther Signed-off-by: Simo Sorce <simo@redhat.com>
-rw-r--r--proxy/src/gp_config.c4
-rw-r--r--proxy/src/gp_proxy.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/proxy/src/gp_config.c b/proxy/src/gp_config.c
index 0c0ba65..cc2889d 100644
--- a/proxy/src/gp_config.c
+++ b/proxy/src/gp_config.c
@@ -347,3 +347,7 @@ struct gp_config *read_config(char *config_file, int opt_daemonize)
return cfg;
}
+struct gp_ring_buffer *gp_service_get_ring_buffer(struct gp_service *svc)
+{
+ return svc->ring_buffer;
+}
diff --git a/proxy/src/gp_proxy.h b/proxy/src/gp_proxy.h
index c5d1f6f..ee93258 100644
--- a/proxy/src/gp_proxy.h
+++ b/proxy/src/gp_proxy.h
@@ -82,6 +82,7 @@ struct gp_conn;
/* from gp_config.c */
struct gp_config *read_config(char *config_file, int opt_daemonize);
+struct gp_ring_buffer *gp_service_get_ring_buffer(struct gp_service *svc);
/* from gp_init.c */
void init_server(bool daemonize);