diff options
author | Christian Persch <chpe@src.gnome.org> | 2009-02-15 13:51:19 (GMT) |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2009-02-15 13:51:19 (GMT) |
commit | 3997b15fc906d9ce0d7920f9f8e4af3b9404c4f0 (patch) | |
tree | cf53dd8d380e7f6b854e6853f4d52cc7cf88274a /libdocument/ev-file-helpers.c | |
parent | d7441e8909c29bef67cc4f9d07a104288ec2243e (diff) |
More docs.
svn path=/trunk/; revision=3436
Diffstat (limited to 'libdocument/ev-file-helpers.c')
-rw-r--r-- | libdocument/ev-file-helpers.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c index af96188..28f01b1 100644 --- a/libdocument/ev-file-helpers.c +++ b/libdocument/ev-file-helpers.c @@ -262,6 +262,18 @@ get_mime_type_from_data (const gchar *uri, GError **error) NULL); } +/** + * ev_file_get_mime_type: + * @uri: the URI + * @fast: whether to use fast MIME type detection + * @error: a #GError location to store an error, or %NULL + * + * Note: on unknown MIME types, this may return NULL without @error + * being filled in. + * + * Returns: a newly allocated string with the MIME type of the file at + * @uri, or %NULL on error or if the MIME type could not be determined + */ gchar * ev_file_get_mime_type (const gchar *uri, gboolean fast, |