2 * gnome-vfs-mime-sniff-buffer-private.h
3 * Utility for implementing gnome_vfs_mime_type_from_magic, and other
4 * mime-type sniffing calls.
6 * Copyright (C) 2000 Eazel, Inc.
9 * This file is part of the Gnome Library.
11 * The Gnome Library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Library General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * The Gnome Library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Library General Public License for more details.
21 * You should have received a copy of the GNU Library General Public
22 * License along with the Gnome Library; see the file COPYING.LIB. If not,
23 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 * Boston, MA 02111-1307, USA.
27 #ifndef GNOME_VFS_MIME_SNIFF_BUFFER_PRIVATE_H
28 #define GNOME_VFS_MIME_SNIFF_BUFFER_PRIVATE_H
30 #include <libgnomevfs/gnome-vfs-mime-sniff-buffer.h>
32 struct GnomeVFSMimeSniffBuffer {
35 gboolean read_whole_file;
38 GnomeVFSSniffBufferSeekCall seek;
39 GnomeVFSSniffBufferReadCall read;
43 const char *_gnome_vfs_get_mime_type_internal (GnomeVFSMimeSniffBuffer *buffer,
44 const char *file_name);
45 const char *_gnome_vfs_mime_get_type_from_magic_table (GnomeVFSMimeSniffBuffer *buffer);