summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2021-04-09 10:50:03 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2021-04-09 12:43:47 -0500
commite2f82a3704f680fbb37a733476d870c19232c23e (patch)
treeb1aa2c0278bbb891b54d9a28a12326b20ebd7853 /include
parente7b7c87a577223347f890aae29150e4e9c23cfe1 (diff)
downloadlibvirt-e2f82a3704f680fbb37a733476d870c19232c23e.tar.gz
api: Add 'flags' param to virNodeDeviceCreate/Undefine()
Follow best practices and add a unsigned int flags parameter to these new APIs that have not been in a release yet. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvirt/libvirt-nodedev.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libvirt/libvirt-nodedev.h b/include/libvirt/libvirt-nodedev.h
index cf51c3d085..067d914d37 100644
--- a/include/libvirt/libvirt-nodedev.h
+++ b/include/libvirt/libvirt-nodedev.h
@@ -135,9 +135,11 @@ virNodeDevicePtr virNodeDeviceDefineXML(virConnectPtr conn,
const char *xmlDesc,
unsigned int flags);
-int virNodeDeviceUndefine(virNodeDevicePtr dev);
+int virNodeDeviceUndefine(virNodeDevicePtr dev,
+ unsigned int flags);
-int virNodeDeviceCreate(virNodeDevicePtr dev);
+int virNodeDeviceCreate(virNodeDevicePtr dev,
+ unsigned int flags);
/**
* VIR_NODE_DEVICE_EVENT_CALLBACK: