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-handle-private.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* gnome-vfs-handle-private.h - Handle object functions for GNOME VFS files.
3
4    Copyright (C) 2002 Seth Nickell
5
6    The Gnome Library is free software; you can redistribute it and/or
7    modify it under the terms of the GNU Library General Public License as
8    published by the Free Software Foundation; either version 2 of the
9    License, or (at your option) any later version.
10
11    The Gnome Library is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Library General Public License for more details.
15
16    You should have received a copy of the GNU Library General Public
17    License along with the Gnome Library; see the file COPYING.LIB.  If not,
18    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19    Boston, MA 02111-1307, USA.
20
21    Author: Seth Nickell <snickell@stanford.edu>
22 */
23
24 #ifndef GNOME_VFS_HANDLE_PRIVATE_H
25 #define GNOME_VFS_HANDLE_PRIVATE_H
26
27 G_BEGIN_DECLS
28
29 GnomeVFSHandle * _gnome_vfs_handle_new                (GnomeVFSURI             *uri,
30                                                       GnomeVFSMethodHandle    *method_handle,
31                                                       GnomeVFSOpenMode         open_mode);
32 void             _gnome_vfs_handle_destroy            (GnomeVFSHandle          *handle);
33 GnomeVFSOpenMode _gnome_vfs_handle_get_open_mode      (GnomeVFSHandle          *handle);
34 GnomeVFSResult   _gnome_vfs_handle_do_close           (GnomeVFSHandle          *handle,
35                                                       GnomeVFSContext         *context);
36 GnomeVFSResult   _gnome_vfs_handle_do_read            (GnomeVFSHandle          *handle,
37                                                       gpointer                 buffer,
38                                                       GnomeVFSFileSize         num_bytes,
39                                                       GnomeVFSFileSize        *bytes_read,
40                                                       GnomeVFSContext         *context);
41 GnomeVFSResult   _gnome_vfs_handle_do_write           (GnomeVFSHandle          *handle,
42                                                       gconstpointer            buffer,
43                                                       GnomeVFSFileSize         num_bytes,
44                                                       GnomeVFSFileSize        *bytes_written,
45                                                       GnomeVFSContext         *context);
46 GnomeVFSResult   __gnome_vfs_handle_do_close_directory (GnomeVFSHandle          *handle,
47                                                       GnomeVFSContext         *context);
48 GnomeVFSResult   __gnome_vfs_handle_do_read_directory  (GnomeVFSHandle          *handle,
49                                                       GnomeVFSFileInfo        *file_info,
50                                                       GnomeVFSContext         *context);
51 GnomeVFSResult   _gnome_vfs_handle_do_seek            (GnomeVFSHandle          *handle,
52                                                       GnomeVFSSeekPosition     whence,
53                                                       GnomeVFSFileSize         offset,
54                                                       GnomeVFSContext         *context);
55 GnomeVFSResult   _gnome_vfs_handle_do_tell            (GnomeVFSHandle          *handle,
56                                                       GnomeVFSFileSize        *offset_return);
57 GnomeVFSResult   _gnome_vfs_handle_do_get_file_info   (GnomeVFSHandle          *handle,
58                                                       GnomeVFSFileInfo        *info,
59                                                       GnomeVFSFileInfoOptions  options,
60                                                       GnomeVFSContext         *context);
61 GnomeVFSResult   _gnome_vfs_handle_do_truncate        (GnomeVFSHandle          *handle,
62                                                       GnomeVFSFileSize         length,
63                                                       GnomeVFSContext         *context);
64 GnomeVFSResult   _gnome_vfs_handle_do_file_control    (GnomeVFSHandle          *handle,
65                                                       const char              *operation,
66                                                       gpointer                 operation_data,
67                                                       GnomeVFSContext         *context);
68
69 G_END_DECLS
70
71 #endif