diff options
author | José Fonseca <[email protected]> | 2008-09-08 22:56:38 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-09-08 22:56:38 +0900 |
commit | a4a739eb58f70368ef87c195ea77629c1526e71f (patch) | |
tree | 4a68cb3dc053d84e7e21d675b86a678b8dd54141 /src/gallium/auxiliary/util/u_stream.h | |
parent | 1da0a13389ce9709586058a8807c0c4120e520a2 (diff) |
util: Allow to define the maximum file size.
This avoids splitting the bitmaps in many files.
Diffstat (limited to 'src/gallium/auxiliary/util/u_stream.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_stream.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_stream.h b/src/gallium/auxiliary/util/u_stream.h index 516e634a990..a9d0f0121a6 100644 --- a/src/gallium/auxiliary/util/u_stream.h +++ b/src/gallium/auxiliary/util/u_stream.h @@ -40,8 +40,13 @@ struct util_stream; +/** + * Create a stream + * @param filename relative or absolute path (necessary for windows) + * @param optional maximum file size (0 for a growable size). + */ struct util_stream * -util_stream_create(const char *filename); +util_stream_create(const char *filename, size_t max_size); boolean util_stream_write(struct util_stream *stream, const void *data, size_t size); |