graph_def.[ch]: Implement "def_append".
[collection4.git] / graph_list.c
index 2d0f575..8c5e715 100644 (file)
@@ -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)
 {