summaryrefslogtreecommitdiff
path: root/plugins/yaml/tree.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-12-11 00:01:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-12-11 00:01:03 (GMT)
commit700425c7d1e884882603eb49cec2a6a6c4118686 (patch)
treecc451fbd6d0611edf49e1c4368adc8c1a8ef30b0 /plugins/yaml/tree.h
parent48395d4471d87c20bdbd06bbab1ae3af938ff823 (diff)
Improved the search of Yaml nodes.
Diffstat (limited to 'plugins/yaml/tree.h')
-rw-r--r--plugins/yaml/tree.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/yaml/tree.h b/plugins/yaml/tree.h
index d152b7e..bfe034a 100644
--- a/plugins/yaml/tree.h
+++ b/plugins/yaml/tree.h
@@ -59,7 +59,10 @@ GYamlTree *g_yaml_tree_new(GYamlLine **, size_t);
GYamlNode *g_yaml_tree_get_root(const GYamlTree *);
/* Recherche les noeuds correspondant à un chemin. */
-void g_yaml_tree_find_by_path(const GYamlTree *, const char *, GYamlNode ***, size_t *);
+void g_yaml_tree_find_by_path(const GYamlTree *, const char *, bool, GYamlNode ***, size_t *);
+
+/* Recherche l'unique noeud correspondant à un chemin. */
+GYamlNode *g_yaml_tree_find_one_by_path(GYamlTree *, const char *, bool);