aboutsummaryrefslogtreecommitdiff
path: root/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-04-13 17:12:00 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:24 +0100
commit36b436334514124e444fc5ccb42e1dc1d1bb25bc (patch)
tree94e896292bb31e3eb170d81524b1a50eae8b107f /src/stream.c
parenta11e066ba46a4ef51f5fa831a900a7db3678c717 (diff)
Write stream header in stream.c
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c14
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;