projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
submerging the diagnostic noise again.
[feisty_meow.git]
/
nucleus
/
library
/
filesystem
/
heavy_file_ops.h
diff --git
a/nucleus/library/filesystem/heavy_file_ops.h
b/nucleus/library/filesystem/heavy_file_ops.h
index add4968375f4545bf6d259087eb346c2a2ac930e..debb57732a7c41b49d9786e44dc836e2af7ee3cc 100644
(file)
--- a/
nucleus/library/filesystem/heavy_file_ops.h
+++ b/
nucleus/library/filesystem/heavy_file_ops.h
@@
-30,6
+30,7
@@
class file_transfer_header : public basis::packable
{
public:
basis::astring _filename; //!< the name of the file being transferred.
{
public:
basis::astring _filename; //!< the name of the file being transferred.
+//hmmm: consider adding full length here so we know it.
double _byte_start; //!< the starting location in the file being sent.
int _length; //!< the length of the transferred piece.
file_time _time; //!< the timestamp on the file.
double _byte_start; //!< the starting location in the file being sent.
int _length; //!< the length of the transferred piece.
file_time _time; //!< the timestamp on the file.
@@
-63,10
+64,7
@@
public:
enum outcomes {
OKAY = basis::common::OKAY,
BAD_INPUT = basis::common::BAD_INPUT,
enum outcomes {
OKAY = basis::common::OKAY,
BAD_INPUT = basis::common::BAD_INPUT,
-// GARBAGE = basis::common::GARBAGE,
-// NOT_FOUND = basis::common::NOT_FOUND,
-// NONE_READY = basis::common::NONE_READY,
-// FAILURE = basis::common::FAILURE,
+ FINISHED = basis::common::IS_EMPTY, // nothing left to pack.
DEFINE_OUTCOME(SOURCE_MISSING, -43, "The source file is not accessible"),
DEFINE_OUTCOME(TARGET_DIR_ERROR, -44, "The target's directory could not "
"be created"),
DEFINE_OUTCOME(SOURCE_MISSING, -43, "The source file is not accessible"),
DEFINE_OUTCOME(TARGET_DIR_ERROR, -44, "The target's directory could not "
"be created"),
@@
-110,7
+108,8
@@
public:
out before bytes are stored into it; this is not an additive operation. */
private:
out before bytes are stored into it; this is not an additive operation. */
private:
- static bool advance(const filename_list &to_transfer, file_transfer_header &last_action);
+ static basis::outcome advance(const filename_list &to_transfer,
+ file_transfer_header &last_action);
//!< advances to the next file in the transfer list "to_transfer".
};
//!< advances to the next file in the transfer list "to_transfer".
};