summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index 7503e9d28..446f326db 100644
--- a/content/content.c
+++ b/content/content.c
@@ -489,6 +489,17 @@ struct content * content_get_ready(const char *url)
/**
+ * Get whether a content can reformat
+ *
+ * \param c content to check
+ * \return whether the content can reformat
+ */
+bool content_get_reformat(struct content *c) {
+ return (handler_map[c->type].reformat != NULL);
+}
+
+
+/**
* Initialise the content for the specified type.
*
* \param c content structure