summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/os/os_stream.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-02-14 23:07:21 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-02-14 23:25:34 +0000
commit64606231b8101316e5ec51a0e71294c0a96b005f (patch)
treeb74ab511670d7d4291da99f8b2d9395d856b3c80 /src/gallium/auxiliary/os/os_stream.h
parent78200989d353d979dfea584460c5338e35575aea (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.h11
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 2ce5b1885e..3423b84d69 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