aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-24 10:16:16 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-24 10:16:16 +0000
commitcefe2399587e7d7656188a570546ee848ee1fcfc (patch)
treecb4bf083367def821685b3dbf320ec5974c76c3e /include
parent29e6f140fa094e15c001d4b58c8aa2c5877fbeb1 (diff)
downloadlibssh-cefe2399587e7d7656188a570546ee848ee1fcfc.tar.gz
libssh-cefe2399587e7d7656188a570546ee848ee1fcfc.tar.xz
libssh-cefe2399587e7d7656188a570546ee848ee1fcfc.zip
Improve the sftp seek functions.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@605 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include')
-rw-r--r--include/libssh/sftp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h
index 37b45a90..c7e6a7c1 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -443,8 +443,10 @@ ssize_t sftp_write(SFTP_FILE *file, const void *buf, size_t count);
* @param file Open sftp file handle to seek in.
*
* @param new_offset Offset in bytes to seek.
+ *
+ * @return 0 on success, < 0 on error.
*/
-void sftp_seek(SFTP_FILE *file, int new_offset);
+int sftp_seek(SFTP_FILE *file, u32 new_offset);
/**
* @brief Seek to a specific location in a file. This is the
@@ -453,8 +455,10 @@ void sftp_seek(SFTP_FILE *file, int new_offset);
* @param file Open sftp file handle to seek in.
*
* @param new_offset Offset in bytes to seek.
+ *
+ * @return 0 on success, < 0 on error.
*/
-void sftp_seek64(SFTP_FILE *file, u64 new_offset);
+int sftp_seek64(SFTP_FILE *file, u64 new_offset);
/**
* @brief Report current byte position in file.