X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=graph_list.c;h=8c5e7158208f57077e81886f2044d367e68dc090;hb=173a3843530edd1049a7b4071883574e363c2bec;hp=2d0f57500a111a50e67a1b80fe45c9ea4309b965;hpb=477b8a38dc1b3d0ae5e726f765722c962b2fcb46;p=collection4.git diff --git a/graph_list.c b/graph_list.c index 2d0f575..8c5e715 100644 --- a/graph_list.c +++ b/graph_list.c @@ -217,7 +217,7 @@ static graph_instance_t *instance_create (graph_config_t *cfg, /* {{{ */ memset (i, 0, sizeof (*i)); i->select = ident_copy_with_selector (cfg->select, file, - /* keep_all_selector = */ 1); + IDENT_FLAG_REPLACE_ANY); i->files = NULL; i->files_num = 0; @@ -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) {