From 3c8ec17b26e686a6601e1a678c090f44464ad514 Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Fri, 5 Oct 2012 14:34:29 +0100 Subject: libxl: Move gc_is_real to libxl_internal.h. Signed-off-by: Anthony PERARD Acked-by: Ian Jackson Committed-by: Ian Campbell --- tools/libxl/libxl_internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/libxl/libxl_internal.h') 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 * -- cgit v1.2.3