1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* gnome-vfs-handle.h - Handle object for GNOME VFS files. |
---|
3 | |
---|
4 | Copyright (C) 1999 Free Software Foundation |
---|
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: Ettore Perazzoli <ettore@comm2000.it> |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef GNOME_VFS_HANDLE_H |
---|
25 | #define GNOME_VFS_HANDLE_H |
---|
26 | |
---|
27 | #include <libgnomevfs/gnome-vfs-method.h> |
---|
28 | |
---|
29 | typedef struct GnomeVFSHandle GnomeVFSHandle; |
---|
30 | |
---|
31 | GnomeVFSHandle * gnome_vfs_handle_new (GnomeVFSURI *uri, |
---|
32 | GnomeVFSMethodHandle *method_handle, |
---|
33 | GnomeVFSOpenMode open_mode); |
---|
34 | void gnome_vfs_handle_destroy (GnomeVFSHandle *handle); |
---|
35 | GnomeVFSOpenMode gnome_vfs_handle_get_open_mode (GnomeVFSHandle *handle); |
---|
36 | GnomeVFSResult gnome_vfs_handle_do_close (GnomeVFSHandle *handle, |
---|
37 | GnomeVFSContext *context); |
---|
38 | GnomeVFSResult gnome_vfs_handle_do_read (GnomeVFSHandle *handle, |
---|
39 | gpointer buffer, |
---|
40 | GnomeVFSFileSize num_bytes, |
---|
41 | GnomeVFSFileSize *bytes_read, |
---|
42 | GnomeVFSContext *context); |
---|
43 | GnomeVFSResult gnome_vfs_handle_do_write (GnomeVFSHandle *handle, |
---|
44 | gconstpointer buffer, |
---|
45 | GnomeVFSFileSize num_bytes, |
---|
46 | GnomeVFSFileSize *bytes_written, |
---|
47 | GnomeVFSContext *context); |
---|
48 | GnomeVFSResult gnome_vfs_handle_do_close_directory (GnomeVFSHandle *handle, |
---|
49 | GnomeVFSContext *context); |
---|
50 | GnomeVFSResult gnome_vfs_handle_do_read_directory (GnomeVFSHandle *handle, |
---|
51 | GnomeVFSFileInfo *file_info, |
---|
52 | GnomeVFSContext *context); |
---|
53 | GnomeVFSResult gnome_vfs_handle_do_seek (GnomeVFSHandle *handle, |
---|
54 | GnomeVFSSeekPosition whence, |
---|
55 | GnomeVFSFileSize offset, |
---|
56 | GnomeVFSContext *context); |
---|
57 | GnomeVFSResult gnome_vfs_handle_do_tell (GnomeVFSHandle *handle, |
---|
58 | GnomeVFSFileSize *offset_return); |
---|
59 | GnomeVFSResult gnome_vfs_handle_do_get_file_info (GnomeVFSHandle *handle, |
---|
60 | GnomeVFSFileInfo *info, |
---|
61 | GnomeVFSFileInfoOptions options, |
---|
62 | GnomeVFSContext *context); |
---|
63 | GnomeVFSResult gnome_vfs_handle_do_truncate (GnomeVFSHandle *handle, |
---|
64 | GnomeVFSFileSize length, |
---|
65 | GnomeVFSContext *context); |
---|
66 | |
---|
67 | #endif /* GNOME_VFS_HANDLE_H */ |
---|