From 55d1dac309e12f37ff3e84ed61b33bcfe368346d Mon Sep 17 00:00:00 2001 From: Tony van der Peet Date: Wed, 20 Nov 2024 14:46:47 +1300 Subject: [PATCH] Allow apteryx-xml.h to be included in C++ source It would appear that the namespace keyword cannot be used as a variable in a function prototype if the header file is included in a C++ file. --- apteryx-xml.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apteryx-xml.h b/apteryx-xml.h index f693d8a..d82852a 100644 --- a/apteryx-xml.h +++ b/apteryx-xml.h @@ -63,8 +63,8 @@ GList *sch_get_loaded_models (sch_instance * instance); sch_node *sch_child_first (sch_instance *instance); sch_node *sch_node_parent (sch_node *node); sch_node *sch_node_child (sch_node *parent, const char *name); -sch_node *sch_node_namespace_child (sch_node * parent, const char *namespace, const char *child); -sch_node *sch_node_by_namespace (sch_instance * instance, const char *namespace, +sch_node *sch_node_namespace_child (sch_node * parent, const char *ns, const char *child); +sch_node *sch_node_by_namespace (sch_instance * instance, const char *ns, const char *prefix); sch_node *sch_node_child_first (sch_node * parent); sch_node *sch_node_next_sibling (sch_node * node);