summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2020-05-11 11:40:26 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2021-04-07 15:10:28 -0500
commit7e386cde1f7f6761ac189277e07d74f7d98a8254 (patch)
treeb90f7406b39f70543834cb8f1798cbccae00949e /include
parenta48a2abe601d3efbd97de4215ffa2d44ddf071c6 (diff)
downloadlibvirt-7e386cde1f7f6761ac189277e07d74f7d98a8254.tar.gz
api: add virNodeDeviceDefineXML()
With mediated devices, we can now define persistent node devices that can be started and stopped. In order to take advantage of this, we need an API to define new node devices. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvirt/libvirt-nodedev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libvirt/libvirt-nodedev.h b/include/libvirt/libvirt-nodedev.h
index 77d814935e..33eb46b3cd 100644
--- a/include/libvirt/libvirt-nodedev.h
+++ b/include/libvirt/libvirt-nodedev.h
@@ -131,6 +131,10 @@ virNodeDevicePtr virNodeDeviceCreateXML (virConnectPtr conn,
int virNodeDeviceDestroy (virNodeDevicePtr dev);
+virNodeDevicePtr virNodeDeviceDefineXML(virConnectPtr conn,
+ const char *xmlDesc,
+ unsigned int flags);
+
/**
* VIR_NODE_DEVICE_EVENT_CALLBACK:
*