From: Anthony PERARD <anthony.perard@citrix.com> To: xen-devel@lists.xenproject.org Cc: Anthony PERARD <anthony.perard@citrix.com>, Wei Liu <wei.liu2@citrix.com>, Ian Jackson <ian.jackson@eu.citrix.com> Subject: [PATCH 2/3] libxl: Constify src of device_compare_fn_t Date: Fri, 5 Apr 2019 18:58:10 +0100 [thread overview] Message-ID: <20190405175811.7446-3-anthony.perard@citrix.com> (raw) In-Reply-To: <20190405175811.7446-1-anthony.perard@citrix.com> 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> --- tools/libxl/libxl_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index c75c98156a..34dc886505 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -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 *); -- Anthony PERARD _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
WARNING: multiple messages have this Message-ID (diff)
From: Anthony PERARD <anthony.perard@citrix.com> To: <xen-devel@lists.xenproject.org> Cc: Anthony PERARD <anthony.perard@citrix.com>, Wei Liu <wei.liu2@citrix.com>, Ian Jackson <ian.jackson@eu.citrix.com> Subject: [Xen-devel] [PATCH 2/3] libxl: Constify src of device_compare_fn_t Date: Fri, 5 Apr 2019 18:58:10 +0100 [thread overview] Message-ID: <20190405175811.7446-3-anthony.perard@citrix.com> (raw) Message-ID: <20190405175810.Nl-9KxKJIIYdBMKT4-gskf6JtCZe5rsMT0VqosExXJs@z> (raw) In-Reply-To: <20190405175811.7446-1-anthony.perard@citrix.com> 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> --- tools/libxl/libxl_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index c75c98156a..34dc886505 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -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 *); -- Anthony PERARD _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-04-05 17:58 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-04-05 17:58 [PATCH 0/3] Some cleanup of device_add_domain_config Anthony PERARD 2019-04-05 17:58 ` [Xen-devel] " Anthony PERARD 2019-04-05 17:58 ` [PATCH 1/3] libxl: Constify libxl_device_*_compare functions Anthony PERARD 2019-04-05 17:58 ` [Xen-devel] " Anthony PERARD 2019-04-09 12:38 ` Wei Liu 2019-04-09 12:38 ` [Xen-devel] " Wei Liu 2019-04-05 17:58 ` Anthony PERARD [this message] 2019-04-05 17:58 ` [Xen-devel] [PATCH 2/3] libxl: Constify src of device_compare_fn_t Anthony PERARD 2019-04-09 12:38 ` Wei Liu 2019-04-09 12:38 ` [Xen-devel] " Wei Liu 2019-04-05 17:58 ` [PATCH 3/3] libxl: Document device_add_domain_config Anthony PERARD 2019-04-05 17:58 ` [Xen-devel] " Anthony PERARD 2019-04-09 12:46 ` Wei Liu 2019-04-09 12:46 ` [Xen-devel] " Wei Liu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190405175811.7446-3-anthony.perard@citrix.com \ --to=anthony.perard@citrix.com \ --cc=ian.jackson@eu.citrix.com \ --cc=wei.liu2@citrix.com \ --cc=xen-devel@lists.xenproject.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.