search for: get_disk_has_backing_fil

Displaying 1 result from an estimated 1 matches for "get_disk_has_backing_fil".

2016 Jan 09
0
[PATCH] build: Require qemu >= 1.3.0 and yajl.
...fs.h" #include "guestfs-internal.h" #include "guestfs-internal-actions.h" -static int which_parser (guestfs_h *g); -static char *get_disk_format (guestfs_h *g, const char *filename); -static int64_t get_disk_virtual_size (guestfs_h *g, const char *filename); -static int get_disk_has_backing_file (guestfs_h *g, const char *filename); -#if HAVE_YAJL +#ifdef HAVE_ATTRIBUTE_CLEANUP +#define CLEANUP_YAJL_TREE_FREE __attribute__((cleanup(cleanup_yajl_tree_free))) + +static void +cleanup_yajl_tree_free (void *ptr) +{ + yajl_tree_free (* (yajl_val *) ptr); +} + +#else +#define CLEANUP_YAJL_TREE_...