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 |
---|
3 | Virtual File System. |
---|
4 | |
---|
5 | Copyright (C) 1999 Free Software Foundation |
---|
6 | |
---|
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. |
---|
11 | |
---|
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. |
---|
16 | |
---|
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. |
---|
21 | |
---|
22 | Author: Ettore Perazzoli <ettore@gnu.org> */ |
---|
23 | |
---|
24 | #ifndef GNOME_VFS_CANCELLABLE_OPS_H |
---|
25 | #define GNOME_VFS_CANCELLABLE_OPS_H |
---|
26 | |
---|
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> |
---|
31 | |
---|
32 | GnomeVFSResult gnome_vfs_open_uri_cancellable |
---|
33 | (GnomeVFSHandle **handle, |
---|
34 | GnomeVFSURI *uri, |
---|
35 | GnomeVFSOpenMode open_mode, |
---|
36 | GnomeVFSContext *context); |
---|
37 | |
---|
38 | GnomeVFSResult gnome_vfs_create_uri_cancellable |
---|
39 | (GnomeVFSHandle **handle, |
---|
40 | GnomeVFSURI *uri, |
---|
41 | GnomeVFSOpenMode open_mode, |
---|
42 | gboolean exclusive, |
---|
43 | guint perm, |
---|
44 | GnomeVFSContext *context); |
---|
45 | |
---|
46 | GnomeVFSResult gnome_vfs_close_cancellable |
---|
47 | (GnomeVFSHandle *handle, |
---|
48 | GnomeVFSContext *context); |
---|
49 | |
---|
50 | GnomeVFSResult gnome_vfs_read_cancellable |
---|
51 | (GnomeVFSHandle *handle, |
---|
52 | gpointer buffer, |
---|
53 | GnomeVFSFileSize bytes, |
---|
54 | GnomeVFSFileSize *bytes_written, |
---|
55 | GnomeVFSContext *context); |
---|
56 | |
---|
57 | GnomeVFSResult gnome_vfs_write_cancellable |
---|
58 | (GnomeVFSHandle *handle, |
---|
59 | gconstpointer buffer, |
---|
60 | GnomeVFSFileSize bytes, |
---|
61 | GnomeVFSFileSize *bytes_written, |
---|
62 | GnomeVFSContext *context); |
---|
63 | |
---|
64 | GnomeVFSResult gnome_vfs_seek_cancellable |
---|
65 | (GnomeVFSHandle *handle, |
---|
66 | GnomeVFSSeekPosition whence, |
---|
67 | GnomeVFSFileOffset offset, |
---|
68 | GnomeVFSContext *context); |
---|
69 | |
---|
70 | GnomeVFSResult gnome_vfs_get_file_info_uri_cancellable |
---|
71 | (GnomeVFSURI *uri, |
---|
72 | GnomeVFSFileInfo *info, |
---|
73 | GnomeVFSFileInfoOptions options, |
---|
74 | GnomeVFSContext *context); |
---|
75 | |
---|
76 | GnomeVFSResult gnome_vfs_get_file_info_from_handle_cancellable |
---|
77 | (GnomeVFSHandle *handle, |
---|
78 | GnomeVFSFileInfo *info, |
---|
79 | GnomeVFSFileInfoOptions options, |
---|
80 | GnomeVFSContext *context); |
---|
81 | |
---|
82 | GnomeVFSResult gnome_vfs_truncate_uri_cancellable (GnomeVFSURI *uri, |
---|
83 | GnomeVFSFileSize length, |
---|
84 | GnomeVFSContext *context); |
---|
85 | |
---|
86 | GnomeVFSResult gnome_vfs_truncate_handle_cancellable (GnomeVFSHandle *handle, |
---|
87 | GnomeVFSFileSize length, |
---|
88 | GnomeVFSContext *context); |
---|
89 | |
---|
90 | GnomeVFSResult gnome_vfs_make_directory_for_uri_cancellable |
---|
91 | (GnomeVFSURI *uri, |
---|
92 | guint perm, |
---|
93 | GnomeVFSContext *context); |
---|
94 | |
---|
95 | GnomeVFSResult gnome_vfs_find_directory_cancellable (GnomeVFSURI *near_uri, |
---|
96 | GnomeVFSFindDirectoryKind kind, |
---|
97 | GnomeVFSURI **result_uri, |
---|
98 | gboolean create_if_needed, |
---|
99 | gboolean find_if_needed, |
---|
100 | guint permissions, |
---|
101 | GnomeVFSContext *context); |
---|
102 | |
---|
103 | GnomeVFSResult gnome_vfs_remove_directory_from_uri_cancellable |
---|
104 | (GnomeVFSURI *uri, |
---|
105 | GnomeVFSContext *context); |
---|
106 | |
---|
107 | GnomeVFSResult gnome_vfs_unlink_from_uri_cancellable |
---|
108 | (GnomeVFSURI *uri, |
---|
109 | GnomeVFSContext *context); |
---|
110 | GnomeVFSResult gnome_vfs_create_symbolic_link_cancellable |
---|
111 | (GnomeVFSURI *uri, |
---|
112 | const gchar *target_reference, |
---|
113 | GnomeVFSContext *context); |
---|
114 | GnomeVFSResult gnome_vfs_move_uri_cancellable |
---|
115 | (GnomeVFSURI *old, |
---|
116 | GnomeVFSURI *new, |
---|
117 | gboolean force_replace, |
---|
118 | GnomeVFSContext *context); |
---|
119 | |
---|
120 | GnomeVFSResult gnome_vfs_check_same_fs_uris_cancellable |
---|
121 | (GnomeVFSURI *a, |
---|
122 | GnomeVFSURI *b, |
---|
123 | gboolean *same_fs_return, |
---|
124 | GnomeVFSContext *context); |
---|
125 | |
---|
126 | GnomeVFSResult gnome_vfs_set_file_info_cancellable |
---|
127 | (GnomeVFSURI *a, |
---|
128 | const GnomeVFSFileInfo *info, |
---|
129 | GnomeVFSSetFileInfoMask mask, |
---|
130 | GnomeVFSContext *context); |
---|
131 | |
---|
132 | GnomeVFSResult gnome_vfs_xfer_private (const GList *source_uri_list, |
---|
133 | const GList *target_uri_list, |
---|
134 | GnomeVFSXferOptions xfer_options, |
---|
135 | GnomeVFSXferErrorMode error_mode, |
---|
136 | GnomeVFSXferOverwriteMode overwrite_mode, |
---|
137 | GnomeVFSXferProgressCallback progress_callback, |
---|
138 | gpointer data, |
---|
139 | GnomeVFSXferProgressCallback sync_progress_callback, |
---|
140 | gpointer sync_progress_data); |
---|
141 | |
---|
142 | GnomeVFSResult gnome_vfs_directory_read_next_cancellable |
---|
143 | (GnomeVFSDirectoryHandle *handle, |
---|
144 | GnomeVFSFileInfo *info, |
---|
145 | GnomeVFSContext *context); |
---|
146 | |
---|
147 | GnomeVFSResult gnome_vfs_directory_open_from_uri_cancellable |
---|
148 | (GnomeVFSDirectoryHandle **handle, |
---|
149 | GnomeVFSURI *uri, |
---|
150 | GnomeVFSFileInfoOptions options, |
---|
151 | const GnomeVFSDirectoryFilter *filter, |
---|
152 | GnomeVFSContext *context); |
---|
153 | |
---|
154 | #endif /* GNOME_VFS_CANCELLABLE_OPS_H */ |
---|