aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/image-cbf.c5
-rw-r--r--libcrystfel/src/image-cbf.h2
-rw-r--r--libcrystfel/src/image-hdf5.c2
-rw-r--r--libcrystfel/src/image-hdf5.h2
4 files changed, 6 insertions, 5 deletions
diff --git a/libcrystfel/src/image-cbf.c b/libcrystfel/src/image-cbf.c
index 0d7b914d..9b34d88c 100644
--- a/libcrystfel/src/image-cbf.c
+++ b/libcrystfel/src/image-cbf.c
@@ -544,7 +544,8 @@ int image_cbf_read_mask(struct panel_template *p,
}
-static int unpack_panels(struct image *image, DataTemplate *dtempl,
+static int unpack_panels(struct image *image,
+ const DataTemplate *dtempl,
float *data, int data_width, int data_height)
{
int pi;
@@ -600,7 +601,7 @@ static int unpack_panels(struct image *image, DataTemplate *dtempl,
int image_cbf_read(struct image *image,
- DataTemplate *dtempl,
+ const DataTemplate *dtempl,
const char *filename,
const char *event,
int gz)
diff --git a/libcrystfel/src/image-cbf.h b/libcrystfel/src/image-cbf.h
index 6cb93d83..bfcbe6d2 100644
--- a/libcrystfel/src/image-cbf.h
+++ b/libcrystfel/src/image-cbf.h
@@ -47,7 +47,7 @@ extern int load_mask_cbf(struct panel_template *p,
int gz, int *bad, int mask_good, int mask_bad);
extern int image_cbf_read(struct image *image,
- DataTemplate *dtempl,
+ const DataTemplate *dtempl,
const char *filename,
const char *event,
int gz);
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c
index 5b7a9728..6c2a323a 100644
--- a/libcrystfel/src/image-hdf5.c
+++ b/libcrystfel/src/image-hdf5.c
@@ -526,7 +526,7 @@ static int load_hdf5_hyperslab(struct panel_template *p,
int image_hdf5_read(struct image *image,
- DataTemplate *dtempl,
+ const DataTemplate *dtempl,
const char *filename,
const char *event)
{
diff --git a/libcrystfel/src/image-hdf5.h b/libcrystfel/src/image-hdf5.h
index af57e3d4..05f87858 100644
--- a/libcrystfel/src/image-hdf5.h
+++ b/libcrystfel/src/image-hdf5.h
@@ -43,7 +43,7 @@ extern double image_hdf5_get_value(const char *from,
const char *ev);
extern int image_hdf5_read(struct image *image,
- DataTemplate *dtempl,
+ const DataTemplate *dtempl,
const char *filename,
const char *event);