]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
libxl: Constify src of device_compare_fn_t
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 5 Apr 2019 17:58:10 +0000 (18:58 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 9 Apr 2019 14:06:09 +0000 (15:06 +0100)
All functions libxl_device_*_copy which implements device_compare_fn_t
already have the `src' parameter defined with const.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_internal.h

index c75c98156aff0b09193854efa749d53fee9079a2..34dc886505c9a04f4ddcbd3f358d9b8794c633ba 100644 (file)
@@ -3726,7 +3726,7 @@ typedef int (*device_set_default_fn_t)(libxl__gc *, uint32_t, void *, bool);
 typedef int (*device_to_device_fn_t)(libxl__gc *, uint32_t, void *,
                                      libxl__device *);
 typedef void (*device_init_fn_t)(void *);
-typedef void (*device_copy_fn_t)(libxl_ctx *, void *, void *);
+typedef void (*device_copy_fn_t)(libxl_ctx *, void *dst, const void *src);
 typedef void (*device_dispose_fn_t)(void *);
 typedef int (*device_compare_fn_t)(const void *, const void *);
 typedef void (*device_merge_fn_t)(libxl_ctx *, void *, void *);