diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-08-23 19:00:09 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-08-23 19:00:09 +0100 |
commit | 7eaccb3cc3fabdde1fe7ef55300941f5520ca785 (patch) | |
tree | bd8515be66ce604994f8bc2aed13e8251fe49678 /tools/libxl/libxl_internal.h | |
parent | fd5729846b86580e1878b3af4565fb4d8c444457 (diff) | |
download | xen-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_internal.h')
-rw-r--r-- | tools/libxl/libxl_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |