diff options
author | Fritz Elfert <felfert@to.com> | 2001-03-06 16:48:59 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-03-06 16:48:59 +0000 |
commit | 276db8fe7efa26e83310ecffddca044751fd4ab3 (patch) | |
tree | 1f03449c65ddc0f925ef82a4438344da39899778 /lib/rpcs.h | |
parent | 3c5877e3f7fcd101a9868e6da86f12b92b6d4896 (diff) | |
download | plptools-276db8fe7efa26e83310ecffddca044751fd4ab3.tar.gz plptools-276db8fe7efa26e83310ecffddca044751fd4ab3.tar.bz2 plptools-276db8fe7efa26e83310ecffddca044751fd4ab3.zip |
- Unified drive parameter of some methods:
rfsv::devinfo, rfsv::setVolumeName and rpcs::formatOpen now all take
the drive-letter as a single const char.
- Documented formatOPen() and formatRead().
Diffstat (limited to 'lib/rpcs.h')
-rw-r--r-- | lib/rpcs.h | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -228,8 +228,34 @@ public: Enum<rfsv::errs> stopProgram(const char *); Enum<rfsv::errs> queryProgram(const char *); - Enum<rfsv::errs> formatOpen(const char *, int &, int &); - Enum<rfsv::errs> formatRead(int); + + /** + * Starts formatting a drive. + * + * This function is working with both SIBO and EPOC + * devices. After calling formatOpen, formatRead should + * be called n times with the returned handle where n is + * the value of the returned parameter count. + * + * @param drive The drive character to format (e.g: 'C', 'D' etc). + * @param handle The handle for calling formatRead is returned here. + * @param count The number of required calls to formatRead is returned + * here. + * + * @returns A psion error code. 0 = Ok. + */ + Enum<rfsv::errs> formatOpen(const char drive, int &handle, int &count); + + /** + * Continues a running format. + * + * This function is working with both SIBO and EPOC + * devices. Call this function with the handle, returned by formatOpen. + * + * @returns A psion error code. 0 = Ok. + */ + Enum<rfsv::errs> formatRead(int handle); + Enum<rfsv::errs> getUniqueID(const char *, long &); /** |