Next: , Previous: MIME typing, Up: Top


14 gnome-vfs-mime-utils

14.1 Overview

14.2 Usage

— Function: gnome-vfs-mime-type-is-equal (mchars) (mchars) ⇒  (ret bool)

Compares two mime types to determine if they are equivalent. They are equivalent if and only if they refer to the same mime type.

a
a const char * containing a mime type, e.g. "image/png".
b
a const char * containing a mime type, e.g. "image/png".
ret
#t’, if a and b are equivalent mime types.
— Function: gnome-vfs-get-mime-type-for-name (filename mchars) ⇒  (ret mchars)

Determine the mime type for filename. The file filename may not exist, this function does not access the actual file. If the mime-type cannot be determined, ‘GNOME_VFS_MIME_TYPE_UNKNOWN’ is returned.

filename
a filename.
ret
the mime-type for this filename or ‘GNOME_VFS_MIME_TYPE_UNKNOWN’ if mime-type could not be determined.

Since 2.14

— Function: gnome-vfs-get-mime-type (text_uri mchars) ⇒  (ret mchars)

Determine the mime type of text-uri. The mime type is determined in the same way as by gnome-vfs-get-file-info. This is meant as a convenient function for times when you only want the mime type.

text-uri
path of the file for which to get the mime type.
ret
The mime type, or ‘#f’ if there is an error reading the file.
— Function: gnome-vfs-get-slow-mime-type (text_uri mchars) ⇒  (ret mchars)

Determine the mime type of text-uri. The mime type is determined in the same way as by gnome-vfs-get-file-info. This is meant as a convenience function for times when you only want the mime type.

text-uri
URI of the file for which to get the mime type
ret
The mime type, or NULL if there is an error reading the file.

Since 2.14