ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/gnome-vfs2-2.3.8-1.src.rpm
[gnome-vfs-httpcaptive.git] / libgnomevfs / gnome-vfs-mime-utils.h
1 /*
2  * Copyright (C) 1997-2001 Free Software Foundation
3  * Copyright (C) 2000, 2001 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_UTILS_H
25 #define GNOME_VFS_MIME_UTILS_H
26
27 #include <glib/gtypes.h>
28
29 G_BEGIN_DECLS
30
31 /**
32  * GNOME_VFS_MIME_TYPE_UNKNOWN:
33  *
34  * The value returned for the MIME type when a file did
35  * not match any entries in the MIME database. May be
36  * treated as a file of an unknown type.
37  **/
38 #define GNOME_VFS_MIME_TYPE_UNKNOWN "application/octet-stream"
39
40 const char  *gnome_vfs_get_mime_type_for_data (gconstpointer data,
41                                                int           data_size);
42
43 char        *gnome_vfs_get_mime_type           (const char  *text_uri);
44
45 G_END_DECLS
46
47 #endif