Adds DomainUpdateDeviceFlags to translation table (#62)

* Adds DomainUpdateDeviceFlags to translation table

* Updates generated code

libvirt-4.0.0

* fixes merge conflict
This commit is contained in:
Ben LeMasurier 2018-02-28 15:00:59 -07:00 committed by GitHub
parent a7be1ba7c0
commit 0978bc3291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 280 additions and 336 deletions

File diff suppressed because it is too large Load Diff

View File

@ -473,6 +473,7 @@ var flagMap = map[string]string{
"DomainSetVcpu": "DomainModificationImpact", "DomainSetVcpu": "DomainModificationImpact",
"DomainShutdownFlags": "DomainShutdownFlagValues", "DomainShutdownFlags": "DomainShutdownFlagValues",
"DomainUndefineFlags": "DomainUndefineFlagsValues", "DomainUndefineFlags": "DomainUndefineFlagsValues",
"DomainUpdateDeviceFlags": "DomainDeviceModifyFlags",
"StoragePoolCreateXML": "StoragePoolCreateFlags", "StoragePoolCreateXML": "StoragePoolCreateFlags",
"StoragePoolGetXMLDesc": "StorageXMLFlags", "StoragePoolGetXMLDesc": "StorageXMLFlags",
"StorageVolCreateXML": "StorageVolCreateFlags", "StorageVolCreateXML": "StorageVolCreateFlags",

View File

@ -1181,7 +1181,7 @@ type DomainDetachDeviceFlagsArgs struct {
type DomainUpdateDeviceFlagsArgs struct { type DomainUpdateDeviceFlagsArgs struct {
Dom Domain Dom Domain
XML string XML string
Flags uint32 Flags DomainDeviceModifyFlags
} }
// DomainGetAutostartArgs is libvirt's remote_domain_get_autostart_args // DomainGetAutostartArgs is libvirt's remote_domain_get_autostart_args
@ -2897,7 +2897,7 @@ type StorageVolUploadArgs struct {
Vol StorageVol Vol StorageVol
Offset uint64 Offset uint64
Length uint64 Length uint64
Flags StorageVolUploadFlags Flags uint32
} }
// StorageVolDownloadArgs is libvirt's remote_storage_vol_download_args // StorageVolDownloadArgs is libvirt's remote_storage_vol_download_args
@ -2905,7 +2905,7 @@ type StorageVolDownloadArgs struct {
Vol StorageVol Vol StorageVol
Offset uint64 Offset uint64
Length uint64 Length uint64
Flags StorageVolDownloadFlags Flags uint32
} }
// DomainGetStateArgs is libvirt's remote_domain_get_state_args // DomainGetStateArgs is libvirt's remote_domain_get_state_args
@ -8865,7 +8865,7 @@ func (l *Libvirt) DomainEventGraphics() (err error) {
} }
// DomainUpdateDeviceFlags is the go wrapper for REMOTE_PROC_DOMAIN_UPDATE_DEVICE_FLAGS. // DomainUpdateDeviceFlags is the go wrapper for REMOTE_PROC_DOMAIN_UPDATE_DEVICE_FLAGS.
func (l *Libvirt) DomainUpdateDeviceFlags(Dom Domain, XML string, Flags uint32) (err error) { func (l *Libvirt) DomainUpdateDeviceFlags(Dom Domain, XML string, Flags DomainDeviceModifyFlags) (err error) {
var buf []byte var buf []byte
args := DomainUpdateDeviceFlagsArgs { args := DomainUpdateDeviceFlagsArgs {
@ -9844,7 +9844,7 @@ func (l *Libvirt) DomainMigrateSetMaxSpeed(Dom Domain, Bandwidth uint64, Flags u
} }
// StorageVolUpload is the go wrapper for REMOTE_PROC_STORAGE_VOL_UPLOAD. // StorageVolUpload is the go wrapper for REMOTE_PROC_STORAGE_VOL_UPLOAD.
func (l *Libvirt) StorageVolUpload(Vol StorageVol, Offset uint64, Length uint64, Flags StorageVolUploadFlags) (err error) { func (l *Libvirt) StorageVolUpload(Vol StorageVol, Offset uint64, Length uint64, Flags uint32) (err error) {
var buf []byte var buf []byte
args := StorageVolUploadArgs { args := StorageVolUploadArgs {
@ -9869,7 +9869,7 @@ func (l *Libvirt) StorageVolUpload(Vol StorageVol, Offset uint64, Length uint64,
} }
// StorageVolDownload is the go wrapper for REMOTE_PROC_STORAGE_VOL_DOWNLOAD. // StorageVolDownload is the go wrapper for REMOTE_PROC_STORAGE_VOL_DOWNLOAD.
func (l *Libvirt) StorageVolDownload(Vol StorageVol, Offset uint64, Length uint64, Flags StorageVolDownloadFlags) (err error) { func (l *Libvirt) StorageVolDownload(Vol StorageVol, Offset uint64, Length uint64, Flags uint32) (err error) {
var buf []byte var buf []byte
args := StorageVolDownloadArgs { args := StorageVolDownloadArgs {