From ff8791a3f79426fc49f4bb01a12e2c6c975fc455 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Apr 2010 16:37:39 +0000 Subject: Ensure content can be shared when retrieving from cache svn path=/trunk/netsurf/; revision=10361 --- content/content.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index ba4db702c..c215ed1f8 100644 --- a/content/content.c +++ b/content/content.c @@ -988,6 +988,17 @@ bool content_matches_quirks(struct content *c, bool quirks) return c->quirks == quirks; } +/** + * Determine if a content is shareable + * + * \param c Content to consider + * \return True if content is shareable, false otherwise + */ +bool content_is_shareable(struct content *c) +{ + return handler_map[c->type].no_share == false; +} + /** * Send a message to all users. */ -- cgit v1.2.3