From 0db9885a0217bd9416c464f26a1caa7d33fcaa9a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Jun 2012 16:57:15 +0200 Subject: Add gp_service_get_ring_buffer to retrieve buffer from a service. Guenther Signed-off-by: Simo Sorce --- proxy/src/gp_config.c | 4 ++++ proxy/src/gp_proxy.h | 1 + 2 files changed, 5 insertions(+) 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); -- cgit