1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* gnome-vfs-private-ops.h - Private synchronous operations for the GNOME
5 Copyright (C) 1999 Free Software Foundation
7 The Gnome Library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version.
12 The Gnome Library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public
18 License along with the Gnome Library; see the file COPYING.LIB. If not,
19 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Author: Ettore Perazzoli <ettore@gnu.org> */
24 #ifndef GNOME_VFS_CANCELLABLE_OPS_H
25 #define GNOME_VFS_CANCELLABLE_OPS_H
27 #include <libgnomevfs/gnome-vfs-directory.h>
28 #include <libgnomevfs/gnome-vfs-find-directory.h>
29 #include <libgnomevfs/gnome-vfs-handle.h>
30 #include <libgnomevfs/gnome-vfs-xfer.h>
34 GnomeVFSResult gnome_vfs_open_uri_cancellable
35 (GnomeVFSHandle **handle,
37 GnomeVFSOpenMode open_mode,
38 GnomeVFSContext *context);
40 GnomeVFSResult gnome_vfs_create_uri_cancellable
41 (GnomeVFSHandle **handle,
43 GnomeVFSOpenMode open_mode,
46 GnomeVFSContext *context);
48 GnomeVFSResult gnome_vfs_close_cancellable
49 (GnomeVFSHandle *handle,
50 GnomeVFSContext *context);
52 GnomeVFSResult gnome_vfs_read_cancellable
53 (GnomeVFSHandle *handle,
55 GnomeVFSFileSize bytes,
56 GnomeVFSFileSize *bytes_written,
57 GnomeVFSContext *context);
59 GnomeVFSResult gnome_vfs_write_cancellable
60 (GnomeVFSHandle *handle,
62 GnomeVFSFileSize bytes,
63 GnomeVFSFileSize *bytes_written,
64 GnomeVFSContext *context);
66 GnomeVFSResult gnome_vfs_seek_cancellable
67 (GnomeVFSHandle *handle,
68 GnomeVFSSeekPosition whence,
69 GnomeVFSFileOffset offset,
70 GnomeVFSContext *context);
72 GnomeVFSResult gnome_vfs_get_file_info_uri_cancellable
74 GnomeVFSFileInfo *info,
75 GnomeVFSFileInfoOptions options,
76 GnomeVFSContext *context);
78 GnomeVFSResult gnome_vfs_get_file_info_from_handle_cancellable
79 (GnomeVFSHandle *handle,
80 GnomeVFSFileInfo *info,
81 GnomeVFSFileInfoOptions options,
82 GnomeVFSContext *context);
84 GnomeVFSResult gnome_vfs_truncate_uri_cancellable (GnomeVFSURI *uri,
85 GnomeVFSFileSize length,
86 GnomeVFSContext *context);
88 GnomeVFSResult gnome_vfs_truncate_handle_cancellable (GnomeVFSHandle *handle,
89 GnomeVFSFileSize length,
90 GnomeVFSContext *context);
92 GnomeVFSResult gnome_vfs_make_directory_for_uri_cancellable
95 GnomeVFSContext *context);
97 GnomeVFSResult gnome_vfs_find_directory_cancellable (GnomeVFSURI *near_uri,
98 GnomeVFSFindDirectoryKind kind,
99 GnomeVFSURI **result_uri,
100 gboolean create_if_needed,
101 gboolean find_if_needed,
103 GnomeVFSContext *context);
105 GnomeVFSResult gnome_vfs_remove_directory_from_uri_cancellable
107 GnomeVFSContext *context);
109 GnomeVFSResult gnome_vfs_unlink_from_uri_cancellable
111 GnomeVFSContext *context);
112 GnomeVFSResult gnome_vfs_create_symbolic_link_cancellable
114 const gchar *target_reference,
115 GnomeVFSContext *context);
116 GnomeVFSResult gnome_vfs_move_uri_cancellable
119 gboolean force_replace,
120 GnomeVFSContext *context);
122 GnomeVFSResult gnome_vfs_check_same_fs_uris_cancellable
125 gboolean *same_fs_return,
126 GnomeVFSContext *context);
128 GnomeVFSResult gnome_vfs_set_file_info_cancellable
130 const GnomeVFSFileInfo *info,
131 GnomeVFSSetFileInfoMask mask,
132 GnomeVFSContext *context);
134 GnomeVFSResult _gnome_vfs_xfer_private (const GList *source_uri_list,
135 const GList *target_uri_list,
136 GnomeVFSXferOptions xfer_options,
137 GnomeVFSXferErrorMode error_mode,
138 GnomeVFSXferOverwriteMode overwrite_mode,
139 GnomeVFSXferProgressCallback progress_callback,
141 GnomeVFSXferProgressCallback sync_progress_callback,
142 gpointer sync_progress_data);
144 GnomeVFSResult gnome_vfs_directory_read_next_cancellable
145 (GnomeVFSDirectoryHandle *handle,
146 GnomeVFSFileInfo *info,
147 GnomeVFSContext *context);
149 GnomeVFSResult gnome_vfs_directory_open_from_uri_cancellable
150 (GnomeVFSDirectoryHandle **handle,
152 GnomeVFSFileInfoOptions options,
153 GnomeVFSContext *context);
155 GnomeVFSResult gnome_vfs_file_control_cancellable
156 (GnomeVFSHandle *handle,
157 const char *operation,
158 gpointer operation_data,
159 GnomeVFSContext *context);
163 #endif /* GNOME_VFS_CANCELLABLE_OPS_H */