diff options
Diffstat (limited to 'o3d/import/cross/tar_processor.h')
-rw-r--r-- | o3d/import/cross/tar_processor.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/o3d/import/cross/tar_processor.h b/o3d/import/cross/tar_processor.h index e680e47..76976c3 100644 --- a/o3d/import/cross/tar_processor.h +++ b/o3d/import/cross/tar_processor.h @@ -47,6 +47,7 @@ #define O3D_IMPORT_CROSS_TAR_PROCESSOR_H_ #include "base/basictypes.h" +#include "core/cross/types.h" #include "import/cross/memory_stream.h" #include "import/cross/archive_processor.h" @@ -58,6 +59,7 @@ class TarProcessor : public StreamProcessor { explicit TarProcessor(ArchiveCallbackClient *callback_client) : callback_client_(callback_client), header_bytes_read_(0), + getting_filename_(false), file_bytes_to_read_(0) {} virtual ~TarProcessor() {} @@ -72,7 +74,9 @@ class TarProcessor : public StreamProcessor { ArchiveCallbackClient *callback_client_; size_t header_bytes_read_; - char header_[TAR_HEADER_SIZE]; + char header_[TAR_HEADER_SIZE]; + bool getting_filename_; + String file_name_; // Initialized to total number of file bytes, // including zero padding up to block size |