~ubuntu-branches/ubuntu/warty/gnome-vfs2/warty

« back to all changes in this revision

Viewing changes to libgnomevfs/gnome-vfs-handle.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2004-10-11 16:04:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011160446-lc0ervct24rylahc
Tags: 2.8.2-0ubuntu1
* New upstream release:
  - performance increase in gnome-vfs-volume-monitor.
  - make folders open with components, to make run-dialog work for folders.
  - add support for additional headers to http backend (Warty: #2163).
  - default to the workgroup specified in smb.conf for network://.
* debian/patches/13_ssl_crash.patch:
  - removed, these changes are in the new version.
* debian/patches/14_default-workgroup.patch:
  - removed, these changes are in the new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <config.h>
25
25
#include "gnome-vfs-handle.h"
 
26
#include "gnome-vfs-handle-private.h"
26
27
#include "gnome-vfs-method.h"
27
28
 
28
29
#include <glib/gmessages.h>
67
68
 
68
69
 
69
70
GnomeVFSHandle *
70
 
gnome_vfs_handle_new (GnomeVFSURI *uri,
 
71
_gnome_vfs_handle_new (GnomeVFSURI *uri,
71
72
                      GnomeVFSMethodHandle *method_handle,
72
73
                      GnomeVFSOpenMode open_mode)
73
74
{
86
87
}
87
88
 
88
89
void
89
 
gnome_vfs_handle_destroy (GnomeVFSHandle *handle)
 
90
_gnome_vfs_handle_destroy (GnomeVFSHandle *handle)
90
91
{
91
92
        g_return_if_fail (handle != NULL);
92
93
 
97
98
 
98
99
 
99
100
GnomeVFSOpenMode
100
 
gnome_vfs_handle_get_open_mode (GnomeVFSHandle *handle)
 
101
_gnome_vfs_handle_get_open_mode (GnomeVFSHandle *handle)
101
102
{
102
103
        g_return_val_if_fail (handle != NULL, (GnomeVFSOpenMode) 0);
103
104
 
108
109
/* Actions.  */
109
110
 
110
111
GnomeVFSResult
111
 
gnome_vfs_handle_do_close (GnomeVFSHandle *handle,
 
112
_gnome_vfs_handle_do_close (GnomeVFSHandle *handle,
112
113
                           GnomeVFSContext *context)
113
114
{
114
115
        GnomeVFSResult result;
116
117
        INVOKE (result, handle, close, (handle->uri->method, handle->method_handle, context));
117
118
 
118
119
        /* Even if close has failed, we shut down the handle. */
119
 
        gnome_vfs_handle_destroy (handle);
 
120
        _gnome_vfs_handle_destroy (handle);
120
121
 
121
122
        return result;
122
123
}
123
124
 
124
125
GnomeVFSResult
125
 
gnome_vfs_handle_do_read (GnomeVFSHandle *handle,
 
126
_gnome_vfs_handle_do_read (GnomeVFSHandle *handle,
126
127
                          gpointer buffer,
127
128
                          GnomeVFSFileSize num_bytes,
128
129
                          GnomeVFSFileSize *bytes_read,
134
135
}
135
136
 
136
137
GnomeVFSResult
137
 
gnome_vfs_handle_do_write (GnomeVFSHandle *handle,
 
138
_gnome_vfs_handle_do_write (GnomeVFSHandle *handle,
138
139
                           gconstpointer buffer,
139
140
                           GnomeVFSFileSize num_bytes,
140
141
                           GnomeVFSFileSize *bytes_written,
147
148
 
148
149
 
149
150
GnomeVFSResult
150
 
gnome_vfs_handle_do_seek (GnomeVFSHandle *handle,
 
151
_gnome_vfs_handle_do_seek (GnomeVFSHandle *handle,
151
152
                          GnomeVFSSeekPosition whence,
152
153
                          GnomeVFSFileSize offset,
153
154
                          GnomeVFSContext *context)
157
158
}
158
159
 
159
160
GnomeVFSResult
160
 
gnome_vfs_handle_do_tell (GnomeVFSHandle *handle,
 
161
_gnome_vfs_handle_do_tell (GnomeVFSHandle *handle,
161
162
                          GnomeVFSFileSize *offset_return)
162
163
{
163
164
        INVOKE_AND_RETURN (handle, tell, (handle->uri->method, handle->method_handle,
166
167
 
167
168
 
168
169
GnomeVFSResult
169
 
gnome_vfs_handle_do_get_file_info (GnomeVFSHandle *handle,
 
170
_gnome_vfs_handle_do_get_file_info (GnomeVFSHandle *handle,
170
171
                                   GnomeVFSFileInfo *info,
171
172
                                   GnomeVFSFileInfoOptions options,
172
173
                                   GnomeVFSContext *context)
176
177
                            context));
177
178
}
178
179
 
179
 
GnomeVFSResult gnome_vfs_handle_do_truncate     (GnomeVFSHandle *handle,
 
180
GnomeVFSResult _gnome_vfs_handle_do_truncate     (GnomeVFSHandle *handle,
180
181
                                                 GnomeVFSFileSize length,
181
182
                                                 GnomeVFSContext *context)
182
183
{
183
184
        INVOKE_AND_RETURN (handle, truncate_handle, (handle->uri->method, handle->method_handle, length, context));
184
185
}
 
186
 
 
187
GnomeVFSResult
 
188
_gnome_vfs_handle_do_file_control  (GnomeVFSHandle          *handle,
 
189
                                   const char              *operation,
 
190
                                   gpointer                 operation_data,
 
191
                                   GnomeVFSContext         *context)
 
192
{
 
193
        INVOKE_AND_RETURN (handle, file_control, (handle->uri->method, handle->method_handle, operation, operation_data, context));
 
194
}