From 64606231b8101316e5ec51a0e71294c0a96b005f Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sun, 14 Feb 2010 23:07:21 +0000 Subject: os: Add a growable string stream. --- src/gallium/auxiliary/os/os_stream.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gallium/auxiliary/os/os_stream.h') 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 -- cgit v1.2.3