aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_internal.h
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2012-10-05 14:34:29 +0100
committerAnthony PERARD <anthony.perard@citrix.com>2012-10-05 14:34:29 +0100
commit3c8ec17b26e686a6601e1a678c090f44464ad514 (patch)
tree2724d6bdae5bbaca8774089f0146a4e83cbaecb7 /tools/libxl/libxl_internal.h
parente9a327bbbcab127625b0917a2780cb3601a81d01 (diff)
downloadxen-3c8ec17b26e686a6601e1a678c090f44464ad514.tar.gz
xen-3c8ec17b26e686a6601e1a678c090f44464ad514.tar.bz2
xen-3c8ec17b26e686a6601e1a678c090f44464ad514.zip
libxl: Move gc_is_real to libxl_internal.h.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_internal.h')
-rw-r--r--tools/libxl/libxl_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index b6f54bad17..c0e879d146 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -446,6 +446,11 @@ static inline libxl_ctx *libxl__gc_owner(libxl__gc *gc)
return gc->owner;
}
+static inline int libxl__gc_is_real(const libxl__gc *gc)
+{
+ return gc->alloc_maxsize >= 0;
+}
+
/*
* Memory allocation tracking/helpers
*