On a Monday in 2022, Peter Krempa wrote:
VIR_XPATH_NODE_AUTORESTORE_NAME is a more generic version of the
VIR_XPATH_NODE_AUTORESTORE macro used to save the 'node' inside a XPath
context struct. The new macro allows specifying the name of the variable
used to save the context so that it can be used multiple times inside a
function's nested scopes.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/util/virxml.h | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/util/virxml.h b/src/util/virxml.h
index 3b00d20ea9..09a8d89f1e 100644
--- a/src/util/virxml.h
+++ b/src/util/virxml.h
@@ -379,6 +379,20 @@ virXPathContextNodeRestore(virXPathContextNodeSave *save);
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano