aboutsummaryrefslogtreecommitdiff
path: root/dep/CascLib/src/common/FileStream.h
diff options
context:
space:
mode:
Diffstat (limited to 'dep/CascLib/src/common/FileStream.h')
-rw-r--r--dep/CascLib/src/common/FileStream.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dep/CascLib/src/common/FileStream.h b/dep/CascLib/src/common/FileStream.h
index 1c72619e393..a2b0c5b9f7d 100644
--- a/dep/CascLib/src/common/FileStream.h
+++ b/dep/CascLib/src/common/FileStream.h
@@ -28,6 +28,8 @@
#define STREAM_FLAG_READ_ONLY 0x00000100 // Stream is read only
#define STREAM_FLAG_WRITE_SHARE 0x00000200 // Allow write sharing when open for write
#define STREAM_FLAG_USE_BITMAP 0x00000400 // If the file has a file bitmap, load it and use it
+#define STREAM_FLAG_FILL_MISSING 0x00000800 // If less than expected was read from the file, fill the missing part with zeros
+#define STREAM_FLAG_USE_PORT_1119 0x00001000 // For HTTP streams, use port 1119
#define STREAM_OPTIONS_MASK 0x0000FF00 // Mask for stream options
#define STREAM_PROVIDERS_MASK 0x000000FF // Mask to get stream providers
@@ -101,6 +103,12 @@ typedef void (*BLOCK_SAVEMAP)(
struct TFileStream * pStream // Pointer to a block-oriented stream
);
+typedef void (WINAPI * STREAM_DOWNLOAD_CALLBACK)(
+ void * pvUserData,
+ ULONGLONG ByteOffset,
+ DWORD dwTotalBytes
+ );
+
//-----------------------------------------------------------------------------
// Local structures - partial file structure and bitmap footer