summaryrefslogtreecommitdiff
path: root/src/feh.h
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2022-01-12 09:53:15 +0100
committerChristian Hesse <mail@eworm.de>2022-02-08 10:54:40 +0100
commitfacb67f8438aa8ef18ffacdccfd0a2d1c2730e5c (patch)
tree1a3588038565354151a92a616f3c3f3311fab62f /src/feh.h
parent4affafe91579799efd83f4c8e05c291eeb684c9c (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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feh.h b/src/feh.h
index 007c7c5..9afe238 100644
--- a/src/feh.h
+++ b/src/feh.h
@@ -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);