From 0fd2a367d1ba017d0c1cb112a648b71c4e355f78 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 12 May 2021 16:22:25 +0200 Subject: Rework header caching layer This clears up multiple layering violations which were starting to get in the way. It enables "string" headers to be stored directly, and it will make it much simpler to add new header types in the future. Along the way, this changes all the floating point header stuff to use double precision. This is needed for EuXFEL event IDs. Closes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/34 --- libcrystfel/src/image-hdf5.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libcrystfel/src/image-hdf5.h') diff --git a/libcrystfel/src/image-hdf5.h b/libcrystfel/src/image-hdf5.h index 4c36cf89..239bb20d 100644 --- a/libcrystfel/src/image-hdf5.h +++ b/libcrystfel/src/image-hdf5.h @@ -34,10 +34,8 @@ #include "datatemplate_priv.h" -extern double image_hdf5_get_value(const char *from, - const char *filename, - const char *ev, - char *type); +extern int image_hdf5_read_header_to_cache(struct image *image, + const char *name); extern int image_hdf5_read(struct image *image, const DataTemplate *dtempl, -- cgit v1.2.3