aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-08-23 19:00:09 +0100
committerIan Campbell <ian.campbell@citrix.com>2012-08-23 19:00:09 +0100
commit7eaccb3cc3fabdde1fe7ef55300941f5520ca785 (patch)
treebd8515be66ce604994f8bc2aed13e8251fe49678 /tools/libxl/libxl.h
parentfd5729846b86580e1878b3af4565fb4d8c444457 (diff)
downloadxen-7eaccb3cc3fabdde1fe7ef55300941f5520ca785.tar.gz
xen-7eaccb3cc3fabdde1fe7ef55300941f5520ca785.tar.bz2
xen-7eaccb3cc3fabdde1fe7ef55300941f5520ca785.zip
libxl: make domain resume API asynchronous
Although the current implementation has no asynchromous parts I can envisage it needing to do bits of create/destroy like functionality which may need async support in the future. To do this make the meat into an internal libxl__domain_resume function in order to satisfy the no-internal-callers rule for the async function. Since I needed to touch the logging to s/ctx/CTX/ anyway switch to the LOG* helper macros. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Roger Pau Monne <roger.pau@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl.h')
-rw-r--r--tools/libxl/libxl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h
index c614d6fdb9..599c7f10d0 100644
--- a/tools/libxl/libxl.h
+++ b/tools/libxl/libxl.h
@@ -529,7 +529,9 @@ int libxl_domain_suspend(libxl_ctx *ctx, uint32_t domid, int fd,
* If this parameter is true, use co-operative resume. The guest
* must support this.
*/
-int libxl_domain_resume(libxl_ctx *ctx, uint32_t domid, int suspend_cancel);
+int libxl_domain_resume(libxl_ctx *ctx, uint32_t domid, int suspend_cancel,
+ const libxl_asyncop_how *ao_how)
+ LIBXL_EXTERNAL_CALLERS_ONLY;
int libxl_domain_remus_start(libxl_ctx *ctx, libxl_domain_remus_info *info,
uint32_t domid, int send_fd, int recv_fd,