summaryrefslogtreecommitdiff
path: root/content/mimesniff.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/mimesniff.h')
-rw-r--r--content/mimesniff.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/content/mimesniff.h b/content/mimesniff.h
index bf3e493f3..faecab865 100644
--- a/content/mimesniff.h
+++ b/content/mimesniff.h
@@ -16,8 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/** \file
- * MIME type sniffer (interface)
+/**
+ * \file
+ * MIME type sniffer interface
*/
#ifndef NETSURF_CONTENT_MIMESNIFF_H_
@@ -31,10 +32,12 @@
struct llcache_handle;
/**
- * Compute the effective MIME type for an object using the sniffing
- * algorithm described in http://mimesniff.spec.whatwg.org/
+ * Compute the effective MIME type for an object
+ *
+ * The implementation uses the sniffing algorithm described in
+ * http://mimesniff.spec.whatwg.org/
*
- * \param handle Source data handle to sniff
+ * \param content_type_header Source content type header
* \param data First data chunk, or NULL
* \param len Length of \a data, in bytes
* \param sniff_allowed Whether MIME type sniffing is allowed
@@ -45,11 +48,8 @@ struct llcache_handle;
* NSERROR_NOT_FOUND if sniffing is prohibited and no
* Content-Type header was found
*/
-nserror mimesniff_compute_effective_type(struct llcache_handle *handle,
+nserror mimesniff_compute_effective_type(const char *content_type_header,
const uint8_t *data, size_t len, bool sniff_allowed,
bool image_only, lwc_string **effective_type);
-nserror mimesniff_init(void);
-void mimesniff_fini(void);
-
#endif