diff options
author | Thomas White <taw@physics.org> | 2021-05-12 16:22:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-05-12 17:14:46 +0200 |
commit | 0fd2a367d1ba017d0c1cb112a648b71c4e355f78 (patch) | |
tree | 0114a7f0b6f03324981682a0858211f29fd89536 /libcrystfel/src/image-msgpack.h | |
parent | 3a3401dfe7a7fedd5f133dd5a7b416e869f6be89 (diff) |
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
Diffstat (limited to 'libcrystfel/src/image-msgpack.h')
-rw-r--r-- | libcrystfel/src/image-msgpack.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libcrystfel/src/image-msgpack.h b/libcrystfel/src/image-msgpack.h index 26cf6b4e..738adc91 100644 --- a/libcrystfel/src/image-msgpack.h +++ b/libcrystfel/src/image-msgpack.h @@ -42,9 +42,7 @@ extern ImageFeatureList *image_msgpack_read_peaks(const DataTemplate *dtempl, size_t data_size, int half_pixel_shift); -extern double image_msgpack_get_value(const char *name, - void *data_block, - size_t data_block_size, - char *ptype); +extern int image_msgpack_read_header_to_cache(struct image *image, + const char *name); #endif /* IMAGE_MSGPACK_H */ |