diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-08-26 16:38:18 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-08-26 16:38:18 +0100 |
commit | e94fe1632e743cd75f588b3a031288b92e3ecb3a (patch) | |
tree | 124a9c11e6b29e08f2bfd276a5c86c688ecfbacc /content/content_protected.h | |
parent | d70beb28db6f978ae9fc674640f3101e20c05bb8 (diff) | |
download | netsurf-e94fe1632e743cd75f588b3a031288b92e3ecb3a.tar.gz netsurf-e94fe1632e743cd75f588b3a031288b92e3ecb3a.tar.bz2 |
Content API: Avoid content message copy in content user callback.
Diffstat (limited to 'content/content_protected.h')
-rw-r--r-- | content/content_protected.h | 7 |
1 files changed, 5 insertions, 2 deletions
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; |