mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add new API virDomainBlockPull* to headers
Set up the types for the block pull functions and insert them into the virDriver structure definition. Symbols are exported in this patch to prevent documentation compile failures. * include/libvirt/libvirt.h.in: new API * src/driver.h: add the new entry to the driver structure * python/generator.py: fix compiler errors, the actual python bindings * are implemented later * src/libvirt_public.syms: export symbols * docs/apibuild.py: Extend 'unsigned long' parameter exception to this * API
This commit is contained in:
committed by
Daniel Veillard
parent
bfb485ced2
commit
152e810388
@@ -1419,6 +1419,50 @@ int virDomainDetachDeviceFlags(virDomainPtr domain,
|
||||
int virDomainUpdateDeviceFlags(virDomainPtr domain,
|
||||
const char *xml, unsigned int flags);
|
||||
|
||||
/*
|
||||
* BlockJob API
|
||||
*/
|
||||
|
||||
/**
|
||||
* virDomainBlockJobType:
|
||||
*
|
||||
* VIR_DOMAIN_BLOCK_JOB_TYPE_PULL: Block Pull (virDomainBlockPull)
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_DOMAIN_BLOCK_JOB_TYPE_UNKNOWN = 0,
|
||||
VIR_DOMAIN_BLOCK_JOB_TYPE_PULL = 1,
|
||||
} virDomainBlockJobType;
|
||||
|
||||
/* An iterator for monitoring block job operations */
|
||||
typedef unsigned long long virDomainBlockJobCursor;
|
||||
|
||||
typedef struct _virDomainBlockJobInfo virDomainBlockJobInfo;
|
||||
struct _virDomainBlockJobInfo {
|
||||
virDomainBlockJobType type;
|
||||
unsigned long bandwidth;
|
||||
/*
|
||||
* The following fields provide an indication of block job progress. @cur
|
||||
* indicates the current position and will be between 0 and @end. @end is
|
||||
* the final cursor position for this operation and represents completion.
|
||||
* To approximate progress, divide @cur by @end.
|
||||
*/
|
||||
virDomainBlockJobCursor cur;
|
||||
virDomainBlockJobCursor end;
|
||||
};
|
||||
typedef virDomainBlockJobInfo *virDomainBlockJobInfoPtr;
|
||||
|
||||
int virDomainBlockJobAbort(virDomainPtr dom, const char *path,
|
||||
unsigned int flags);
|
||||
int virDomainGetBlockJobInfo(virDomainPtr dom, const char *path,
|
||||
virDomainBlockJobInfoPtr info,
|
||||
unsigned int flags);
|
||||
int virDomainBlockJobSetSpeed(virDomainPtr dom, const char *path,
|
||||
unsigned long bandwidth, unsigned int flags);
|
||||
|
||||
int virDomainBlockPull(virDomainPtr dom, const char *path,
|
||||
unsigned long bandwidth, unsigned int flags);
|
||||
|
||||
|
||||
/*
|
||||
* NUMA support
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user