[PATCH 27/37] util: xml: Introduce VIR_XPATH_NODE_AUTORESTORE_NAME

Ján Tomko jtomko at redhat.com
Mon Sep 26 14:25:32 UTC 2022


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 at 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 at redhat.com>

Jano


More information about the libvir-list mailing list