1 | /* |
---|
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. |
---|
5 | * |
---|
6 | * Copyright (C) 2000 Eazel, Inc. |
---|
7 | * All rights reserved. |
---|
8 | * |
---|
9 | * This file is part of the Gnome Library. |
---|
10 | * |
---|
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. |
---|
15 | * |
---|
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. |
---|
20 | * |
---|
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. |
---|
25 | */ |
---|
26 | |
---|
27 | #ifndef GNOME_VFS_MIME_SNIFF_BUFFER_PRIVATE_H |
---|
28 | #define GNOME_VFS_MIME_SNIFF_BUFFER_PRIVATE_H |
---|
29 | |
---|
30 | #include "gnome-vfs-mime-sniff-buffer.h" |
---|
31 | |
---|
32 | struct GnomeVFSMimeSniffBuffer { |
---|
33 | guchar *buffer; |
---|
34 | ssize_t buffer_length; |
---|
35 | gboolean read_whole_file; |
---|
36 | gboolean owning; |
---|
37 | |
---|
38 | GnomeVFSSniffBufferSeekCall seek; |
---|
39 | GnomeVFSSniffBufferReadCall read; |
---|
40 | gpointer context; |
---|
41 | }; |
---|
42 | |
---|
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); |
---|
46 | |
---|
47 | #endif |
---|