aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rpcs.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2001-03-06 16:48:59 +0000
committerFritz Elfert <felfert@to.com>2001-03-06 16:48:59 +0000
commit276db8fe7efa26e83310ecffddca044751fd4ab3 (patch)
tree1f03449c65ddc0f925ef82a4438344da39899778 /lib/rpcs.h
parent3c5877e3f7fcd101a9868e6da86f12b92b6d4896 (diff)
downloadplptools-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.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/lib/rpcs.h b/lib/rpcs.h
index 68eb3d5..b2fb09d 100644
--- a/lib/rpcs.h
+++ b/lib/rpcs.h
@@ -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 &);
/**