| GnomeVFS - Filesystem Abstraction library |
|---|
gnome-vfs-module-shared —
constgchar * gnome_vfs_mime_type_from_mode (mode_t mode); void gnome_vfs_stat_to_file_info (GnomeVFSFileInfo *file_info, const structstat *statptr); 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, constGList *meta_keys); const char* gnome_vfs_get_special_mime_type (GnomeVFSURI *uri);
constgchar * gnome_vfs_mime_type_from_mode (mode_t mode);
Returns a MIME type based on the mode passed. It only works when mode references a special file (directory, device, fifo, socket or symlink)
Returns: a string containing the MIME type, if mode is a normal file
| mode : | |
| Returns : | NULL. |
void gnome_vfs_stat_to_file_info (GnomeVFSFileInfo *file_info, const structstat *statptr);
| file_info : | |
| statptr : |
GnomeVFSResult gnome_vfs_set_meta (GnomeVFSFileInfo *info, const char *file_name, const char *meta_key);
| info : | |
| file_name : | |
| meta_key : | |
| Returns : |
GnomeVFSResult gnome_vfs_set_meta_for_list (GnomeVFSFileInfo *info, const char *file_name, constGList *meta_keys);
| info : | |
| file_name : | |
| meta_keys : | |
| Returns : |
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).
| uri : | |
| Returns : | a string containing the mime type, NULL if the uri doesn't present an special file. |
| << gnome-vfs-module | gnome-vfs-module-callback-module-api >> |