From a61f606acdfb844d105c10243fb8a1751525adea Mon Sep 17 00:00:00 2001 From: Valerio Mariani Date: Mon, 26 Jan 2015 18:22:31 +0100 Subject: Add write_detector_geometry_2() to avoid changing API --- libcrystfel/src/detector.c | 16 ++++++++++++---- libcrystfel/src/detector.h | 10 +++++++--- 2 files changed, 19 insertions(+), 7 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 7c7e5cd6..1a799637 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -1948,10 +1948,10 @@ void get_pixel_extents(struct detector *det, } -int write_detector_geometry(const char *geometry_filename, - const char *output_filename, struct detector *det, - const char *additional_comment, - int write_panel_coffset) +int write_detector_geometry_2(const char *geometry_filename, + const char *output_filename, struct detector *det, + const char *additional_comment, + int write_panel_coffset) { FILE *ifh; FILE *fh; @@ -2108,6 +2108,14 @@ int write_detector_geometry(const char *geometry_filename, } +int write_detector_geometry(const char *geometry_filename, + const char *output_filename, struct detector *det) +{ + return write_detector_geometry_2(geometry_filename, output_filename, + det, NULL, 0); +} + + /** * mark_resolution_range_as_bad: * @image: An image structure diff --git a/libcrystfel/src/detector.h b/libcrystfel/src/detector.h index 489087ec..819b2e69 100644 --- a/libcrystfel/src/detector.h +++ b/libcrystfel/src/detector.h @@ -235,11 +235,15 @@ extern double smallest_q(struct image *image); extern struct panel *find_panel_by_name(struct detector *det, const char *name); +extern int write_detector_geometry_2(const char *geometry_filename, + const char *output_filename, + struct detector *det, + const char *additional_comment, + int write_panel_coffset); + extern int write_detector_geometry(const char *geometry_filename, const char *output_filename, - struct detector *det, - const char *additional_comment, - int write_panel_coffset); + struct detector *det); extern void mark_resolution_range_as_bad(struct image *image, double min, double max); -- cgit v1.2.3