summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/content.c11
-rw-r--r--content/content.h1
2 files changed, 12 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
diff --git a/content/content.h b/content/content.h
index 43f9243d3..0eb7c3e4c 100644
--- a/content/content.h
+++ b/content/content.h
@@ -225,6 +225,7 @@ content_type content_lookup(const char *mime_type);
struct content * content_create(const char *url);
struct content * content_get(const char *url);
struct content * content_get_ready(const char *url);
+bool content_get_reformat(struct content *c);
bool content_set_type(struct content *c, content_type type,
const char *mime_type, const char *params[]);
void content_set_status(struct content *c, const char *status_message, ...);