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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
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@xxxxxxxxxx>

Jano




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux