From 3a7400aa8668b4ec5b9590662d29510001b10bd7 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Wed, 4 Apr 2007 15:00:57 +0100 Subject: Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot. Signed-off-by: Ewan Mellor --- tools/libxen/include/xen_vdi.h | 15 --------------- tools/libxen/src/xen_vdi.c | 33 --------------------------------- 2 files changed, 48 deletions(-) (limited to 'tools/libxen') diff --git a/tools/libxen/include/xen_vdi.h b/tools/libxen/include/xen_vdi.h index 9ebb8fd9ee..74b63542e6 100644 --- a/tools/libxen/include/xen_vdi.h +++ b/tools/libxen/include/xen_vdi.h @@ -337,21 +337,6 @@ extern bool xen_vdi_remove_from_other_config(xen_session *session, xen_vdi vdi, char *key); -/** - * Take an exact copy of the VDI; the snapshot lives in the same - * Storage Repository as its parent. - */ -extern bool -xen_vdi_snapshot(xen_session *session, xen_vdi *result, xen_vdi vdi); - - -/** - * Resize the vdi to the size. - */ -extern bool -xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size); - - /** * Return a list of all the VDIs known to the system. */ diff --git a/tools/libxen/src/xen_vdi.c b/tools/libxen/src/xen_vdi.c index 91cc306021..66a524c9c3 100644 --- a/tools/libxen/src/xen_vdi.c +++ b/tools/libxen/src/xen_vdi.c @@ -507,39 +507,6 @@ xen_vdi_remove_from_other_config(xen_session *session, xen_vdi vdi, char *key) } -bool -xen_vdi_snapshot(xen_session *session, xen_vdi *result, xen_vdi vdi) -{ - abstract_value param_values[] = - { - { .type = &abstract_type_string, - .u.string_val = vdi } - }; - - abstract_type result_type = abstract_type_string; - - *result = NULL; - XEN_CALL_("VDI.snapshot"); - return session->ok; -} - - -bool -xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size) -{ - abstract_value param_values[] = - { - { .type = &abstract_type_string, - .u.string_val = vdi }, - { .type = &abstract_type_int, - .u.int_val = size } - }; - - xen_call_(session, "VDI.resize", param_values, 2, NULL, NULL); - return session->ok; -} - - bool xen_vdi_get_all(xen_session *session, struct xen_vdi_set **result) { -- cgit v1.2.3