mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/libxl: Fix building against libxl for LIBXL_API_VERSION < 0x040500
c/s 6276f66ebe "libxl: libxl_uuid_copy now takes a ctx argument" introduces
API compatibiltiy for libxl_uuid_copy() which sadly is not valid C. Fix it.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
37284698cd
commit
67d95d0e6a
1 file changed
+6
-1
@@ -61,7 +61,12 @@ int libxl_uuid_from_string(libxl_uuid *uuid, const char *in);
|
||||
void libxl_uuid_copy(libxl_ctx *ctx_opt, libxl_uuid *dst,
|
||||
const libxl_uuid *src);
|
||||
#if defined(LIBXL_API_VERSION) && LIBXL_API_VERSION < 0x040500
|
||||
void libxl_uuid_copy(dst, src) libxl_uuid_copy(NULL, dst, src)
|
||||
void static inline libxl_uuid_copy_0x040400(libxl_uuid *dst,
|
||||
const libxl_uuid *src)
|
||||
{
|
||||
libxl_uuid_copy(NULL, dst, src);
|
||||
}
|
||||
#define libxl_uuid_copy libxl_uuid_copy_0x040400
|
||||
#endif
|
||||
|
||||
void libxl_uuid_clear(libxl_uuid *uuid);
|
||||
|
||||