From 99a0e023a458598597c2632cc4a8e4f3b2fd6b77 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 14 Jun 2010 16:51:15 +0200 Subject: [PATCH] graph_list.[ch]: Implement "gl_graph_get_selector". --- graph_list.c | 8 ++++++++ graph_list.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/graph_list.c b/graph_list.c index 2d0f575..0a93477 100644 --- a/graph_list.c +++ b/graph_list.c @@ -800,6 +800,14 @@ int gl_graph_get_title (graph_config_t *cfg, /* {{{ */ return (0); } /* }}} int gl_graph_get_title */ +graph_ident_t *gl_graph_get_selector (graph_config_t *cfg) /* {{{ */ +{ + if (cfg == NULL) + return (NULL); + + return (ident_clone (cfg->select)); +} /* }}} graph_ident_t *gl_graph_get_selector */ + int gl_instance_get_all (gl_inst_callback callback, /* {{{ */ void *user_data) { diff --git a/graph_list.h b/graph_list.h index 41e6ca3..b9045d5 100644 --- a/graph_list.h +++ b/graph_list.h @@ -30,6 +30,8 @@ graph_config_t *graph_get_selected (void); int gl_graph_get_title (graph_config_t *cfg, char *buffer, size_t buffer_size); +graph_ident_t *gl_graph_get_selector (graph_config_t *cfg); + int gl_graph_instance_get_all (graph_config_t *cfg, gl_inst_callback callback, void *user_data); -- 2.11.0