diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2021-05-26 09:06:12 -0500 |
---|---|---|
committer | Jonathon Jongsma <jjongsma@redhat.com> | 2021-09-14 14:22:51 -0500 |
commit | c6607a25b93bd6b0188405785d6608fdf71c8e0a (patch) | |
tree | 91d82022fad741f66f1951f64fc0d860b2826997 /include | |
parent | 51eb680b2647a8c0520ec5da3bb32d711d59f81b (diff) | |
download | libvirt-c6607a25b93bd6b0188405785d6608fdf71c8e0a.tar.gz |
api: add virNodeDevice(Get|Set)Autostart()
This will allow persistent mediated devices to be configured to be
restarted automatically when the host reboots.
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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libvirt/libvirt-nodedev.h b/include/libvirt/libvirt-nodedev.h index 067d914d37..0e841ada8a 100644 --- a/include/libvirt/libvirt-nodedev.h +++ b/include/libvirt/libvirt-nodedev.h @@ -141,6 +141,12 @@ int virNodeDeviceUndefine(virNodeDevicePtr dev, int virNodeDeviceCreate(virNodeDevicePtr dev, unsigned int flags); +int virNodeDeviceSetAutostart(virNodeDevicePtr dev, + int autostart); + +int virNodeDeviceGetAutostart(virNodeDevicePtr dev, + int *autostart); + /** * VIR_NODE_DEVICE_EVENT_CALLBACK: * |