diff options
Diffstat (limited to 'plugins/yaml')
-rw-r--r-- | plugins/yaml/node-int.h | 4 | ||||
-rw-r--r-- | plugins/yaml/node.c | 6 | ||||
-rw-r--r-- | plugins/yaml/node.h | 4 | ||||
-rw-r--r-- | plugins/yaml/scalar.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/plugins/yaml/node-int.h b/plugins/yaml/node-int.h index aea8ad1..9100c92 100644 --- a/plugins/yaml/node-int.h +++ b/plugins/yaml/node-int.h @@ -30,7 +30,7 @@ /* Recherche les noeuds correspondant à un chemin. */ -typedef void (* find_yaml_node_fc) (GYamlNode *, const char *, bool, GYamlNode ***, size_t *); +typedef void (* find_yaml_node_fc) (const GYamlNode *, const char *, bool, GYamlNode ***, size_t *); /* Noeud d'une arborescence au format Yaml (instance) */ @@ -51,7 +51,7 @@ struct _GYamlNodeClass /* Recherche les noeuds correspondant à un chemin. */ -void _g_yaml_node_find_by_path(GYamlNode *, const char *, bool, GYamlNode ***, size_t *); +void _g_yaml_node_find_by_path(const GYamlNode *, const char *, bool, GYamlNode ***, size_t *); diff --git a/plugins/yaml/node.c b/plugins/yaml/node.c index 9c815d6..d35de9c 100644 --- a/plugins/yaml/node.c +++ b/plugins/yaml/node.c @@ -145,7 +145,7 @@ static void g_yaml_node_finalize(GYamlNode *node) * * ******************************************************************************/ -void _g_yaml_node_find_by_path(GYamlNode *node, const char *path, bool prepare, GYamlNode ***nodes, size_t *count) +void _g_yaml_node_find_by_path(const GYamlNode *node, const char *path, bool prepare, GYamlNode ***nodes, size_t *count) { GYamlNodeClass *class; /* Classe de l'instance */ @@ -172,7 +172,7 @@ void _g_yaml_node_find_by_path(GYamlNode *node, const char *path, bool prepare, * * ******************************************************************************/ -void g_yaml_node_find_by_path(GYamlNode *node, const char *path, bool prepare, GYamlNode ***nodes, size_t *count) +void g_yaml_node_find_by_path(const GYamlNode *node, const char *path, bool prepare, GYamlNode ***nodes, size_t *count) { *nodes = NULL; *count = 0; @@ -196,7 +196,7 @@ void g_yaml_node_find_by_path(GYamlNode *node, const char *path, bool prepare, G * * ******************************************************************************/ -GYamlNode *g_yaml_node_find_one_by_path(GYamlNode *node, const char *path, bool prepare) +GYamlNode *g_yaml_node_find_one_by_path(const GYamlNode *node, const char *path, bool prepare) { GYamlNode *result; /* Trouvaille unique à renvoyer*/ GYamlNode **nodes; /* Liste de noeuds trouvés */ diff --git a/plugins/yaml/node.h b/plugins/yaml/node.h index f472da7..4c290f7 100644 --- a/plugins/yaml/node.h +++ b/plugins/yaml/node.h @@ -58,10 +58,10 @@ GType g_yaml_node_get_type(void); GYamlLine *g_yaml_node_get_yaml_line(const GYamlNode *); /* Recherche les noeuds correspondant à un chemin. */ -void g_yaml_node_find_by_path(GYamlNode *, const char *, bool, GYamlNode ***, size_t *); +void g_yaml_node_find_by_path(const 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 *, bool); +GYamlNode *g_yaml_node_find_one_by_path(const GYamlNode *, const char *, bool); diff --git a/plugins/yaml/scalar.c b/plugins/yaml/scalar.c index fe54be9..1dd5989 100644 --- a/plugins/yaml/scalar.c +++ b/plugins/yaml/scalar.c @@ -63,7 +63,7 @@ static void g_yaml_scalar_dispose(GYamlScalar *); static void g_yaml_scalar_finalize(GYamlScalar *); /* Recherche les noeuds correspondant à un chemin. */ -static void g_yaml_scalar_find_by_path(GYamlScalar *, const char *, bool, GYamlNode ***, size_t *); +static void g_yaml_scalar_find_by_path(const GYamlScalar *, const char *, bool, GYamlNode ***, size_t *); @@ -289,7 +289,7 @@ GYamlCollection *g_yaml_scalar_get_collection(const GYamlScalar *node) * * ******************************************************************************/ -static void g_yaml_scalar_find_by_path(GYamlScalar *node, const char *path, bool prepare, GYamlNode ***nodes, size_t *count) +static void g_yaml_scalar_find_by_path(const GYamlScalar *node, const char *path, bool prepare, GYamlNode ***nodes, size_t *count) { GYamlLine *line; /* Ligne Yaml liée au noeud */ const char *key; /* Clef associée au noeud */ |