diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-03-08 23:47:24 +0000 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-03-08 23:47:24 +0000 |
commit | 9e92a72fb5e29900dd1bc57cf0592d916a03a109 (patch) | |
tree | 14ffcbb484f3d0bb188d6f5afaffeba0d1255a76 /tools/libxen/include | |
parent | 5579ba52ec6f1db9497e03edd80d440460c3c55d (diff) | |
download | xen-9e92a72fb5e29900dd1bc57cf0592d916a03a109.tar.gz xen-9e92a72fb5e29900dd1bc57cf0592d916a03a109.tar.bz2 xen-9e92a72fb5e29900dd1bc57cf0592d916a03a109.zip |
Added {VIF,VBD}.{plug,unplug} methods. Docs and C bindings -- Xend to follow.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen/include')
-rw-r--r-- | tools/libxen/include/xen_vbd.h | 16 | ||||
-rw-r--r-- | tools/libxen/include/xen_vif.h | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/tools/libxen/include/xen_vbd.h b/tools/libxen/include/xen_vbd.h index 86ad38f207..7b36266a04 100644 --- a/tools/libxen/include/xen_vbd.h +++ b/tools/libxen/include/xen_vbd.h @@ -358,6 +358,22 @@ xen_vbd_media_change(xen_session *session, xen_vbd vbd, xen_vdi vdi); /** + * Hotplug the specified VBD, dynamically attaching it to the running + * VM + */ +extern bool +xen_vbd_plug(xen_session *session, xen_vbd self); + + +/** + * Hot-unplug the specified VBD, dynamically unattaching it from the + * running VM + */ +extern bool +xen_vbd_unplug(xen_session *session, xen_vbd self); + + +/** * Return a list of all the VBDs known to the system. */ extern bool diff --git a/tools/libxen/include/xen_vif.h b/tools/libxen/include/xen_vif.h index 05a070aff4..8a1cffb7bd 100644 --- a/tools/libxen/include/xen_vif.h +++ b/tools/libxen/include/xen_vif.h @@ -332,6 +332,22 @@ xen_vif_remove_from_qos_algorithm_params(xen_session *session, xen_vif vif, char /** + * Hotplug the specified VIF, dynamically attaching it to the running + * VM + */ +extern bool +xen_vif_plug(xen_session *session, xen_vif self); + + +/** + * Hot-unplug the specified VIF, dynamically unattaching it from the + * running VM + */ +extern bool +xen_vif_unplug(xen_session *session, xen_vif self); + + +/** * Return a list of all the VIFs known to the system. */ extern bool |