/** * mate_vfs_seek: * @handle: handle for which the current position must be changed. * @whence: integer value representing the starting position. * @offset: number of bytes to skip from the position specified by @whence. * (a positive value means to move forward; a negative one to move backwards). * * Set the current position for reading/writing through @handle. * * Return value: an integer representing the result of the operation. */ MateVFSResult mate_vfs_seek (MateVFSHandle *handle, MateVFSSeekPosition whence, MateVFSFileOffset offset) { return mate_vfs_seek_cancellable (handle, whence, offset, NULL); }
static MateVFSResult do_seek (MateVFSMethod *method, MateVFSMethodHandle *method_handle, MateVFSSeekPosition whence, MateVFSFileOffset offset, MateVFSContext *context) { PERFORM_OPERATION_NO_URI (seek, mate_vfs_seek_cancellable ((MateVFSHandle *) method_handle, whence, offset, context)); }