diff options
author | José Fonseca <[email protected]> | 2010-02-14 23:07:21 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-02-14 23:25:34 +0000 |
commit | 64606231b8101316e5ec51a0e71294c0a96b005f (patch) | |
tree | b74ab511670d7d4291da99f8b2d9395d856b3c80 /src/gallium/auxiliary/os/os_stream.h | |
parent | 78200989d353d979dfea584460c5338e35575aea (diff) |
os: Add a growable string stream.
Diffstat (limited to 'src/gallium/auxiliary/os/os_stream.h')
-rw-r--r-- | src/gallium/auxiliary/os/os_stream.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/os/os_stream.h b/src/gallium/auxiliary/os/os_stream.h index 2ce5b1885ea..3423b84d691 100644 --- a/src/gallium/auxiliary/os/os_stream.h +++ b/src/gallium/auxiliary/os/os_stream.h @@ -99,6 +99,17 @@ struct os_stream * os_null_stream_create(void); +struct os_stream * +os_str_stream_create(size_t initial_size); + + +const char * +os_str_stream_get(struct os_stream *stream); + +char * +os_str_stream_get_and_close(struct os_stream *stream); + + #if defined(PIPE_SUBSYSTEM_WINDOWS_DISPLAY) #define os_file_stream_create(_filename) os_null_stream_create() #endif |