From: Florian Forster Date: Mon, 14 Jun 2010 14:51:15 +0000 (+0200) Subject: graph_list.[ch]: Implement "gl_graph_get_selector". X-Git-Tag: v4.0.0~282 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=99a0e023a458598597c2632cc4a8e4f3b2fd6b77;p=collection4.git graph_list.[ch]: Implement "gl_graph_get_selector". --- 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);