diff options
author | Valerio Mariani <valerio.mariani@desy.de> | 2014-07-10 16:35:50 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-07-21 15:31:58 +0200 |
commit | 282dee197bce06f9d37655c1775f53f6646e2e5d (patch) | |
tree | cef8f4803f75b4e78dd77202da3fe479dbc66014 /libcrystfel/src/stream.h | |
parent | 0508fc381cda5a3ead7069624ae5036183eee840 (diff) |
Copy geometry file into stream
Diffstat (limited to 'libcrystfel/src/stream.h')
-rw-r--r-- | libcrystfel/src/stream.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcrystfel/src/stream.h b/libcrystfel/src/stream.h index d7108439..1c2e57c6 100644 --- a/libcrystfel/src/stream.h +++ b/libcrystfel/src/stream.h @@ -38,6 +38,8 @@ struct image; struct hdfile; +#define GEOM_START_MARKER "----- Begin geometry file -----" +#define GEOM_END_MARKER "----- End geometry file -----" #define CHUNK_START_MARKER "----- Begin chunk -----" #define CHUNK_END_MARKER "----- End chunk -----" #define PEAK_LIST_START_MARKER "Peaks from peak search" @@ -79,6 +81,9 @@ extern "C" { extern Stream *open_stream_for_read(const char *filename); extern Stream *open_stream_for_write(const char *filename); +extern Stream *open_stream_for_write_2(const char *filename, + const char* geom_filename, int argc, + char *argv[]); extern Stream *open_stream_fd_for_write(int fd); extern int get_stream_fd(Stream *st); extern void close_stream(Stream *st); @@ -89,7 +94,7 @@ extern void write_chunk(Stream *st, struct image *image, struct hdfile *hdfile, int include_peaks, int include_reflections); extern void write_command(Stream *st, int argc, char *argv[]); - +extern void write_geometry_file(Stream *st, const char *geom_filename); extern int rewind_stream(Stream *st); extern int is_stream(const char *filename); |