source: trunk/third/gnome-vfs/libgnomevfs/gnome-vfs-mime.h @ 15497

Revision 15497, 2.3 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15496, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
3 * Copyright (C) 2000 Eazel, Inc.
4 * All rights reserved.
5 *
6 * This file is part of the Gnome Library.
7 *
8 * The Gnome Library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
12 *
13 * The Gnome Library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with the Gnome Library; see the file COPYING.LIB.  If not,
20 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
22 */
23
24#ifndef __GNOME_VFS_MIME_H__
25#define __GNOME_VFS_MIME_H__
26
27#include <glib.h>
28
29#include "gnome-vfs-types.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif /*__cplusplus*/
34
35void         gnome_vfs_mime_shutdown                            (void);
36
37/* do not free any of the returned gchar* values */
38const char  *gnome_vfs_mime_type_from_name                      (const gchar* filename);
39const char  *gnome_vfs_mime_type_from_name_or_default   (const gchar *filename,
40                                                                 const gchar *defaultv);
41
42const char  *gnome_vfs_get_mime_type                            (GnomeVFSURI *uri);
43const char  *gnome_vfs_get_mime_type_from_uri                   (GnomeVFSURI *uri);
44const char  *gnome_vfs_get_mime_type_from_file_data             (GnomeVFSURI *uri);
45const char  *gnome_vfs_get_mime_type_for_data                   (gconstpointer data,
46                                                                 int data_size);
47const char  *gnome_vfs_get_file_mime_type                       (const char *path,
48                                                                 const struct stat *optional_stat_info,
49                                                                 gboolean suffix_only);
50/* functions for working with uri lists */
51GList       *gnome_uri_list_extract_filenames                   (const gchar* uri_list);
52GList       *gnome_uri_list_extract_uris                        (const gchar* uri_list);
53void         gnome_uri_list_free_strings                        (GList *list);
54
55/* utility function for getting a filename only from a single uri */
56gchar       *gnome_uri_extract_filename                         (const gchar* uri);
57
58#ifdef __cplusplus
59}
60#endif /*__cplusplus*/
61
62#endif
63
Note: See TracBrowser for help on using the repository browser.