[libvirt PATCH v2 2/2] Corrected names in comments

K Shiva shiva_kr at riseup.net
Wed Jun 14 05:21:42 UTC 2023


Signed-off-by: K Shiva <shiva_kr at riseup.net>
---
This patch applies to: https://listman.redhat.com/archives/libvir-list/2023-June/240299.html
 src/conf/virnetworkobj.c |  8 ++++----
 src/libvirt-network.c    | 10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/conf/virnetworkobj.c b/src/conf/virnetworkobj.c
index f413b54425..82f90937bc 100644
--- a/src/conf/virnetworkobj.c
+++ b/src/conf/virnetworkobj.c
@@ -1808,7 +1808,7 @@ virNetworkObjLoadAllPorts(virNetworkObj *net,
  * @net: network object
  * @flags: flags to update the modification impact on
  *
- * Resolves virNetworkModificationImpact flags in @flags so that they correctly
+ * Resolves virNetworkUpdateFlags in @flags so that they correctly
  * apply to the actual state of @net. @flags may be modified after call to this
  * function.
  *
@@ -1850,7 +1850,7 @@ virNetworkObjUpdateModificationImpact(virNetworkObj *net,
  * virNetworkObjGetDefs:
  *
  * @net: network object
- * @flags: for virNetworkModificationImpact
+ * @flags: for virNetworkUpdateFlags
  * @liveDef: Set the pointer to the live definition of @net.
  * @persDef: Set the pointer to the config definition of @net.
  *
@@ -1898,7 +1898,7 @@ virNetworkObjGetDefs(virNetworkObj *net,
  * virNetworkObjGetOneDefState:
  *
  * @net: Network object
- * @flags: for virNetworkModificationImpact
+ * @flags: for virNetworkUpdateFlags
  * @live: set to true if live config was returned (may be omitted)
  *
  * Helper function to resolve @flags and return the correct network pointer
@@ -1941,7 +1941,7 @@ virNetworkObjGetOneDefState(virNetworkObj *net,
  * virNetworkObjGetOneDef:
  *
  * @net: Network object
- * @flags: for virNetworkModificationImpact
+ * @flags: for virNetworkUpdateFlags
  *
  * Helper function to resolve @flags and return the correct network pointer
  * object. This function returns one of @net->def or @net->persistentDef
diff --git a/src/libvirt-network.c b/src/libvirt-network.c
index 5f4e088421..c0c66bb2fa 100644
--- a/src/libvirt-network.c
+++ b/src/libvirt-network.c
@@ -1924,7 +1924,7 @@ virNetworkPortRef(virNetworkPortPtr port)
  * @metadata: new metadata text
  * @key: XML namespace key, or NULL
  * @uri: XML namespace URI, or NULL
- * @flags: bitwise-OR of virDomainModificationImpact
+ * @flags: bitwise-OR of virNetworkUpdateFlags
  *
  * Sets the appropriate network element given by @type to the
  * value of @metadata.  A @type of VIR_NETWORK_METADATA_DESCRIPTION
@@ -1937,12 +1937,12 @@ virNetworkPortRef(virNetworkPortPtr port)
  * XML belonging to namespace defined by @uri with local name @key.
  *
  * Passing NULL for @metadata says to remove that element from the
- * domain XML (passing the empty string leaves the element present).
+ * network XML (passing the empty string leaves the element present).
  *
  * The resulting metadata will be present in virNetworkGetXMLDesc(),
  * as well as quick access through virNetworkGetMetadata().
  *
- * @flags controls whether the live domain, persistent configuration,
+ * @flags controls whether the live network state, persistent configuration,
  * or both will be modified.
  *
  * Returns 0 on success, -1 in case of failure.
@@ -2015,7 +2015,7 @@ virNetworkSetMetadata(virNetworkPtr network,
  * @network: a network object
  * @type: type of metadata, from virNetworkMetadataType
  * @uri: XML namespace identifier
- * @flags: bitwise-OR of virDomainModificationImpact
+ * @flags: bitwise-OR of virNetworkUpdateFlags
  *
  * Retrieves the appropriate network element given by @type.
  * If VIR_NETWORK_METADATA_ELEMENT is requested parameter @uri
@@ -2027,7 +2027,7 @@ virNetworkSetMetadata(virNetworkPtr network,
  * a shortcut for seeing information from virNetworkSetMetadata()
  * without having to go through virNetworkGetXMLDesc().
  *
- * @flags controls whether the live domain or persistent
+ * @flags controls whether the live network state or persistent
  * configuration will be queried.
  *
  * Returns the metadata string on success (caller must free),
-- 
2.41.0



More information about the libvir-list mailing list