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

Revision 17128, 3.0 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17127, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
3/* gnome-vfs-mime-info.h
4 *
5 * Copyright (C) 1998 Miguel de Icaza
6 * Copyright (C) 2000 Eazel, Inc
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_INFO_H
25#define GNOME_VFS_MIME_INFO_H
26
27#include <libgnomevfs/gnome-vfs-result.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /*__cplusplus*/
32       
33        /* functions to freeze/thaw the internal hash tables to
34           avoid writing them back to disk everytime you modify
35           them through the _set_ functions */
36void             gnome_vfs_mime_freeze                          (void);
37void             gnome_vfs_mime_thaw                            (void);
38
39        /* forces a reload of the config files */
40void             gnome_vfs_mime_info_reload                     (void);
41
42
43gboolean         gnome_vfs_mime_type_is_known                   (const char *mime_type);
44
45        /* functions which access to the .keys files */
46const char      *gnome_vfs_mime_get_value                       (const char *mime_type,
47                                                                 const char *key);
48GnomeVFSResult   gnome_vfs_mime_set_value                       (const char *mime_type,
49                                                                 const char *key,
50                                                                 const char *value);
51GList           *gnome_vfs_mime_get_key_list                    (const char *mime_type);
52void             gnome_vfs_mime_keys_list_free                  (GList *mime_ype_list);
53
54        /* functions to access the .mime files */
55GList           *gnome_vfs_mime_get_extensions_list             (const char *mime_type);
56void             gnome_vfs_mime_extensions_list_free            (GList      *list);
57char            *gnome_vfs_mime_get_extensions_string           (const char *mime_type);
58char            *gnome_vfs_mime_get_extensions_pretty_string    (const char *mime_type);
59GList           *gnome_vfs_get_registered_mime_types            (void);
60void             gnome_vfs_mime_registered_mime_type_list_free  (GList      *list);
61GnomeVFSResult   gnome_vfs_mime_set_registered_type_key         (const char *mime_type,
62                                                                 const char *key,
63                                                                 const char *data);
64GnomeVFSResult   gnome_vfs_mime_set_extensions_list             (const char *mime_type,
65                                                                 const char *extension_list);
66void             gnome_vfs_mime_registered_mime_type_delete     (const char *mime_type);
67void             gnome_vfs_mime_reset                           (void);
68
69
70#ifdef __cplusplus
71}
72#endif /*__cplusplus*/
73
74#endif /* GNOME_VFS_MIME_INFO_H */
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Note: See TracBrowser for help on using the repository browser.