diff options
author | Thomas White <taw@physics.org> | 2023-05-05 11:36:22 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-05-05 11:51:09 +0200 |
commit | d8e17d6154ce644449ad5979eb6846e9e9816f6e (patch) | |
tree | aae2cc870ca3f7c0e3bcc1a8aa0de0ac4f7b3e38 /libcrystfel/src/image-hdf5.c | |
parent | 309b65d75993abbc9804b392117baea3a1101e3a (diff) |
Move is_{hdf5,cbf,cbfgz}_file() to image.c
This also improves is_hdf5_file() to use the proper file signature, not
just the extension. See 9040220452a9cc02706159c21c78e43b374446cf.
Diffstat (limited to 'libcrystfel/src/image-hdf5.c')
-rw-r--r-- | libcrystfel/src/image-hdf5.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c index c7c75903..dd9aecee 100644 --- a/libcrystfel/src/image-hdf5.c +++ b/libcrystfel/src/image-hdf5.c @@ -1993,17 +1993,4 @@ char **image_hdf5_expand_frames(const DataTemplate *dtempl, } -int is_hdf5_file(const char *filename) -{ - const char *ext = NULL; - - ext = filename_extension(filename, NULL); - if ( ext == NULL ) return 0; - - return ( (strcmp(ext, ".h5") == 0) - || (strcmp(ext, ".cxi") == 0) - || (strcmp(ext, ".nx5") == 0) ); -} - - #endif /* HAVE_HDF5 */ |