| Top |
| const char * | gnome_vfs_mime_type_from_mode () |
| const char * | gnome_vfs_mime_type_from_mode_or_default () |
| void | gnome_vfs_stat_to_file_info () |
| GnomeVFSResult | gnome_vfs_set_meta () |
| GnomeVFSResult | gnome_vfs_set_meta_for_list () |
| const char * | gnome_vfs_get_special_mime_type () |
const char *
gnome_vfs_mime_type_from_mode (mode_t mode);
Returns a MIME type based on the mode
if it
references a special file (directory, device, fifo, socket or symlink).
This function works like gnome_vfs_mime_type_from_mode_or_default(), except
that it returns NULL where gnome_vfs_mime_type_from_mode_or_default()
would return a fallback MIME type.
const char * gnome_vfs_mime_type_from_mode_or_default (mode_t mode,const char *defaultv);
Returns a MIME type based on the mode
if it
references a special file (directory, device, fifo, socket or symlink).
This function works like gnome_vfs_mime_type_from_mode() except that
it returns defaultv
instead of NULL.
void gnome_vfs_stat_to_file_info (GnomeVFSFileInfo *file_info,const struct stat *statptr);
Fills the file_info
structure with the values from statptr
structure.
file_info |
a GnomeVFSFileInfo which will be filled. |
|
statptr |
pointer to a 'stat' structure. |
GnomeVFSResult gnome_vfs_set_meta (GnomeVFSFileInfo *info,const char *file_name,const char *meta_key);
GnomeVFSResult gnome_vfs_set_meta_for_list (GnomeVFSFileInfo *info,const char *file_name,const GList *meta_keys);
const char *
gnome_vfs_get_special_mime_type (GnomeVFSURI *uri);
Gets the MIME type for uri
, this function only returns the type
when the uri points to a file that can't be sniffed (sockets,
directories, devices, and fifos).