summaryrefslogtreecommitdiff
path: root/content/content_protected.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-08 16:49:32 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-08 16:49:32 +0000
commit05a64bfde9fe91587a7f8bd3d32f8577b80c7328 (patch)
tree0bea58ea6cf80640a8d4a8efa2723943b05fa0f6 /content/content_protected.h
parent8f64d5d223a6ccc60f04e815355c9d3f216a4410 (diff)
downloadnetsurf-05a64bfde9fe91587a7f8bd3d32f8577b80c7328.tar.gz
netsurf-05a64bfde9fe91587a7f8bd3d32f8577b80c7328.tar.bz2
fix up more doxygen errors
Diffstat (limited to 'content/content_protected.h')
-rw-r--r--content/content_protected.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/content/content_protected.h b/content/content_protected.h
index 2647b2e0f..1ae899891 100644
--- a/content/content_protected.h
+++ b/content/content_protected.h
@@ -194,11 +194,58 @@ int content__get_width(struct content *c);
int content__get_height(struct content *c);
int content__get_available_width(struct content *c);
const char *content__get_source_data(struct content *c, unsigned long *size);
+
+/**
+ * Invalidate content reuse data.
+ *
+ * causes subsequent requests for content URL to query server to
+ * determine if content can be reused. This is required behaviour for
+ * forced reloads etc.
+ *
+ * \param c Content to invalidate.
+ */
void content__invalidate_reuse_data(struct content *c);
+
+/**
+ * Retrieve the refresh URL for a content
+ *
+ * \param c Content to retrieve refresh URL from
+ * \return Pointer to URL or NULL if none
+ */
nsurl *content__get_refresh_url(struct content *c);
+
+/**
+ * Retrieve the bitmap contained in an image content
+ *
+ * \param c Content to retrieve opacity from
+ * \return Pointer to bitmap or NULL if none.
+ */
struct bitmap *content__get_bitmap(struct content *c);
+
+/**
+ * Determine if a content is opaque
+ *
+ * \param c Content to retrieve opacity from
+ * \return false if the content is not opaque or information is not
+ * known else true.
+ */
bool content__get_opaque(struct content *c);
+
+/**
+ * Retrieve the encoding of a content
+ *
+ * \param c the content to examine the encoding of.
+ * \param op encoding operation.
+ * \return Pointer to content info or NULL if none.
+ */
const char *content__get_encoding(struct content *c, enum content_encoding_type op);
+
+/**
+ * Return whether a content is currently locked
+ *
+ * \param c Content to test
+ * \return true iff locked, else false
+ */
bool content__is_locked(struct content *c);
#endif