/** * mate_vfs_write: * @handle: handle of the file to write data to. * @buffer: pointer to the buffer containing the data to be written. * @bytes: number of bytes to write. * @bytes_written: pointer to a variable that will hold the number of bytes * effectively written on return. * * Write @bytes into the file opened through @handle. As with Unix system * calls, the number of bytes written can effectively be less than @bytes on * return and will be stored in @bytes_written. * * Return value: an integer representing the result of the operation. */ MateVFSResult mate_vfs_write (MateVFSHandle *handle, gconstpointer buffer, MateVFSFileSize bytes, MateVFSFileSize *bytes_written) { return mate_vfs_write_cancellable (handle, buffer, bytes, bytes_written, NULL); }
static MateVFSResult do_write (MateVFSMethod *method, MateVFSMethodHandle *method_handle, gconstpointer buffer, MateVFSFileSize num_bytes, MateVFSFileSize *bytes_written, MateVFSContext *context) { PERFORM_OPERATION_NO_URI (write, mate_vfs_write_cancellable((MateVFSHandle *) method_handle, buffer, num_bytes, bytes_written, context)); }