*
* URIs are documented at http://libvirt.org/uri.html
*
+ * virConnectClose should be used to release the resources after the connection
+ * is no longer needed.
+ *
* Returns a pointer to the hypervisor connection or NULL in case of error
*/
virConnectPtr
* on the available methods to control the domains.
*
* See virConnectOpen for notes about environment variables which can
- * have an effect on opening drivers
+ * have an effect on opening drivers and freeing the connection resources
*
* URIs are documented at http://libvirt.org/uri.html
*
* credentials via the callback
*
* See virConnectOpen for notes about environment variables which can
- * have an effect on opening drivers
+ * have an effect on opening drivers and freeing the connection resources
*
* URIs are documented at http://libvirt.org/uri.html
*
* libvirtd daemon. Any domains marked for auto destroy will
* block attempts at migration, save-to-file, or snapshots.
*
+ * virDomainFree should be used to free the resources after the
+ * domain object is no longer needed.
+ *
* Returns a new domain object or NULL in case of failure
*/
virDomainPtr
* libvirtd daemon. Any domains marked for auto destroy will
* block attempts at migration, save-to-file, or snapshots.
*
+ * virDomainFree should be used to free the resources after the
+ * domain object is no longer needed.
+ *
* Returns a new domain object or NULL in case of failure
*/
virDomainPtr
* Note that this won't work for inactive domains which have an ID of -1,
* in that case a lookup based on the Name or UUId need to be done instead.
*
+ * virDomainFree should be used to free the resources after the
+ * domain object is no longer needed.
+ *
* Returns a new domain object or NULL in case of failure. If the
* domain cannot be found, then VIR_ERR_NO_DOMAIN error is raised.
*/
*
* Try to lookup a domain on the given hypervisor based on its UUID.
*
+ * virDomainFree should be used to free the resources after the
+ * domain object is no longer needed.
+ *
* Returns a new domain object or NULL in case of failure. If the
* domain cannot be found, then VIR_ERR_NO_DOMAIN error is raised.
*/
*
* Try to lookup a domain on the given hypervisor based on its UUID.
*
+ * virDomainFree should be used to free the resources after the
+ * domain object is no longer needed.
+ *
* Returns a new domain object or NULL in case of failure. If the
* domain cannot be found, then VIR_ERR_NO_DOMAIN error is raised.
*/
*
* Try to lookup a domain on the given hypervisor based on its name.
*
+ * virDomainFree should be used to free the resources after the
+ * domain object is no longer needed.
+ *
* Returns a new domain object or NULL in case of failure. If the
* domain cannot be found, then VIR_ERR_NO_DOMAIN error is raised.
*/
* different processors even with the same architecture, or between
* different types of hypervisor.
*
+ * virDomainFree should be used to free the resources after the
+ * returned domain object is no longer needed.
+ *
* Returns the new domain object if the migration was successful,
* or NULL in case of error. Note that the new domain object
* exists in the scope of the destination connection (dconn).
* @dname for that purpose). Domain name in @dxml must match the
* original domain name.
*
+ * virDomainFree should be used to free the resources after the
+ * returned domain object is no longer needed.
+ *
* Returns the new domain object if the migration was successful,
* or NULL in case of error. Note that the new domain object
* exists in the scope of the destination connection (dconn).
* different processors even with the same architecture, or between
* different types of hypervisor.
*
+ * virDomainFree should be used to free the resources after the
+ * returned domain object is no longer needed.
+ *
* Returns the new domain object if the migration was successful,
* or NULL in case of error. Note that the new domain object
* exists in the scope of the destination connection (dconn).
* @dom: pointer to domain object
* @disk: path to the block device, or device shorthand
* @params: pointer to block stats parameter object
- * (return value)
+ * (return value, allocated by the caller)
* @nparams: pointer to number of block stats; input and output
* @flags: bitwise-OR of virTypedParameterFlags
*
* domain being defined; in that case, use virDomainBlockJobAbort() to
* stop the block copy first.
*
+ * virDomainFree should be used to free the resources after the
+ * domain object is no longer needed.
+ *
* Returns NULL in case of error, a pointer to the domain otherwise
*/
virDomainPtr
*
* Try to lookup a network on the given hypervisor based on its name.
*
+ * virNetworkFree should be used to free the resources after the
+ * network object is no longer needed.
+ *
* Returns a new network object or NULL in case of failure. If the
* network cannot be found, then VIR_ERR_NO_NETWORK error is raised.
*/
*
* Try to lookup a network on the given hypervisor based on its UUID.
*
+ * virNetworkFree should be used to free the resources after the
+ * network object is no longer needed.
+ *
* Returns a new network object or NULL in case of failure. If the
* network cannot be found, then VIR_ERR_NO_NETWORK error is raised.
*/
* Create and start a new virtual network, based on an XML description
* similar to the one returned by virNetworkGetXMLDesc()
*
+ * virNetworkFree should be used to free the resources after the
+ * network object is no longer needed.
+ *
* Returns a new network object or NULL in case of failure
*/
virNetworkPtr
*
* Define a network, but does not create it
*
+ * virNetworkFree should be used to free the resources after the
+ * network object is no longer needed.
+ *
* Returns NULL in case of error, a pointer to the network otherwise
*/
virNetworkPtr
*
* Try to lookup an interface on the given hypervisor based on its name.
*
+ * virInterfaceFree should be used to free the resources after the
+ * interface object is no longer needed.
+ *
* Returns a new interface object or NULL in case of failure. If the
* interface cannot be found, then VIR_ERR_NO_INTERFACE error is raised.
*/
*
* Try to lookup an interface on the given hypervisor based on its MAC.
*
+ * virInterfaceFree should be used to free the resources after the
+ * interface object is no longer needed.
+ *
* Returns a new interface object or NULL in case of failure. If the
* interface cannot be found, then VIR_ERR_NO_INTERFACE error is raised.
*/
* automatically removed during the next reboot of the system running
* libvirtd.
*
+ * virInterfaceFree should be used to free the resources after the
+ * interface object is no longer needed.
+ *
* Returns NULL in case of error, a pointer to the interface otherwise
*/
virInterfacePtr
*
* Fetch a storage pool based on its unique name
*
+ * virStoragePoolFree should be used to free the resources after the
+ * storage pool object is no longer needed.
+ *
* Returns a virStoragePoolPtr object, or NULL if no matching pool is found
*/
virStoragePoolPtr
*
* Fetch a storage pool based on its globally unique id
*
+ * virStoragePoolFree should be used to free the resources after the
+ * storage pool object is no longer needed.
+ *
* Returns a virStoragePoolPtr object, or NULL if no matching pool is found
*/
virStoragePoolPtr
*
* Fetch a storage pool based on its globally unique id
*
+ * virStoragePoolFree should be used to free the resources after the
+ * storage pool object is no longer needed.
+ *
* Returns a virStoragePoolPtr object, or NULL if no matching pool is found
*/
virStoragePoolPtr
*
* Fetch a storage pool which contains a particular volume
*
+ * virStoragePoolFree should be used to free the resources after the
+ * storage pool object is no longer needed.
+ *
* Returns a virStoragePoolPtr object, or NULL if no matching pool is found
*/
virStoragePoolPtr
* pool is not persistent, so its definition will disappear
* when it is destroyed, or if the host is restarted
*
+ * virStoragePoolFree should be used to free the resources after the
+ * storage pool object is no longer needed.
+ *
* Returns a virStoragePoolPtr object, or NULL if creation failed
*/
virStoragePoolPtr
* Define a new inactive storage pool based on its XML description. The
* pool is persistent, until explicitly undefined.
*
+ * virStoragePoolFree should be used to free the resources after the
+ * storage pool object is no longer needed.
+ *
* Returns a virStoragePoolPtr object, or NULL if creation failed
*/
virStoragePoolPtr
* storage pool. This is suitable for later feeding back
* into the virStoragePoolCreateXML method.
*
- * Returns a XML document, or NULL on error
+ * Returns a XML document (caller frees), or NULL on error
*/
char *
virStoragePoolGetXMLDesc(virStoragePoolPtr pool,
* Fetch a pointer to a storage volume based on its name
* within a pool
*
+ * virStorageVolFree should be used to free the resources after the
+ * storage volume object is no longer needed.
+ *
* Returns a storage volume, or NULL if not found / error
*/
virStorageVolPtr
* Fetch a pointer to a storage volume based on its
* globally unique key
*
+ * virStorageVolFree should be used to free the resources after the
+ * storage volume object is no longer needed.
+ *
* Returns a storage volume, or NULL if not found / error
*/
virStorageVolPtr
* Fetch a pointer to a storage volume based on its
* locally (host) unique path
*
+ * virStorageVolFree should be used to free the resources after the
+ * storage volume object is no longer needed.
+ *
* Returns a storage volume, or NULL if not found / error
*/
virStorageVolPtr
* qcow2 image files which don't support full preallocation,
* by creating a sparse image file with metadata.
*
+ * virStorageVolFree should be used to free the resources after the
+ * storage volume object is no longer needed.
+ *
* Returns the storage volume, or NULL on error
*/
virStorageVolPtr
* qcow2 image files which don't support full preallocation,
* by creating a sparse image file with metadata.
*
+ * virStorageVolFree should be used to free the resources after the
+ * storage volume object is no longer needed.
+ *
* Returns the storage volume, or NULL on error
*/
virStorageVolPtr
*
* Lookup a node device by its name.
*
+ * virNodeDeviceFree should be used to free the resources after the
+ * node device object is no longer needed.
+ *
* Returns a virNodeDevicePtr if found, NULL otherwise.
*/
virNodeDevicePtr
*
* Lookup SCSI Host which is capable with 'fc_host' by its WWNN and WWPN.
*
+ * virNodeDeviceFree should be used to free the resources after the
+ * node device object is no longer needed.
+ *
* Returns a virNodeDevicePtr if found, NULL otherwise.
*/
virNodeDevicePtr
* Create a new device on the VM host machine, for example, virtual
* HBAs created using vport_create.
*
+ * virNodeDeviceFree should be used to free the resources after the
+ * node device object is no longer needed.
+ *
* Returns a node device object if successful, NULL in case of failure
*/
virNodeDevicePtr
* Try to lookup a secret on the given hypervisor based on its UUID.
* Uses the 16 bytes of raw data to describe the UUID
*
+ * virSecretFree should be used to free the resources after the
+ * secret object is no longer needed.
+ *
* Returns a new secret object or NULL in case of failure. If the
* secret cannot be found, then VIR_ERR_NO_SECRET error is raised.
*/
* Try to lookup a secret on the given hypervisor based on its UUID.
* Uses the printable string value to describe the UUID
*
+ * virSecretFree should be used to free the resources after the
+ * secret object is no longer needed.
+ *
* Returns a new secret object or NULL in case of failure. If the
* secret cannot be found, then VIR_ERR_NO_SECRET error is raised.
*/
* The usageID is unique within the set of secrets sharing the
* same usageType value.
*
+ * virSecretFree should be used to free the resources after the
+ * secret object is no longer needed.
+ *
* Returns a new secret object or NULL in case of failure. If the
* secret cannot be found, then VIR_ERR_NO_SECRET error is raised.
*/
* Otherwise, creates a new secret with an automatically chosen UUID, and
* initializes its attributes from xml.
*
+ * virSecretFree should be used to free the resources after the
+ * secret object is no longer needed.
+ *
* Returns a secret on success, NULL on failure.
*/
virSecretPtr
*
* Try to lookup a network filter on the given hypervisor based on its name.
*
+ * virNWFilterFree should be used to free the resources after the
+ * nwfilter object is no longer needed.
+ *
* Returns a new nwfilter object or NULL in case of failure. If the
* network filter cannot be found, then VIR_ERR_NO_NWFILTER error is raised.
*/
*
* Try to lookup a network filter on the given hypervisor based on its UUID.
*
+ * virNWFilterFree should be used to free the resources after the
+ * nwfilter object is no longer needed.
+ *
* Returns a new nwfilter object or NULL in case of failure. If the
* nwfdilter cannot be found, then VIR_ERR_NO_NWFILTER error is raised.
*/
*
* Try to lookup an nwfilter on the given hypervisor based on its UUID.
*
+ * virNWFilterFree should be used to free the resources after the
+ * nwfilter object is no longer needed.
+ *
* Returns a new nwfilter object or NULL in case of failure. If the
* nwfilter cannot be found, then VIR_ERR_NO_NWFILTER error is raised.
*/
* Define a new network filter, based on an XML description
* similar to the one returned by virNWFilterGetXMLDesc()
*
+ * virNWFilterFree should be used to free the resources after the
+ * nwfilter object is no longer needed.
+ *
* Returns a new nwfilter object or NULL in case of failure
*/
virNWFilterPtr
* without this flag features that are part of the CPU model will not be
* listed.
*
- * Returns XML description of the computed CPU or NULL on error.
+ * Returns XML description of the computed CPU (caller frees) or NULL on error.
*/
char *
virConnectBaselineCPU(virConnectPtr conn,
* block copy operation; in that case, use virDomainBlockJobAbort()
* to stop the block copy first.
*
+ * virDomainSnapshotFree should be used to free the resources after the
+ * snapshot object is no longer needed.
+ *
* Returns an (opaque) virDomainSnapshotPtr on success, NULL on failure.
*/
virDomainSnapshotPtr
*
* Get the current snapshot for a domain, if any.
*
+ * virDomainSnapshotFree should be used to free the resources after the
+ * snapshot object is no longer needed.
+ *
* Returns a domain snapshot object or NULL in case of failure. If the
* current domain snapshot cannot be found, then the VIR_ERR_NO_DOMAIN_SNAPSHOT
* error is raised.
*
* Get the parent snapshot for @snapshot, if any.
*
+ * virDomainSnapshotFree should be used to free the resources after the
+ * snapshot object is no longer needed.
+ *
* Returns a domain snapshot object or NULL in case of failure. If the
* given snapshot is a root (no parent), then the VIR_ERR_NO_DOMAIN_SNAPSHOT
* error is raised.