mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 10:05:31 +00:00
docstring: typedef: libvirt:: Add 'Since version' metadata
Either create or append to existing docstring, the version (git tag) that a given typedef was introduced in the format: Since: v1.2.3 Signed-off-by: Victor Toso <victortoso@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
7a1dbde50e
commit
034432e47b
@ -34,6 +34,9 @@
|
|||||||
* a domain. A checkpoint is useful for tracking which portions of the
|
* a domain. A checkpoint is useful for tracking which portions of the
|
||||||
* domain disks have been altered since a point in time, but by itself does
|
* domain disks have been altered since a point in time, but by itself does
|
||||||
* not allow reverting back to that point in time.
|
* not allow reverting back to that point in time.
|
||||||
|
*
|
||||||
|
* Since: v5.2.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virDomainCheckpoint virDomainCheckpoint;
|
typedef struct _virDomainCheckpoint virDomainCheckpoint;
|
||||||
|
|
||||||
@ -43,6 +46,9 @@ typedef struct _virDomainCheckpoint virDomainCheckpoint;
|
|||||||
* A virDomainCheckpointPtr is pointer to a virDomainCheckpoint
|
* A virDomainCheckpointPtr is pointer to a virDomainCheckpoint
|
||||||
* private structure, and is the type used to reference a domain
|
* private structure, and is the type used to reference a domain
|
||||||
* checkpoint in the API.
|
* checkpoint in the API.
|
||||||
|
*
|
||||||
|
* Since: v5.2.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virDomainCheckpoint *virDomainCheckpointPtr;
|
typedef virDomainCheckpoint *virDomainCheckpointPtr;
|
||||||
|
|
||||||
@ -50,6 +56,12 @@ const char *virDomainCheckpointGetName(virDomainCheckpointPtr checkpoint);
|
|||||||
virDomainPtr virDomainCheckpointGetDomain(virDomainCheckpointPtr checkpoint);
|
virDomainPtr virDomainCheckpointGetDomain(virDomainCheckpointPtr checkpoint);
|
||||||
virConnectPtr virDomainCheckpointGetConnect(virDomainCheckpointPtr checkpoint);
|
virConnectPtr virDomainCheckpointGetConnect(virDomainCheckpointPtr checkpoint);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virDomainCheckpointCreateFlags:
|
||||||
|
*
|
||||||
|
* Since: v5.6.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE = (1 << 0), /* Restore or alter
|
VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE = (1 << 0), /* Restore or alter
|
||||||
metadata */
|
metadata */
|
||||||
@ -65,7 +77,12 @@ typedef enum {
|
|||||||
virDomainCheckpointPtr virDomainCheckpointCreateXML(virDomainPtr domain,
|
virDomainCheckpointPtr virDomainCheckpointCreateXML(virDomainPtr domain,
|
||||||
const char *xmlDesc,
|
const char *xmlDesc,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
/**
|
||||||
|
* virDomainCheckpointXMLFlags:
|
||||||
|
*
|
||||||
|
* Since: v5.6.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_CHECKPOINT_XML_SECURE = (1 << 0), /* Include sensitive data */
|
VIR_DOMAIN_CHECKPOINT_XML_SECURE = (1 << 0), /* Include sensitive data */
|
||||||
VIR_DOMAIN_CHECKPOINT_XML_NO_DOMAIN = (1 << 1), /* Suppress <domain>
|
VIR_DOMAIN_CHECKPOINT_XML_NO_DOMAIN = (1 << 1), /* Suppress <domain>
|
||||||
@ -86,7 +103,11 @@ char *virDomainCheckpointGetXMLDesc(virDomainCheckpointPtr checkpoint,
|
|||||||
* flag (1<<0) depends on which function it is passed to; but serves
|
* flag (1<<0) depends on which function it is passed to; but serves
|
||||||
* to toggle the per-call default of whether the listing is shallow or
|
* to toggle the per-call default of whether the listing is shallow or
|
||||||
* recursive. Remaining bits come in groups; if all bits from a group
|
* recursive. Remaining bits come in groups; if all bits from a group
|
||||||
* are 0, then that group is not used to filter results. */
|
* are 0, then that group is not used to filter results.
|
||||||
|
*
|
||||||
|
* Since: v5.6.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_CHECKPOINT_LIST_ROOTS = (1 << 0), /* Filter by checkpoints
|
VIR_DOMAIN_CHECKPOINT_LIST_ROOTS = (1 << 0), /* Filter by checkpoints
|
||||||
with no parents, when
|
with no parents, when
|
||||||
@ -123,7 +144,14 @@ virDomainCheckpointPtr virDomainCheckpointLookupByName(virDomainPtr domain,
|
|||||||
virDomainCheckpointPtr virDomainCheckpointGetParent(virDomainCheckpointPtr checkpoint,
|
virDomainCheckpointPtr virDomainCheckpointGetParent(virDomainCheckpointPtr checkpoint,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
/* Delete a checkpoint */
|
/**
|
||||||
|
* virDomainCheckpointDeleteFlags:
|
||||||
|
*
|
||||||
|
* Delete a checkpoint
|
||||||
|
*
|
||||||
|
* Since: v5.6.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN = (1 << 0), /* Also delete children */
|
VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN = (1 << 0), /* Also delete children */
|
||||||
VIR_DOMAIN_CHECKPOINT_DELETE_METADATA_ONLY = (1 << 1), /* Delete just metadata */
|
VIR_DOMAIN_CHECKPOINT_DELETE_METADATA_ONLY = (1 << 1), /* Delete just metadata */
|
||||||
|
@ -34,6 +34,9 @@
|
|||||||
* a domain. A snapshot captures the state of the domain at a point in
|
* a domain. A snapshot captures the state of the domain at a point in
|
||||||
* time, with the intent that the guest can be reverted back to that
|
* time, with the intent that the guest can be reverted back to that
|
||||||
* state at a later time.
|
* state at a later time.
|
||||||
|
*
|
||||||
|
* Since: v0.8.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virDomainSnapshot virDomainSnapshot;
|
typedef struct _virDomainSnapshot virDomainSnapshot;
|
||||||
|
|
||||||
@ -42,6 +45,9 @@ typedef struct _virDomainSnapshot virDomainSnapshot;
|
|||||||
*
|
*
|
||||||
* A virDomainSnapshotPtr is pointer to a virDomainSnapshot private structure,
|
* A virDomainSnapshotPtr is pointer to a virDomainSnapshot private structure,
|
||||||
* and is the type used to reference a domain snapshot in the API.
|
* and is the type used to reference a domain snapshot in the API.
|
||||||
|
*
|
||||||
|
* Since: v0.8.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virDomainSnapshot *virDomainSnapshotPtr;
|
typedef virDomainSnapshot *virDomainSnapshotPtr;
|
||||||
|
|
||||||
@ -49,6 +55,12 @@ const char *virDomainSnapshotGetName(virDomainSnapshotPtr snapshot);
|
|||||||
virDomainPtr virDomainSnapshotGetDomain(virDomainSnapshotPtr snapshot);
|
virDomainPtr virDomainSnapshotGetDomain(virDomainSnapshotPtr snapshot);
|
||||||
virConnectPtr virDomainSnapshotGetConnect(virDomainSnapshotPtr snapshot);
|
virConnectPtr virDomainSnapshotGetConnect(virDomainSnapshotPtr snapshot);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virDomainSnapshotCreateFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.9.5
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE = (1 << 0), /* Restore or alter
|
VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE = (1 << 0), /* Restore or alter
|
||||||
metadata */
|
metadata */
|
||||||
@ -79,7 +91,12 @@ typedef enum {
|
|||||||
virDomainSnapshotPtr virDomainSnapshotCreateXML(virDomainPtr domain,
|
virDomainSnapshotPtr virDomainSnapshotCreateXML(virDomainPtr domain,
|
||||||
const char *xmlDesc,
|
const char *xmlDesc,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
/**
|
||||||
|
* virDomainSnapshotXMLFlags:
|
||||||
|
*
|
||||||
|
* Since: v5.1.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_SNAPSHOT_XML_SECURE = VIR_DOMAIN_XML_SECURE, /* dump security sensitive information too */
|
VIR_DOMAIN_SNAPSHOT_XML_SECURE = VIR_DOMAIN_XML_SECURE, /* dump security sensitive information too */
|
||||||
} virDomainSnapshotXMLFlags;
|
} virDomainSnapshotXMLFlags;
|
||||||
@ -98,7 +115,11 @@ char *virDomainSnapshotGetXMLDesc(virDomainSnapshotPtr snapshot,
|
|||||||
* of flag (1<<0) depends on which function it is passed to; but serves
|
* of flag (1<<0) depends on which function it is passed to; but serves
|
||||||
* to toggle the per-call default of whether the listing is shallow or
|
* to toggle the per-call default of whether the listing is shallow or
|
||||||
* recursive. Remaining bits come in groups; if all bits from a group are
|
* recursive. Remaining bits come in groups; if all bits from a group are
|
||||||
* 0, then that group is not used to filter results. */
|
* 0, then that group is not used to filter results.
|
||||||
|
*
|
||||||
|
* Since: v0.9.5
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_SNAPSHOT_LIST_ROOTS = (1 << 0), /* Filter by snapshots
|
VIR_DOMAIN_SNAPSHOT_LIST_ROOTS = (1 << 0), /* Filter by snapshots
|
||||||
with no parents, when
|
with no parents, when
|
||||||
@ -194,6 +215,12 @@ int virDomainSnapshotIsCurrent(virDomainSnapshotPtr snapshot,
|
|||||||
int virDomainSnapshotHasMetadata(virDomainSnapshotPtr snapshot,
|
int virDomainSnapshotHasMetadata(virDomainSnapshotPtr snapshot,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virDomainSnapshotRevertFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.9.5
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING = 1 << 0, /* Run after revert */
|
VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING = 1 << 0, /* Run after revert */
|
||||||
VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED = 1 << 1, /* Pause after revert */
|
VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED = 1 << 1, /* Pause after revert */
|
||||||
@ -208,7 +235,14 @@ typedef enum {
|
|||||||
int virDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
|
int virDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
/* Delete a snapshot */
|
/**
|
||||||
|
* virDomainSnapshotDeleteFlags:
|
||||||
|
*
|
||||||
|
* Delete a snapshot
|
||||||
|
*
|
||||||
|
* Since: v0.8.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN = (1 << 0), /* Also delete children */
|
VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN = (1 << 0), /* Also delete children */
|
||||||
VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY = (1 << 1), /* Delete just metadata */
|
VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY = (1 << 1), /* Delete just metadata */
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -34,6 +34,9 @@
|
|||||||
* a virEventHandleType is used similar to POLLxxx FD events, but is specific
|
* a virEventHandleType is used similar to POLLxxx FD events, but is specific
|
||||||
* to libvirt. A client app must translate to, and from POLL events when using
|
* to libvirt. A client app must translate to, and from POLL events when using
|
||||||
* this construct.
|
* this construct.
|
||||||
|
*
|
||||||
|
* Since: v0.5.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_EVENT_HANDLE_READABLE = (1 << 0),
|
VIR_EVENT_HANDLE_READABLE = (1 << 0),
|
||||||
|
@ -33,6 +33,9 @@
|
|||||||
*
|
*
|
||||||
* a virConnect is a private structure representing a connection to
|
* a virConnect is a private structure representing a connection to
|
||||||
* the Hypervisor.
|
* the Hypervisor.
|
||||||
|
*
|
||||||
|
* Since: v0.0.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virConnect virConnect;
|
typedef struct _virConnect virConnect;
|
||||||
|
|
||||||
@ -41,6 +44,9 @@ typedef struct _virConnect virConnect;
|
|||||||
*
|
*
|
||||||
* a virConnectPtr is pointer to a virConnect private structure, this is the
|
* a virConnectPtr is pointer to a virConnect private structure, this is the
|
||||||
* type used to reference a connection to the Hypervisor in the API.
|
* type used to reference a connection to the Hypervisor in the API.
|
||||||
|
*
|
||||||
|
* Since: v0.0.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virConnect *virConnectPtr;
|
typedef virConnect *virConnectPtr;
|
||||||
|
|
||||||
@ -49,6 +55,9 @@ typedef virConnect *virConnectPtr;
|
|||||||
*
|
*
|
||||||
* Flags to indicate which system-wide sleep state the host must be
|
* Flags to indicate which system-wide sleep state the host must be
|
||||||
* transitioned to.
|
* transitioned to.
|
||||||
|
*
|
||||||
|
* Since: v0.9.8
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NODE_SUSPEND_TARGET_MEM = 0,
|
VIR_NODE_SUSPEND_TARGET_MEM = 0,
|
||||||
@ -64,6 +73,9 @@ typedef enum {
|
|||||||
* virStream:
|
* virStream:
|
||||||
*
|
*
|
||||||
* a virStream is a private structure representing a data stream.
|
* a virStream is a private structure representing a data stream.
|
||||||
|
*
|
||||||
|
* Since: v0.7.2
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virStream virStream;
|
typedef struct _virStream virStream;
|
||||||
|
|
||||||
@ -72,6 +84,9 @@ typedef struct _virStream virStream;
|
|||||||
*
|
*
|
||||||
* a virStreamPtr is pointer to a virStream private structure, this is the
|
* a virStreamPtr is pointer to a virStream private structure, this is the
|
||||||
* type used to reference a data stream in the API.
|
* type used to reference a data stream in the API.
|
||||||
|
*
|
||||||
|
* Since: v0.7.2
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virStream *virStreamPtr;
|
typedef virStream *virStreamPtr;
|
||||||
|
|
||||||
@ -91,6 +106,9 @@ typedef virStream *virStreamPtr;
|
|||||||
* a virSecurityLabel is a structure filled by virDomainGetSecurityLabel(),
|
* a virSecurityLabel is a structure filled by virDomainGetSecurityLabel(),
|
||||||
* providing the security label and associated attributes for the specified
|
* providing the security label and associated attributes for the specified
|
||||||
* domain.
|
* domain.
|
||||||
|
*
|
||||||
|
* Since: v0.6.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virSecurityLabel virSecurityLabel;
|
typedef struct _virSecurityLabel virSecurityLabel;
|
||||||
|
|
||||||
@ -103,6 +121,9 @@ struct _virSecurityLabel {
|
|||||||
* virSecurityLabelPtr:
|
* virSecurityLabelPtr:
|
||||||
*
|
*
|
||||||
* a virSecurityLabelPtr is a pointer to a virSecurityLabel.
|
* a virSecurityLabelPtr is a pointer to a virSecurityLabel.
|
||||||
|
*
|
||||||
|
* Since: v0.6.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virSecurityLabel *virSecurityLabelPtr;
|
typedef virSecurityLabel *virSecurityLabelPtr;
|
||||||
|
|
||||||
@ -130,6 +151,9 @@ typedef virSecurityLabel *virSecurityLabelPtr;
|
|||||||
* a virSecurityModel is a structure filled by virNodeGetSecurityModel(),
|
* a virSecurityModel is a structure filled by virNodeGetSecurityModel(),
|
||||||
* providing the per-hypervisor security model and DOI attributes for the
|
* providing the per-hypervisor security model and DOI attributes for the
|
||||||
* specified domain.
|
* specified domain.
|
||||||
|
*
|
||||||
|
* Since: v0.6.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virSecurityModel virSecurityModel;
|
typedef struct _virSecurityModel virSecurityModel;
|
||||||
|
|
||||||
@ -142,6 +166,9 @@ struct _virSecurityModel {
|
|||||||
* virSecurityModelPtr:
|
* virSecurityModelPtr:
|
||||||
*
|
*
|
||||||
* a virSecurityModelPtr is a pointer to a virSecurityModel.
|
* a virSecurityModelPtr is a pointer to a virSecurityModel.
|
||||||
|
*
|
||||||
|
* Since: v0.6.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virSecurityModel *virSecurityModelPtr;
|
typedef virSecurityModel *virSecurityModelPtr;
|
||||||
|
|
||||||
@ -149,7 +176,7 @@ typedef virSecurityModel *virSecurityModelPtr;
|
|||||||
/* data types related to virNodePtr */
|
/* data types related to virNodePtr */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virNodeInfoPtr:
|
* virNodeInfo:
|
||||||
*
|
*
|
||||||
* a virNodeInfo is a structure filled by virNodeGetInfo() and providing
|
* a virNodeInfo is a structure filled by virNodeGetInfo() and providing
|
||||||
* the information for the Node.
|
* the information for the Node.
|
||||||
@ -157,8 +184,9 @@ typedef virSecurityModel *virSecurityModelPtr;
|
|||||||
* Note that the information in this struct is not guaranteed to be an
|
* Note that the information in this struct is not guaranteed to be an
|
||||||
* accurate relection of the system hardware. See the virNodeGetInfo()
|
* accurate relection of the system hardware. See the virNodeGetInfo()
|
||||||
* API documentation for further guidance.
|
* API documentation for further guidance.
|
||||||
|
*
|
||||||
|
* Since: v0.1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct _virNodeInfo virNodeInfo;
|
typedef struct _virNodeInfo virNodeInfo;
|
||||||
|
|
||||||
struct _virNodeInfo {
|
struct _virNodeInfo {
|
||||||
@ -188,9 +216,12 @@ struct _virNodeInfo {
|
|||||||
# define VIR_NODE_CPU_STATS_FIELD_LENGTH 80
|
# define VIR_NODE_CPU_STATS_FIELD_LENGTH 80
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VIR_NODE_CPU_STATS_ALL_CPUS:
|
* virNodeGetCPUStatsAllCPUs:
|
||||||
*
|
*
|
||||||
* Value for specifying request for the total CPU time/utilization
|
* Value for specifying request for the total CPU time/utilization
|
||||||
|
*
|
||||||
|
* Since: v0.9.8
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NODE_CPU_STATS_ALL_CPUS = -1,
|
VIR_NODE_CPU_STATS_ALL_CPUS = -1,
|
||||||
@ -262,6 +293,9 @@ typedef enum {
|
|||||||
*
|
*
|
||||||
* a virNodeCPUStats is a structure filled by virNodeGetCPUStats()
|
* a virNodeCPUStats is a structure filled by virNodeGetCPUStats()
|
||||||
* providing information about the CPU stats of the node.
|
* providing information about the CPU stats of the node.
|
||||||
|
*
|
||||||
|
* Since: v0.9.3
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virNodeCPUStats virNodeCPUStats;
|
typedef struct _virNodeCPUStats virNodeCPUStats;
|
||||||
|
|
||||||
@ -280,9 +314,12 @@ struct _virNodeCPUStats {
|
|||||||
# define VIR_NODE_MEMORY_STATS_FIELD_LENGTH 80
|
# define VIR_NODE_MEMORY_STATS_FIELD_LENGTH 80
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VIR_NODE_MEMORY_STATS_ALL_CELLS:
|
* virNodeGetMemoryStatsAllCells:
|
||||||
*
|
*
|
||||||
* Value for specifying request for the total memory of all cells.
|
* Value for specifying request for the total memory of all cells.
|
||||||
|
*
|
||||||
|
* Since: v0.9.8
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NODE_MEMORY_STATS_ALL_CELLS = -1,
|
VIR_NODE_MEMORY_STATS_ALL_CELLS = -1,
|
||||||
@ -334,6 +371,9 @@ typedef enum {
|
|||||||
*
|
*
|
||||||
* a virNodeMemoryStats is a structure filled by virNodeGetMemoryStats()
|
* a virNodeMemoryStats is a structure filled by virNodeGetMemoryStats()
|
||||||
* providing information about the memory of the node.
|
* providing information about the memory of the node.
|
||||||
|
*
|
||||||
|
* Since: v0.9.3
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virNodeMemoryStats virNodeMemoryStats;
|
typedef struct _virNodeMemoryStats virNodeMemoryStats;
|
||||||
|
|
||||||
@ -463,6 +503,9 @@ int virNodeGetCPUMap(virConnectPtr conn,
|
|||||||
* virNodeInfoPtr:
|
* virNodeInfoPtr:
|
||||||
*
|
*
|
||||||
* a virNodeInfoPtr is a pointer to a virNodeInfo structure.
|
* a virNodeInfoPtr is a pointer to a virNodeInfo structure.
|
||||||
|
*
|
||||||
|
* Since: v0.1.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef virNodeInfo *virNodeInfoPtr;
|
typedef virNodeInfo *virNodeInfoPtr;
|
||||||
@ -471,6 +514,9 @@ typedef virNodeInfo *virNodeInfoPtr;
|
|||||||
* virNodeCPUStatsPtr:
|
* virNodeCPUStatsPtr:
|
||||||
*
|
*
|
||||||
* a virNodeCPUStatsPtr is a pointer to a virNodeCPUStats structure.
|
* a virNodeCPUStatsPtr is a pointer to a virNodeCPUStats structure.
|
||||||
|
*
|
||||||
|
* Since: v0.9.3
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef virNodeCPUStats *virNodeCPUStatsPtr;
|
typedef virNodeCPUStats *virNodeCPUStatsPtr;
|
||||||
@ -479,6 +525,9 @@ typedef virNodeCPUStats *virNodeCPUStatsPtr;
|
|||||||
* virNodeMemoryStatsPtr:
|
* virNodeMemoryStatsPtr:
|
||||||
*
|
*
|
||||||
* a virNodeMemoryStatsPtr is a pointer to a virNodeMemoryStats structure.
|
* a virNodeMemoryStatsPtr is a pointer to a virNodeMemoryStats structure.
|
||||||
|
*
|
||||||
|
* Since: v0.9.3
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef virNodeMemoryStats *virNodeMemoryStatsPtr;
|
typedef virNodeMemoryStats *virNodeMemoryStatsPtr;
|
||||||
@ -554,16 +603,24 @@ int virNodeGetSEVInfo (virConnectPtr conn,
|
|||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virConnectFlags
|
* virConnectFlags:
|
||||||
*
|
*
|
||||||
* Flags when opening a connection to a hypervisor
|
* Flags when opening a connection to a hypervisor
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CONNECT_RO = (1 << 0), /* A readonly connection */
|
VIR_CONNECT_RO = (1 << 0), /* A readonly connection */
|
||||||
VIR_CONNECT_NO_ALIASES = (1 << 1), /* Don't try to resolve URI aliases */
|
VIR_CONNECT_NO_ALIASES = (1 << 1), /* Don't try to resolve URI aliases */
|
||||||
} virConnectFlags;
|
} virConnectFlags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virConnectCredentialType:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CRED_USERNAME = 1, /* Identity to act as */
|
VIR_CRED_USERNAME = 1, /* Identity to act as */
|
||||||
VIR_CRED_AUTHNAME = 2, /* Identify to authorize as */
|
VIR_CRED_AUTHNAME = 2, /* Identify to authorize as */
|
||||||
@ -589,7 +646,20 @@ struct _virConnectCredential {
|
|||||||
unsigned int resultlen; /* Length of the result */
|
unsigned int resultlen; /* Length of the result */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virConnectCredential:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef struct _virConnectCredential virConnectCredential;
|
typedef struct _virConnectCredential virConnectCredential;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virConnectCredentialPtr:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef virConnectCredential *virConnectCredentialPtr;
|
typedef virConnectCredential *virConnectCredentialPtr;
|
||||||
|
|
||||||
|
|
||||||
@ -618,8 +688,20 @@ struct _virConnectAuth {
|
|||||||
void *cbdata;
|
void *cbdata;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virConnectAuth:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef struct _virConnectAuth virConnectAuth;
|
typedef struct _virConnectAuth virConnectAuth;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virConnectAuthPtr:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef virConnectAuth *virConnectAuthPtr;
|
typedef virConnectAuth *virConnectAuthPtr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -850,6 +932,12 @@ int virConnectIsAlive(virConnectPtr conn);
|
|||||||
* CPU specification API
|
* CPU specification API
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virCPUCompareResult:
|
||||||
|
*
|
||||||
|
* Since: v0.7.5
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CPU_COMPARE_ERROR = -1,
|
VIR_CPU_COMPARE_ERROR = -1,
|
||||||
VIR_CPU_COMPARE_INCOMPATIBLE = 0,
|
VIR_CPU_COMPARE_INCOMPATIBLE = 0,
|
||||||
@ -861,6 +949,12 @@ typedef enum {
|
|||||||
# endif
|
# endif
|
||||||
} virCPUCompareResult;
|
} virCPUCompareResult;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virConnectCompareCPUFlags:
|
||||||
|
*
|
||||||
|
* Since: v1.2.6
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLE = (1 << 0), /* treat incompatible
|
VIR_CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLE = (1 << 0), /* treat incompatible
|
||||||
CPUs as failure */
|
CPUs as failure */
|
||||||
@ -885,9 +979,12 @@ int virConnectGetCPUModelNames(virConnectPtr conn,
|
|||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virConnectBaselineCPUFlags
|
* virConnectBaselineCPUFlags:
|
||||||
*
|
*
|
||||||
* Flags when getting XML description of a computed CPU
|
* Flags when getting XML description of a computed CPU
|
||||||
|
*
|
||||||
|
* Since: v1.1.2
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES = (1 << 0), /* show all features */
|
VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES = (1 << 0), /* show all features */
|
||||||
@ -915,7 +1012,12 @@ int virNodeGetFreePages(virConnectPtr conn,
|
|||||||
unsigned int cellcount,
|
unsigned int cellcount,
|
||||||
unsigned long long *counts,
|
unsigned long long *counts,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
/**
|
||||||
|
* virNodeAllocPagesFlags:
|
||||||
|
*
|
||||||
|
* Since: v1.2.9
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NODE_ALLOC_PAGES_ADD = 0, /* Add @pageCounts to the pages pool. This
|
VIR_NODE_ALLOC_PAGES_ADD = 0, /* Add @pageCounts to the pages pool. This
|
||||||
can be used only to size up the pool. */
|
can be used only to size up the pool. */
|
||||||
|
@ -31,6 +31,9 @@
|
|||||||
* virInterface:
|
* virInterface:
|
||||||
*
|
*
|
||||||
* a virInterface is a private structure representing a virtual interface.
|
* a virInterface is a private structure representing a virtual interface.
|
||||||
|
*
|
||||||
|
* Since: v0.6.4
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virInterface virInterface;
|
typedef struct _virInterface virInterface;
|
||||||
|
|
||||||
@ -39,6 +42,9 @@ typedef struct _virInterface virInterface;
|
|||||||
*
|
*
|
||||||
* a virInterfacePtr is pointer to a virInterface private structure, this is the
|
* a virInterfacePtr is pointer to a virInterface private structure, this is the
|
||||||
* type used to reference a virtual interface in the API.
|
* type used to reference a virtual interface in the API.
|
||||||
|
*
|
||||||
|
* Since: v0.6.4
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virInterface *virInterfacePtr;
|
typedef virInterface *virInterfacePtr;
|
||||||
|
|
||||||
@ -53,10 +59,13 @@ int virConnectNumOfDefinedInterfaces (virConnectPtr conn);
|
|||||||
int virConnectListDefinedInterfaces (virConnectPtr conn,
|
int virConnectListDefinedInterfaces (virConnectPtr conn,
|
||||||
char **const names,
|
char **const names,
|
||||||
int maxnames);
|
int maxnames);
|
||||||
/*
|
/**
|
||||||
* virConnectListAllInterfaces:
|
* virConnectListAllInterfacesFlags:
|
||||||
*
|
*
|
||||||
* Flags used to filter the returned interfaces.
|
* Flags used to filter the returned interfaces.
|
||||||
|
*
|
||||||
|
* Since: v0.10.2
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CONNECT_LIST_INTERFACES_INACTIVE = 1 << 0,
|
VIR_CONNECT_LIST_INTERFACES_INACTIVE = 1 << 0,
|
||||||
@ -75,10 +84,22 @@ virInterfacePtr virInterfaceLookupByMACString (virConnectPtr conn,
|
|||||||
const char* virInterfaceGetName (virInterfacePtr iface);
|
const char* virInterfaceGetName (virInterfacePtr iface);
|
||||||
const char* virInterfaceGetMACString (virInterfacePtr iface);
|
const char* virInterfaceGetMACString (virInterfacePtr iface);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virInterfaceXMLFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.7.3
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_INTERFACE_XML_INACTIVE = 1 << 0 /* dump inactive interface information */
|
VIR_INTERFACE_XML_INACTIVE = 1 << 0 /* dump inactive interface information */
|
||||||
} virInterfaceXMLFlags;
|
} virInterfaceXMLFlags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virInterfaceDefineFlags:
|
||||||
|
*
|
||||||
|
* Since: v7.7.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_INTERFACE_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
VIR_INTERFACE_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
||||||
} virInterfaceDefineFlags;
|
} virInterfaceDefineFlags;
|
||||||
|
@ -27,6 +27,12 @@
|
|||||||
# error "Don't include this file directly, only use libvirt/libvirt.h"
|
# error "Don't include this file directly, only use libvirt/libvirt.h"
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virNetworkXMLFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.9.10
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NETWORK_XML_INACTIVE = (1 << 0), /* dump inactive network information */
|
VIR_NETWORK_XML_INACTIVE = (1 << 0), /* dump inactive network information */
|
||||||
} virNetworkXMLFlags;
|
} virNetworkXMLFlags;
|
||||||
@ -35,6 +41,9 @@ typedef enum {
|
|||||||
* virNetwork:
|
* virNetwork:
|
||||||
*
|
*
|
||||||
* a virNetwork is a private structure representing a virtual network.
|
* a virNetwork is a private structure representing a virtual network.
|
||||||
|
*
|
||||||
|
* Since: v0.2.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virNetwork virNetwork;
|
typedef struct _virNetwork virNetwork;
|
||||||
|
|
||||||
@ -43,6 +52,9 @@ typedef struct _virNetwork virNetwork;
|
|||||||
*
|
*
|
||||||
* a virNetworkPtr is pointer to a virNetwork private structure, this is the
|
* a virNetworkPtr is pointer to a virNetwork private structure, this is the
|
||||||
* type used to reference a virtual network in the API.
|
* type used to reference a virtual network in the API.
|
||||||
|
*
|
||||||
|
* Since: v0.2.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virNetwork *virNetworkPtr;
|
typedef virNetwork *virNetworkPtr;
|
||||||
|
|
||||||
@ -51,6 +63,9 @@ typedef virNetwork *virNetworkPtr;
|
|||||||
*
|
*
|
||||||
* a virNetworkPort is a private structure representing a virtual network
|
* a virNetworkPort is a private structure representing a virtual network
|
||||||
* port
|
* port
|
||||||
|
*
|
||||||
|
* Since: v5.5.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virNetworkPort virNetworkPort;
|
typedef struct _virNetworkPort virNetworkPort;
|
||||||
|
|
||||||
@ -59,6 +74,9 @@ typedef struct _virNetworkPort virNetworkPort;
|
|||||||
*
|
*
|
||||||
* a virNetworkPortPtr is pointer to a virNetworkPort private structure,
|
* a virNetworkPortPtr is pointer to a virNetworkPort private structure,
|
||||||
* this is the type used to reference a virtual network port in the API.
|
* this is the type used to reference a virtual network port in the API.
|
||||||
|
*
|
||||||
|
* Since: v5.5.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virNetworkPort *virNetworkPortPtr;
|
typedef virNetworkPort *virNetworkPortPtr;
|
||||||
|
|
||||||
@ -82,11 +100,14 @@ int virConnectNumOfDefinedNetworks (virConnectPtr conn);
|
|||||||
int virConnectListDefinedNetworks (virConnectPtr conn,
|
int virConnectListDefinedNetworks (virConnectPtr conn,
|
||||||
char **const names,
|
char **const names,
|
||||||
int maxnames);
|
int maxnames);
|
||||||
/*
|
/**
|
||||||
* virConnectListAllNetworks:
|
* virConnectListAllNetworksFlags:
|
||||||
*
|
*
|
||||||
* Flags used to filter the returned networks. Flags in each group
|
* Flags used to filter the returned networks. Flags in each group
|
||||||
* are exclusive attributes of a network.
|
* are exclusive attributes of a network.
|
||||||
|
*
|
||||||
|
* Since: v0.10.2
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CONNECT_LIST_NETWORKS_INACTIVE = 1 << 0,
|
VIR_CONNECT_LIST_NETWORKS_INACTIVE = 1 << 0,
|
||||||
@ -112,7 +133,12 @@ virNetworkPtr virNetworkLookupByUUID (virConnectPtr conn,
|
|||||||
const unsigned char *uuid);
|
const unsigned char *uuid);
|
||||||
virNetworkPtr virNetworkLookupByUUIDString (virConnectPtr conn,
|
virNetworkPtr virNetworkLookupByUUIDString (virConnectPtr conn,
|
||||||
const char *uuid);
|
const char *uuid);
|
||||||
|
/**
|
||||||
|
* virNetworkCreateFlags:
|
||||||
|
*
|
||||||
|
* Since: v7.8.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NETWORK_CREATE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
VIR_NETWORK_CREATE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
||||||
} virNetworkCreateFlags;
|
} virNetworkCreateFlags;
|
||||||
@ -125,7 +151,12 @@ virNetworkPtr virNetworkCreateXML (virConnectPtr conn,
|
|||||||
virNetworkPtr virNetworkCreateXMLFlags(virConnectPtr conn,
|
virNetworkPtr virNetworkCreateXMLFlags(virConnectPtr conn,
|
||||||
const char *xmlDesc,
|
const char *xmlDesc,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
/**
|
||||||
|
* virNetworkDefineFlags:
|
||||||
|
*
|
||||||
|
* Since: v7.7.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NETWORK_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
VIR_NETWORK_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
||||||
} virNetworkDefineFlags;
|
} virNetworkDefineFlags;
|
||||||
@ -150,6 +181,8 @@ int virNetworkUndefine (virNetworkPtr network);
|
|||||||
* describes which type of update to perform on a <network>
|
* describes which type of update to perform on a <network>
|
||||||
* definition.
|
* definition.
|
||||||
*
|
*
|
||||||
|
* Since: v0.10.2
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NETWORK_UPDATE_COMMAND_NONE = 0, /* (invalid) */
|
VIR_NETWORK_UPDATE_COMMAND_NONE = 0, /* (invalid) */
|
||||||
@ -168,6 +201,8 @@ typedef enum {
|
|||||||
* describes which section of a <network> definition the provided
|
* describes which section of a <network> definition the provided
|
||||||
* xml should be applied to.
|
* xml should be applied to.
|
||||||
*
|
*
|
||||||
|
* Since: v0.10.2
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NETWORK_SECTION_NONE = 0, /* (invalid) */
|
VIR_NETWORK_SECTION_NONE = 0, /* (invalid) */
|
||||||
@ -192,6 +227,9 @@ typedef enum {
|
|||||||
* virNetworkUpdateFlags:
|
* virNetworkUpdateFlags:
|
||||||
*
|
*
|
||||||
* Flags to control options for virNetworkUpdate()
|
* Flags to control options for virNetworkUpdate()
|
||||||
|
*
|
||||||
|
* Since: v0.10.2
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NETWORK_UPDATE_AFFECT_CURRENT = 0, /* affect live if network is active,
|
VIR_NETWORK_UPDATE_AFFECT_CURRENT = 0, /* affect live if network is active,
|
||||||
@ -246,6 +284,9 @@ int virNetworkIsPersistent(virNetworkPtr net);
|
|||||||
* virNetworkEventLifecycleType:
|
* virNetworkEventLifecycleType:
|
||||||
*
|
*
|
||||||
* a virNetworkEventLifecycleType is emitted during network lifecycle events
|
* a virNetworkEventLifecycleType is emitted during network lifecycle events
|
||||||
|
*
|
||||||
|
* Since: v1.2.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NETWORK_EVENT_DEFINED = 0,
|
VIR_NETWORK_EVENT_DEFINED = 0,
|
||||||
@ -294,6 +335,9 @@ typedef void (*virConnectNetworkEventLifecycleCallback)(virConnectPtr conn,
|
|||||||
* An enumeration of supported eventId parameters for
|
* An enumeration of supported eventId parameters for
|
||||||
* virConnectNetworkEventRegisterAny(). Each event id determines which
|
* virConnectNetworkEventRegisterAny(). Each event id determines which
|
||||||
* signature of callback function will be used.
|
* signature of callback function will be used.
|
||||||
|
*
|
||||||
|
* Since: v1.2.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NETWORK_EVENT_ID_LIFECYCLE = 0, /* virConnectNetworkEventLifecycleCallback */
|
VIR_NETWORK_EVENT_ID_LIFECYCLE = 0, /* virConnectNetworkEventLifecycleCallback */
|
||||||
@ -308,6 +352,12 @@ typedef enum {
|
|||||||
# endif
|
# endif
|
||||||
} virNetworkEventID;
|
} virNetworkEventID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virIPAddrType:
|
||||||
|
*
|
||||||
|
* Since: v1.2.6
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_IP_ADDR_TYPE_IPV4,
|
VIR_IP_ADDR_TYPE_IPV4,
|
||||||
VIR_IP_ADDR_TYPE_IPV6,
|
VIR_IP_ADDR_TYPE_IPV6,
|
||||||
@ -317,7 +367,20 @@ typedef enum {
|
|||||||
# endif
|
# endif
|
||||||
} virIPAddrType;
|
} virIPAddrType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virNetworkDHCPLease:
|
||||||
|
*
|
||||||
|
* Since: v1.2.6
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef struct _virNetworkDHCPLease virNetworkDHCPLease;
|
typedef struct _virNetworkDHCPLease virNetworkDHCPLease;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virNetworkDHCPLeasePtr:
|
||||||
|
*
|
||||||
|
* Since: v1.2.6
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef virNetworkDHCPLease *virNetworkDHCPLeasePtr;
|
typedef virNetworkDHCPLease *virNetworkDHCPLeasePtr;
|
||||||
struct _virNetworkDHCPLease {
|
struct _virNetworkDHCPLease {
|
||||||
char *iface; /* Network interface name */
|
char *iface; /* Network interface name */
|
||||||
@ -374,6 +437,12 @@ virNetworkPortPtr
|
|||||||
virNetworkPortLookupByUUIDString(virNetworkPtr net,
|
virNetworkPortLookupByUUIDString(virNetworkPtr net,
|
||||||
const char *uuidstr);
|
const char *uuidstr);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virNetworkPortCreateFlags:
|
||||||
|
*
|
||||||
|
* Since: v5.5.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NETWORK_PORT_CREATE_RECLAIM = (1 << 0), /* reclaim existing used resources */
|
VIR_NETWORK_PORT_CREATE_RECLAIM = (1 << 0), /* reclaim existing used resources */
|
||||||
VIR_NETWORK_PORT_CREATE_VALIDATE = (1 << 1), /* Validate the XML document against schema */
|
VIR_NETWORK_PORT_CREATE_VALIDATE = (1 << 1), /* Validate the XML document against schema */
|
||||||
|
@ -32,6 +32,9 @@
|
|||||||
* virNodeDevice:
|
* virNodeDevice:
|
||||||
*
|
*
|
||||||
* A virNodeDevice contains a node (host) device details.
|
* A virNodeDevice contains a node (host) device details.
|
||||||
|
*
|
||||||
|
* Since: v0.5.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct _virNodeDevice virNodeDevice;
|
typedef struct _virNodeDevice virNodeDevice;
|
||||||
@ -43,6 +46,9 @@ typedef struct _virNodeDevice virNodeDevice;
|
|||||||
* one via virNodeDeviceLookupByName, or virNodeDeviceCreate. Be sure
|
* one via virNodeDeviceLookupByName, or virNodeDeviceCreate. Be sure
|
||||||
* to call virNodeDeviceFree when done using a virNodeDevicePtr obtained
|
* to call virNodeDeviceFree when done using a virNodeDevicePtr obtained
|
||||||
* from any of the above functions to avoid leaking memory.
|
* from any of the above functions to avoid leaking memory.
|
||||||
|
*
|
||||||
|
* Since: v0.5.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef virNodeDevice *virNodeDevicePtr;
|
typedef virNodeDevice *virNodeDevicePtr;
|
||||||
@ -57,11 +63,15 @@ int virNodeListDevices (virConnectPtr conn,
|
|||||||
char **const names,
|
char **const names,
|
||||||
int maxnames,
|
int maxnames,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
/*
|
/**
|
||||||
* virConnectListAllNodeDevices:
|
* virConnectListAllNodeDeviceFlags:
|
||||||
*
|
*
|
||||||
* Flags used to filter either by capability or active state, the
|
* Flags used to filter either by capability or active state, the
|
||||||
* returned node devices. */
|
* returned node devices.
|
||||||
|
*
|
||||||
|
* Since: v0.10.2
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM = 1 << 0, /* System capability */
|
VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM = 1 << 0, /* System capability */
|
||||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV = 1 << 1, /* PCI device */
|
VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV = 1 << 1, /* PCI device */
|
||||||
@ -167,6 +177,9 @@ int virNodeDeviceIsActive(virNodeDevicePtr dev);
|
|||||||
* An enumeration of supported eventId parameters for
|
* An enumeration of supported eventId parameters for
|
||||||
* virConnectNodeDeviceEventRegisterAny(). Each event id determines which
|
* virConnectNodeDeviceEventRegisterAny(). Each event id determines which
|
||||||
* signature of callback function will be used.
|
* signature of callback function will be used.
|
||||||
|
*
|
||||||
|
* Since: v2.2.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NODE_DEVICE_EVENT_ID_LIFECYCLE = 0, /* virConnectNodeDeviceEventLifecycleCallback */
|
VIR_NODE_DEVICE_EVENT_ID_LIFECYCLE = 0, /* virConnectNodeDeviceEventLifecycleCallback */
|
||||||
@ -214,6 +227,9 @@ int virConnectNodeDeviceEventDeregisterAny(virConnectPtr conn,
|
|||||||
*
|
*
|
||||||
* a virNodeDeviceEventLifecycleType is emitted during node device
|
* a virNodeDeviceEventLifecycleType is emitted during node device
|
||||||
* lifecycle events
|
* lifecycle events
|
||||||
|
*
|
||||||
|
* Since: v2.2.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NODE_DEVICE_EVENT_CREATED = 0,
|
VIR_NODE_DEVICE_EVENT_CREATED = 0,
|
||||||
|
@ -31,6 +31,9 @@
|
|||||||
* virNWFilter:
|
* virNWFilter:
|
||||||
*
|
*
|
||||||
* a virNWFilter is a private structure representing a network filter
|
* a virNWFilter is a private structure representing a network filter
|
||||||
|
*
|
||||||
|
* Since: v0.8.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virNWFilter virNWFilter;
|
typedef struct _virNWFilter virNWFilter;
|
||||||
|
|
||||||
@ -39,6 +42,9 @@ typedef struct _virNWFilter virNWFilter;
|
|||||||
*
|
*
|
||||||
* a virNWFilterPtr is pointer to a virNWFilter private structure,
|
* a virNWFilterPtr is pointer to a virNWFilter private structure,
|
||||||
* this is the type used to reference a network filter in the API.
|
* this is the type used to reference a network filter in the API.
|
||||||
|
*
|
||||||
|
* Since: v0.8.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virNWFilter *virNWFilterPtr;
|
typedef virNWFilter *virNWFilterPtr;
|
||||||
|
|
||||||
@ -47,6 +53,9 @@ typedef virNWFilter *virNWFilterPtr;
|
|||||||
*
|
*
|
||||||
* a virNWFilterBinding is a private structure representing a network
|
* a virNWFilterBinding is a private structure representing a network
|
||||||
* filter binding to a port
|
* filter binding to a port
|
||||||
|
*
|
||||||
|
* Since: v4.5.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virNWFilterBinding virNWFilterBinding;
|
typedef struct _virNWFilterBinding virNWFilterBinding;
|
||||||
|
|
||||||
@ -56,6 +65,9 @@ typedef struct _virNWFilterBinding virNWFilterBinding;
|
|||||||
* a virNWFilterBindingPtr is pointer to a virNWFilterBinding private
|
* a virNWFilterBindingPtr is pointer to a virNWFilterBinding private
|
||||||
* structure, this is the type used to reference a network filter
|
* structure, this is the type used to reference a network filter
|
||||||
* port binding in the API.
|
* port binding in the API.
|
||||||
|
*
|
||||||
|
* Since: v4.5.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virNWFilterBinding *virNWFilterBindingPtr;
|
typedef virNWFilterBinding *virNWFilterBindingPtr;
|
||||||
|
|
||||||
@ -79,7 +91,12 @@ virNWFilterPtr virNWFilterLookupByUUID (virConnectPtr conn,
|
|||||||
const unsigned char *uuid);
|
const unsigned char *uuid);
|
||||||
virNWFilterPtr virNWFilterLookupByUUIDString (virConnectPtr conn,
|
virNWFilterPtr virNWFilterLookupByUUIDString (virConnectPtr conn,
|
||||||
const char *uuid);
|
const char *uuid);
|
||||||
|
/**
|
||||||
|
* virNWFilterDefineFlags:
|
||||||
|
*
|
||||||
|
* Since: v7.7.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NWFILTER_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
VIR_NWFILTER_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
||||||
} virNWFilterDefineFlags;
|
} virNWFilterDefineFlags;
|
||||||
@ -108,6 +125,12 @@ int virNWFilterFree (virNWFilterPtr nwfilter);
|
|||||||
* NWFilter information
|
* NWFilter information
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virNWFilterBindingCreateFlags:
|
||||||
|
*
|
||||||
|
* Since: v7.8.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_NWFILTER_BINDING_CREATE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
VIR_NWFILTER_BINDING_CREATE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
||||||
} virNWFilterBindingCreateFlags;
|
} virNWFilterBindingCreateFlags;
|
||||||
|
@ -33,10 +33,26 @@
|
|||||||
*
|
*
|
||||||
* A virSecret stores a secret value (e.g. a passphrase or encryption key)
|
* A virSecret stores a secret value (e.g. a passphrase or encryption key)
|
||||||
* and associated metadata.
|
* and associated metadata.
|
||||||
|
*
|
||||||
|
* Since: v0.7.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virSecret virSecret;
|
typedef struct _virSecret virSecret;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virSecretPtr:
|
||||||
|
*
|
||||||
|
* Since: v0.7.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef virSecret *virSecretPtr;
|
typedef virSecret *virSecretPtr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virSecretUsageType:
|
||||||
|
*
|
||||||
|
* Since: v0.7.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_SECRET_USAGE_TYPE_NONE = 0,
|
VIR_SECRET_USAGE_TYPE_NONE = 0,
|
||||||
VIR_SECRET_USAGE_TYPE_VOLUME = 1,
|
VIR_SECRET_USAGE_TYPE_VOLUME = 1,
|
||||||
@ -61,11 +77,14 @@ int virConnectListSecrets (virConnectPtr conn,
|
|||||||
char **uuids,
|
char **uuids,
|
||||||
int maxuuids);
|
int maxuuids);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* virConnectListAllSecrets:
|
* virConnectListAllSecretsFlags:
|
||||||
*
|
*
|
||||||
* Flags used to filter the returned secrets. Flags in each group
|
* Flags used to filter the returned secrets. Flags in each group
|
||||||
* are exclusive attributes of a secret.
|
* are exclusive attributes of a secret.
|
||||||
|
*
|
||||||
|
* Since: v0.10.2
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CONNECT_LIST_SECRETS_EPHEMERAL = 1 << 0, /* kept in memory, never
|
VIR_CONNECT_LIST_SECRETS_EPHEMERAL = 1 << 0, /* kept in memory, never
|
||||||
@ -88,7 +107,12 @@ virSecretPtr virSecretLookupByUUIDString(virConnectPtr conn,
|
|||||||
virSecretPtr virSecretLookupByUsage(virConnectPtr conn,
|
virSecretPtr virSecretLookupByUsage(virConnectPtr conn,
|
||||||
int usageType,
|
int usageType,
|
||||||
const char *usageID);
|
const char *usageID);
|
||||||
|
/**
|
||||||
|
* virSecretDefineFlags:
|
||||||
|
*
|
||||||
|
* Since: v7.7.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_SECRET_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
VIR_SECRET_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
||||||
} virSecretDefineFlags;
|
} virSecretDefineFlags;
|
||||||
@ -131,6 +155,9 @@ int virSecretFree (virSecretPtr secret);
|
|||||||
* An enumeration of supported eventId parameters for
|
* An enumeration of supported eventId parameters for
|
||||||
* virConnectSecretEventRegisterAny(). Each event id determines which
|
* virConnectSecretEventRegisterAny(). Each event id determines which
|
||||||
* signature of callback function will be used.
|
* signature of callback function will be used.
|
||||||
|
*
|
||||||
|
* Since: v3.0.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_SECRET_EVENT_ID_LIFECYCLE = 0, /* virConnectSecretEventLifecycleCallback */
|
VIR_SECRET_EVENT_ID_LIFECYCLE = 0, /* virConnectSecretEventLifecycleCallback */
|
||||||
@ -178,6 +205,9 @@ int virConnectSecretEventDeregisterAny(virConnectPtr conn,
|
|||||||
*
|
*
|
||||||
* a virSecretEventLifecycleType is emitted during secret
|
* a virSecretEventLifecycleType is emitted during secret
|
||||||
* lifecycle events
|
* lifecycle events
|
||||||
|
*
|
||||||
|
* Since: v3.0.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_SECRET_EVENT_DEFINED = 0,
|
VIR_SECRET_EVENT_DEFINED = 0,
|
||||||
|
@ -32,6 +32,9 @@
|
|||||||
* virStoragePool:
|
* virStoragePool:
|
||||||
*
|
*
|
||||||
* a virStoragePool is a private structure representing a storage pool
|
* a virStoragePool is a private structure representing a storage pool
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virStoragePool virStoragePool;
|
typedef struct _virStoragePool virStoragePool;
|
||||||
|
|
||||||
@ -40,10 +43,19 @@ typedef struct _virStoragePool virStoragePool;
|
|||||||
*
|
*
|
||||||
* a virStoragePoolPtr is pointer to a virStoragePool private structure, this is the
|
* a virStoragePoolPtr is pointer to a virStoragePool private structure, this is the
|
||||||
* type used to reference a storage pool in the API.
|
* type used to reference a storage pool in the API.
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virStoragePool *virStoragePoolPtr;
|
typedef virStoragePool *virStoragePoolPtr;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStoragePoolState:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_POOL_INACTIVE = 0, /* Not running */
|
VIR_STORAGE_POOL_INACTIVE = 0, /* Not running */
|
||||||
VIR_STORAGE_POOL_BUILDING = 1, /* Initializing pool, not available */
|
VIR_STORAGE_POOL_BUILDING = 1, /* Initializing pool, not available */
|
||||||
@ -56,6 +68,12 @@ typedef enum {
|
|||||||
# endif
|
# endif
|
||||||
} virStoragePoolState;
|
} virStoragePoolState;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStoragePoolBuildFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_POOL_BUILD_NEW = 0, /* Regular build from scratch */
|
VIR_STORAGE_POOL_BUILD_NEW = 0, /* Regular build from scratch */
|
||||||
VIR_STORAGE_POOL_BUILD_REPAIR = (1 << 0), /* Repair / reinitialize */
|
VIR_STORAGE_POOL_BUILD_REPAIR = (1 << 0), /* Repair / reinitialize */
|
||||||
@ -64,11 +82,23 @@ typedef enum {
|
|||||||
VIR_STORAGE_POOL_BUILD_OVERWRITE = (1 << 3), /* Overwrite data */
|
VIR_STORAGE_POOL_BUILD_OVERWRITE = (1 << 3), /* Overwrite data */
|
||||||
} virStoragePoolBuildFlags;
|
} virStoragePoolBuildFlags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStoragePoolDeleteFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_POOL_DELETE_NORMAL = 0, /* Delete metadata only (fast) */
|
VIR_STORAGE_POOL_DELETE_NORMAL = 0, /* Delete metadata only (fast) */
|
||||||
VIR_STORAGE_POOL_DELETE_ZEROED = 1 << 0, /* Clear all data to zeros (slow) */
|
VIR_STORAGE_POOL_DELETE_ZEROED = 1 << 0, /* Clear all data to zeros (slow) */
|
||||||
} virStoragePoolDeleteFlags;
|
} virStoragePoolDeleteFlags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStoragePoolCreateFlags:
|
||||||
|
*
|
||||||
|
* Since: v1.3.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
/* Create the pool but do not perform pool build */
|
/* Create the pool but do not perform pool build */
|
||||||
VIR_STORAGE_POOL_CREATE_NORMAL = 0,
|
VIR_STORAGE_POOL_CREATE_NORMAL = 0,
|
||||||
@ -87,6 +117,12 @@ typedef enum {
|
|||||||
VIR_STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITE = 1 << 2,
|
VIR_STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITE = 1 << 2,
|
||||||
} virStoragePoolCreateFlags;
|
} virStoragePoolCreateFlags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStoragePoolInfo:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef struct _virStoragePoolInfo virStoragePoolInfo;
|
typedef struct _virStoragePoolInfo virStoragePoolInfo;
|
||||||
|
|
||||||
struct _virStoragePoolInfo {
|
struct _virStoragePoolInfo {
|
||||||
@ -96,6 +132,12 @@ struct _virStoragePoolInfo {
|
|||||||
unsigned long long available; /* Remaining free space bytes */
|
unsigned long long available; /* Remaining free space bytes */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStoragePoolInfoPtr:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef virStoragePoolInfo *virStoragePoolInfoPtr;
|
typedef virStoragePoolInfo *virStoragePoolInfoPtr;
|
||||||
|
|
||||||
|
|
||||||
@ -103,6 +145,9 @@ typedef virStoragePoolInfo *virStoragePoolInfoPtr;
|
|||||||
* virStorageVol:
|
* virStorageVol:
|
||||||
*
|
*
|
||||||
* a virStorageVol is a private structure representing a storage volume
|
* a virStorageVol is a private structure representing a storage volume
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef struct _virStorageVol virStorageVol;
|
typedef struct _virStorageVol virStorageVol;
|
||||||
|
|
||||||
@ -111,10 +156,19 @@ typedef struct _virStorageVol virStorageVol;
|
|||||||
*
|
*
|
||||||
* a virStorageVolPtr is pointer to a virStorageVol private structure, this is the
|
* a virStorageVolPtr is pointer to a virStorageVol private structure, this is the
|
||||||
* type used to reference a storage volume in the API.
|
* type used to reference a storage volume in the API.
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef virStorageVol *virStorageVolPtr;
|
typedef virStorageVol *virStorageVolPtr;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageVolType:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_VOL_FILE = 0, /* Regular file based volumes */
|
VIR_STORAGE_VOL_FILE = 0, /* Regular file based volumes */
|
||||||
VIR_STORAGE_VOL_BLOCK = 1, /* Block based volumes */
|
VIR_STORAGE_VOL_BLOCK = 1, /* Block based volumes */
|
||||||
@ -129,12 +183,24 @@ typedef enum {
|
|||||||
# endif
|
# endif
|
||||||
} virStorageVolType;
|
} virStorageVolType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageVolDeleteFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_VOL_DELETE_NORMAL = 0, /* Delete metadata only (fast) */
|
VIR_STORAGE_VOL_DELETE_NORMAL = 0, /* Delete metadata only (fast) */
|
||||||
VIR_STORAGE_VOL_DELETE_ZEROED = 1 << 0, /* Clear all data to zeros (slow) */
|
VIR_STORAGE_VOL_DELETE_ZEROED = 1 << 0, /* Clear all data to zeros (slow) */
|
||||||
VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS = 1 << 1, /* Force removal of volume, even if in use */
|
VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS = 1 << 1, /* Force removal of volume, even if in use */
|
||||||
} virStorageVolDeleteFlags;
|
} virStorageVolDeleteFlags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageVolWipeAlgorithm:
|
||||||
|
*
|
||||||
|
* Since: v0.9.10
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_VOL_WIPE_ALG_ZERO = 0, /* 1-pass, all zeroes */
|
VIR_STORAGE_VOL_WIPE_ALG_ZERO = 0, /* 1-pass, all zeroes */
|
||||||
VIR_STORAGE_VOL_WIPE_ALG_NNSA = 1, /* 4-pass NNSA Policy Letter
|
VIR_STORAGE_VOL_WIPE_ALG_NNSA = 1, /* 4-pass NNSA Policy Letter
|
||||||
@ -167,6 +233,12 @@ typedef enum {
|
|||||||
# endif
|
# endif
|
||||||
} virStorageVolWipeAlgorithm;
|
} virStorageVolWipeAlgorithm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageVolInfoFlags:
|
||||||
|
*
|
||||||
|
* Since: v3.0.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_VOL_USE_ALLOCATION = 0,
|
VIR_STORAGE_VOL_USE_ALLOCATION = 0,
|
||||||
|
|
||||||
@ -175,6 +247,12 @@ typedef enum {
|
|||||||
|
|
||||||
} virStorageVolInfoFlags;
|
} virStorageVolInfoFlags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageVolInfo:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef struct _virStorageVolInfo virStorageVolInfo;
|
typedef struct _virStorageVolInfo virStorageVolInfo;
|
||||||
|
|
||||||
struct _virStorageVolInfo {
|
struct _virStorageVolInfo {
|
||||||
@ -183,8 +261,21 @@ struct _virStorageVolInfo {
|
|||||||
unsigned long long allocation; /* Current allocation bytes */
|
unsigned long long allocation; /* Current allocation bytes */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageVolInfoPtr:
|
||||||
|
*
|
||||||
|
* Since: v0.4.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef virStorageVolInfo *virStorageVolInfoPtr;
|
typedef virStorageVolInfo *virStorageVolInfoPtr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageXMLFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.9.13
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_XML_INACTIVE = (1 << 0), /* dump inactive pool/volume information */
|
VIR_STORAGE_XML_INACTIVE = (1 << 0), /* dump inactive pool/volume information */
|
||||||
} virStorageXMLFlags;
|
} virStorageXMLFlags;
|
||||||
@ -220,6 +311,9 @@ int virConnectListDefinedStoragePools(virConnectPtr conn,
|
|||||||
* Flags used to tune pools returned by virConnectListAllStoragePools().
|
* Flags used to tune pools returned by virConnectListAllStoragePools().
|
||||||
* Note that these flags come in groups; if all bits from a group are 0,
|
* Note that these flags come in groups; if all bits from a group are 0,
|
||||||
* then that group is not used to filter results.
|
* then that group is not used to filter results.
|
||||||
|
*
|
||||||
|
* Since: v1.0.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE = 1 << 0,
|
VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE = 1 << 0,
|
||||||
@ -271,7 +365,12 @@ virStoragePoolPtr virStoragePoolLookupByUUIDString(virConnectPtr conn,
|
|||||||
virStoragePoolPtr virStoragePoolLookupByVolume (virStorageVolPtr vol);
|
virStoragePoolPtr virStoragePoolLookupByVolume (virStorageVolPtr vol);
|
||||||
virStoragePoolPtr virStoragePoolLookupByTargetPath(virConnectPtr conn,
|
virStoragePoolPtr virStoragePoolLookupByTargetPath(virConnectPtr conn,
|
||||||
const char *path);
|
const char *path);
|
||||||
|
/**
|
||||||
|
* virStoragePoolDefineFlags:
|
||||||
|
*
|
||||||
|
* Since: v7.7.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_POOL_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
VIR_STORAGE_POOL_DEFINE_VALIDATE = 1 << 0, /* Validate the XML document against schema */
|
||||||
} virStoragePoolDefineFlags;
|
} virStoragePoolDefineFlags;
|
||||||
@ -345,6 +444,12 @@ virStorageVolPtr virStorageVolLookupByPath (virConnectPtr conn,
|
|||||||
const char* virStorageVolGetName (virStorageVolPtr vol);
|
const char* virStorageVolGetName (virStorageVolPtr vol);
|
||||||
const char* virStorageVolGetKey (virStorageVolPtr vol);
|
const char* virStorageVolGetKey (virStorageVolPtr vol);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageVolCreateFlags:
|
||||||
|
*
|
||||||
|
* Since: v1.0.1
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA = 1 << 0,
|
VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA = 1 << 0,
|
||||||
VIR_STORAGE_VOL_CREATE_REFLINK = 1 << 1, /* perform a btrfs lightweight copy */
|
VIR_STORAGE_VOL_CREATE_REFLINK = 1 << 1, /* perform a btrfs lightweight copy */
|
||||||
@ -357,7 +462,12 @@ virStorageVolPtr virStorageVolCreateXMLFrom (virStoragePoolPtr pool,
|
|||||||
const char *xmldesc,
|
const char *xmldesc,
|
||||||
virStorageVolPtr clonevol,
|
virStorageVolPtr clonevol,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
/**
|
||||||
|
* virStorageVolDownloadFlags:
|
||||||
|
*
|
||||||
|
* Since: v3.4.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAM = 1 << 0, /* Use sparse stream */
|
VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAM = 1 << 0, /* Use sparse stream */
|
||||||
} virStorageVolDownloadFlags;
|
} virStorageVolDownloadFlags;
|
||||||
@ -367,6 +477,13 @@ int virStorageVolDownload (virStorageVolPtr vol,
|
|||||||
unsigned long long offset,
|
unsigned long long offset,
|
||||||
unsigned long long length,
|
unsigned long long length,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageVolUploadFlags:
|
||||||
|
*
|
||||||
|
* Since: v3.4.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_VOL_UPLOAD_SPARSE_STREAM = 1 << 0, /* Use sparse stream */
|
VIR_STORAGE_VOL_UPLOAD_SPARSE_STREAM = 1 << 0, /* Use sparse stream */
|
||||||
} virStorageVolUploadFlags;
|
} virStorageVolUploadFlags;
|
||||||
@ -396,6 +513,12 @@ char * virStorageVolGetXMLDesc (virStorageVolPtr pool,
|
|||||||
|
|
||||||
char * virStorageVolGetPath (virStorageVolPtr vol);
|
char * virStorageVolGetPath (virStorageVolPtr vol);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStorageVolResizeFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.9.10
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_VOL_RESIZE_ALLOCATE = 1 << 0, /* force allocation of new size */
|
VIR_STORAGE_VOL_RESIZE_ALLOCATE = 1 << 0, /* force allocation of new size */
|
||||||
VIR_STORAGE_VOL_RESIZE_DELTA = 1 << 1, /* size is relative to current */
|
VIR_STORAGE_VOL_RESIZE_DELTA = 1 << 1, /* size is relative to current */
|
||||||
@ -425,6 +548,9 @@ int virStoragePoolIsPersistent(virStoragePoolPtr pool);
|
|||||||
* An enumeration of supported eventId parameters for
|
* An enumeration of supported eventId parameters for
|
||||||
* virConnectStoragePoolEventRegisterAny(). Each event id determines which
|
* virConnectStoragePoolEventRegisterAny(). Each event id determines which
|
||||||
* signature of callback function will be used.
|
* signature of callback function will be used.
|
||||||
|
*
|
||||||
|
* Since: v2.0.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_POOL_EVENT_ID_LIFECYCLE = 0, /* virConnectStoragePoolEventLifecycleCallback */
|
VIR_STORAGE_POOL_EVENT_ID_LIFECYCLE = 0, /* virConnectStoragePoolEventLifecycleCallback */
|
||||||
@ -472,6 +598,9 @@ int virConnectStoragePoolEventDeregisterAny(virConnectPtr conn,
|
|||||||
*
|
*
|
||||||
* a virStoragePoolEventLifecycleType is emitted during storage pool
|
* a virStoragePoolEventLifecycleType is emitted during storage pool
|
||||||
* lifecycle events
|
* lifecycle events
|
||||||
|
*
|
||||||
|
* Since: v2.0.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STORAGE_POOL_EVENT_DEFINED = 0,
|
VIR_STORAGE_POOL_EVENT_DEFINED = 0,
|
||||||
|
@ -28,6 +28,12 @@
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStreamFlags:
|
||||||
|
*
|
||||||
|
* Since: v0.7.2
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STREAM_NONBLOCK = (1 << 0),
|
VIR_STREAM_NONBLOCK = (1 << 0),
|
||||||
} virStreamFlags;
|
} virStreamFlags;
|
||||||
@ -44,6 +50,12 @@ int virStreamRecv(virStreamPtr st,
|
|||||||
char *data,
|
char *data,
|
||||||
size_t nbytes);
|
size_t nbytes);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStreamRecvFlagsValues:
|
||||||
|
*
|
||||||
|
* Since: v3.4.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STREAM_RECV_STOP_AT_HOLE = (1 << 0),
|
VIR_STREAM_RECV_STOP_AT_HOLE = (1 << 0),
|
||||||
} virStreamRecvFlagsValues;
|
} virStreamRecvFlagsValues;
|
||||||
@ -229,6 +241,12 @@ int virStreamSparseRecvAll(virStreamPtr stream,
|
|||||||
virStreamSinkHoleFunc holeHandler,
|
virStreamSinkHoleFunc holeHandler,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virStreamEventType:
|
||||||
|
*
|
||||||
|
* Since: v0.7.2
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_STREAM_EVENT_READABLE = (1 << 0),
|
VIR_STREAM_EVENT_READABLE = (1 << 0),
|
||||||
VIR_STREAM_EVENT_WRITABLE = (1 << 1),
|
VIR_STREAM_EVENT_WRITABLE = (1 << 1),
|
||||||
|
@ -34,6 +34,9 @@ extern "C" {
|
|||||||
* virErrorLevel:
|
* virErrorLevel:
|
||||||
*
|
*
|
||||||
* Indicates the level of an error
|
* Indicates the level of an error
|
||||||
|
*
|
||||||
|
* Since: v0.1.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_ERR_NONE = 0,
|
VIR_ERR_NONE = 0,
|
||||||
@ -46,6 +49,9 @@ typedef enum {
|
|||||||
*
|
*
|
||||||
* Indicates where an error may have come from. This should remain
|
* Indicates where an error may have come from. This should remain
|
||||||
* stable, with all additions placed at the end since libvirt 0.1.0.
|
* stable, with all additions placed at the end since libvirt 0.1.0.
|
||||||
|
*
|
||||||
|
* Since: v0.1.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_FROM_NONE = 0,
|
VIR_FROM_NONE = 0,
|
||||||
@ -152,9 +158,19 @@ typedef enum {
|
|||||||
* The conn, dom and net fields should be used with extreme care.
|
* The conn, dom and net fields should be used with extreme care.
|
||||||
* Reference counts are not incremented so the underlying objects
|
* Reference counts are not incremented so the underlying objects
|
||||||
* may be deleted without notice after the error has been delivered.
|
* may be deleted without notice after the error has been delivered.
|
||||||
|
*
|
||||||
|
* Since: v0.1.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct _virError virError;
|
typedef struct _virError virError;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virErrorPtr:
|
||||||
|
*
|
||||||
|
* Since: v0.1.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
typedef virError *virErrorPtr;
|
typedef virError *virErrorPtr;
|
||||||
struct _virError {
|
struct _virError {
|
||||||
int code; /* The error code, a virErrorNumber */
|
int code; /* The error code, a virErrorNumber */
|
||||||
@ -205,6 +221,9 @@ struct _virError {
|
|||||||
* break;
|
* break;
|
||||||
* default:
|
* default:
|
||||||
* }
|
* }
|
||||||
|
*
|
||||||
|
* Since: v0.1.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_ERR_OK = 0,
|
VIR_ERR_OK = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user