From e94fe1632e743cd75f588b3a031288b92e3ecb3a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 26 Aug 2017 16:38:18 +0100 Subject: Content API: Avoid content message copy in content user callback. --- content/content_protected.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'content/content_protected.h') diff --git a/content/content_protected.h b/content/content_protected.h index fe4fcdade..21b73a662 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -92,8 +92,11 @@ struct content_handler { /** Linked list of users of a content. */ struct content_user { - void (*callback)(struct content *c, content_msg msg, - union content_msg_data data, void *pw); + void (*callback)( + struct content *c, + content_msg msg, + const union content_msg_data *data, + void *pw); void *pw; struct content_user *next; -- cgit v1.2.3