summaryrefslogtreecommitdiff
path: root/plugins/yaml/node.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-11-17 19:10:25 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-11-17 19:10:25 (GMT)
commitcef46f9f06a7448db60116e8c0ccadee44d83692 (patch)
tree75201f66b26499ad1968d6e1cec88f18ad80b72b /plugins/yaml/node.h
parentc02661b7a8151a49a77c39241b040aa9bdb30223 (diff)
Extended the API to find an unique Yaml node.
Diffstat (limited to 'plugins/yaml/node.h')
-rw-r--r--plugins/yaml/node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/yaml/node.h b/plugins/yaml/node.h
index f1bbb23..e1526d2 100644
--- a/plugins/yaml/node.h
+++ b/plugins/yaml/node.h
@@ -72,6 +72,9 @@ void _g_yaml_node_find_by_path(GYamlNode *, const char *, GYamlNode ***, size_t
/* Recherche les noeuds correspondant à un chemin. */
void g_yaml_node_find_by_path(GYamlNode *, const char *, GYamlNode ***, size_t *);
+/* Recherche l'unique noeud correspondant à un chemin. */
+GYamlNode *g_yaml_node_find_one_by_path(GYamlNode *, const char *);
+
#endif /* PLUGINS_YAML_NODE_H */