From faad40aad92d51290ef2fc4d94277eca89863873 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 11 May 2013 22:19:33 +0200 Subject: core: add --stream-capture This is a partial revert of commit 7059c15, and basically re-adds --capture, just with different option names and slightly different semantics. --- stream/stream.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'stream/stream.h') diff --git a/stream/stream.h b/stream/stream.h index df4188ed94..ad2d7dd19a 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -188,6 +188,9 @@ typedef struct stream { unsigned char buffer[STREAM_BUFFER_SIZE > STREAM_MAX_SECTOR_SIZE ? STREAM_BUFFER_SIZE : STREAM_MAX_SECTOR_SIZE]; + + FILE *capture_file; + char *capture_filename; } stream_t; #ifdef CONFIG_NETWORKING @@ -197,6 +200,9 @@ typedef struct stream { int stream_fill_buffer(stream_t *s); int stream_seek_long(stream_t *s, int64_t pos); +void stream_set_capture_file(stream_t *s, const char *filename); +void stream_capture_write(stream_t *s); + #ifdef CONFIG_STREAM_CACHE int stream_enable_cache_percent(stream_t *stream, int64_t stream_cache_size, float stream_cache_min_percent, -- cgit v1.2.3