aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/hdf5-file.c5
-rw-r--r--libcrystfel/src/hdf5-file.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index e38ae67b..85d4af72 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -747,7 +747,7 @@ static struct hdf5_write_location *make_location_list(struct detector *det,
}
-static void write_location(hid_t fh, struct image *image,
+static void write_location(hid_t fh, const struct image *image,
struct hdf5_write_location *loc)
{
hid_t sh, dh, ph;
@@ -947,7 +947,8 @@ static void write_spectrum(hid_t fh, struct sample *spectrum, int spectrum_size,
}
-int hdf5_write_image(const char *filename, struct image *image, char *element)
+int hdf5_write_image(const char *filename, const struct image *image,
+ char *element)
{
hid_t fh;
int li;
diff --git a/libcrystfel/src/hdf5-file.h b/libcrystfel/src/hdf5-file.h
index 84b20798..4d7b223c 100644
--- a/libcrystfel/src/hdf5-file.h
+++ b/libcrystfel/src/hdf5-file.h
@@ -55,7 +55,7 @@ extern "C" {
extern int hdf5_write(const char *filename, const void *data,
int width, int height, int type);
-extern int hdf5_write_image(const char *filename, struct image *image,
+extern int hdf5_write_image(const char *filename, const struct image *image,
char *element);
extern int hdf5_read(struct hdfile *f, struct image *image,