From 7eaccb3cc3fabdde1fe7ef55300941f5520ca785 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 23 Aug 2012 19:00:09 +0100 Subject: 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 Acked-by: Roger Pau Monne Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/libxl_internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/libxl/libxl_internal.h') diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 7c3b179738..b6f54bad17 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -899,6 +899,9 @@ _hidden int libxl__domain_resume_device_model(libxl__gc *gc, uint32_t domid); _hidden void libxl__userdata_destroyall(libxl__gc *gc, uint32_t domid); +_hidden int libxl__domain_resume(libxl__gc *gc, uint32_t domid, + int suspend_cancel); + /* returns 0 or 1, or a libxl error code */ _hidden int libxl__domain_pvcontrol_available(libxl__gc *gc, uint32_t domid); -- cgit v1.2.3