diff options
Diffstat (limited to 'src/stream.c')
-rw-r--r-- | src/stream.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/stream.c b/src/stream.c index 2ca8e3f3..4157e34e 100644 --- a/src/stream.c +++ b/src/stream.c @@ -415,6 +415,20 @@ int read_chunk(FILE *fh, struct image *image) } +void write_stream_header(FILE *ofh, int argc, char *argv[]) +{ + int i; + + fprintf(ofh, "CrystFEL stream format 2.0\n"); + fprintf(ofh, "Command line:"); + for ( i=0; i<argc; i++ ) { + fprintf(ofh, " %s", argv[i]); + } + fprintf(ofh, "\n"); + fflush(ofh); +} + + int skip_some_files(FILE *fh, int n) { char *rval = NULL; |