summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/xmlfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/xmlfile.h')
-rw-r--r--src/lib/util/xmlfile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/util/xmlfile.h b/src/lib/util/xmlfile.h
index ac4e9864f13..b4bcf3e17e7 100644
--- a/src/lib/util/xmlfile.h
+++ b/src/lib/util/xmlfile.h
@@ -134,6 +134,9 @@ public:
// return whether a node has the specified attribute
bool has_attribute(const char *attribute) const;
+ // return a pointer to the string value of an attribute, or nullptr if not present
+ std::string const *get_attribute_string_ptr(const char *attribute) const;
+
// return the string value of an attribute, or the specified default if not present
const char *get_attribute_string(const char *attribute, const char *defvalue) const;