diff options
author | Christian Hesse <mail@eworm.de> | 2022-01-12 09:53:15 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-02-08 10:54:40 +0100 |
commit | facb67f8438aa8ef18ffacdccfd0a2d1c2730e5c (patch) | |
tree | 1a3588038565354151a92a616f3c3f3311fab62f /src/feh.h | |
parent | 4affafe91579799efd83f4c8e05c291eeb684c9c (diff) |
global initialization for libmagic
Add a global `magic_t magic` and initialize it just once.
Also `feh_is_image()` now calls itself to check compressed files, saving
some duplicate code.
Diffstat (limited to 'src/feh.h')
-rw-r--r-- | src/feh.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -145,6 +145,10 @@ void init_slideshow_mode(void); void init_list_mode(void); void init_loadables_mode(void); void init_unloadables_mode(void); +#ifdef HAVE_LIBMAGIC +void uninit_magic(void); +void init_magic(void); +#endif void feh_clean_exit(void); int feh_should_ignore_image(Imlib_Image * im); int feh_load_image(Imlib_Image * im, feh_file * file); |