summaryrefslogtreecommitdiff
path: root/plugins/yaml/node.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/node.h
parent48395d4471d87c20bdbd06bbab1ae3af938ff823 (diff)
Improved the search of Yaml nodes.
Diffstat (limited to 'plugins/yaml/node.h')
-rw-r--r--plugins/yaml/node.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/yaml/node.h b/plugins/yaml/node.h
index e1526d2..f472da7 100644
--- a/plugins/yaml/node.h
+++ b/plugins/yaml/node.h
@@ -1,6 +1,6 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
- * node.h - prototypes pour une ligne de contenu Yaml
+ * node.h - prototypes pour une définition de noeud Yaml
*
* Copyright (C) 2019 Cyrille Bagard
*
@@ -54,26 +54,14 @@ typedef struct _GYamlNodeClass GYamlNodeClass;
/* Indique le type défini pour un noeud d'arborescence Yaml. */
GType g_yaml_node_get_type(void);
-/* Construit un noeud d'arborescence Yaml. */
-GYamlNode *g_yaml_node_new(GYamlLine *);
-
/* Fournit la ligne principale associée à un noeud. */
GYamlLine *g_yaml_node_get_yaml_line(const GYamlNode *);
-/* Attache une collection de noeuds Yaml à un noeud. */
-void g_yaml_node_set_collection(GYamlNode *, GYamlCollection *);
-
-/* Fournit une éventuelle collection rattachée à un noeud. */
-GYamlCollection *g_yaml_node_get_collection(const GYamlNode *);
-
-/* Recherche les noeuds correspondant à un chemin. */
-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 *);
+void g_yaml_node_find_by_path(GYamlNode *, const char *, bool, GYamlNode ***, size_t *);
/* Recherche l'unique noeud correspondant à un chemin. */
-GYamlNode *g_yaml_node_find_one_by_path(GYamlNode *, const char *);
+GYamlNode *g_yaml_node_find_one_by_path(GYamlNode *, const char *, bool);