mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
Public API
Definition of public API for virDomain{Attach,Detach}DeviceFlags. V2: Adjust libvrt_public.syms to anticipated 0.7.7 release.
This commit is contained in:
parent
f0ea7ab328
commit
314190a0ad
@ -845,9 +845,22 @@ int virDomainGetVcpus (virDomainPtr domain,
|
||||
*/
|
||||
#define VIR_GET_CPUMAP(cpumaps,maplen,vcpu) &(cpumaps[(vcpu)*(maplen)])
|
||||
|
||||
|
||||
typedef enum {
|
||||
|
||||
VIR_DOMAIN_DEVICE_MODIFY_CURRENT = 0, /* Modify device allocation based on current domain state */
|
||||
VIR_DOMAIN_DEVICE_MODIFY_LIVE = (1 << 0), /* Modify live device allocation */
|
||||
VIR_DOMAIN_DEVICE_MODIFY_CONFIG = (1 << 1), /* Modify persisted device allocation */
|
||||
} virDomainDeviceModifyFlags;
|
||||
|
||||
int virDomainAttachDevice(virDomainPtr domain, const char *xml);
|
||||
int virDomainDetachDevice(virDomainPtr domain, const char *xml);
|
||||
|
||||
int virDomainAttachDeviceFlags(virDomainPtr domain,
|
||||
const char *xml, unsigned int flags);
|
||||
int virDomainDetachDeviceFlags(virDomainPtr domain,
|
||||
const char *xml, unsigned int flags);
|
||||
|
||||
/*
|
||||
* NUMA support
|
||||
*/
|
||||
|
@ -349,4 +349,10 @@ LIBVIRT_0.7.5 {
|
||||
virDomainMemoryStats;
|
||||
} LIBVIRT_0.7.3;
|
||||
|
||||
LIBVIRT_0.7.7 {
|
||||
global:
|
||||
virDomainAttachDeviceFlags;
|
||||
virDomainDetachDeviceFlags;
|
||||
} LIBVIRT_0.7.5;
|
||||
|
||||
# .... define new API here using predicted next version number ....
|
||||
|
Loading…
Reference in New Issue
Block a user