aboutsummaryrefslogtreecommitdiffstats
path: root/nsxiv.h
diff options
context:
space:
mode:
authorN-R-K <nrk@disroot.org>2022-05-03 17:36:57 +0200
committerGitHub <noreply@github.com>2022-05-03 17:36:57 +0200
commit3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9 (patch)
tree5a2e26fa1e6bd4b110c612054a6832275fced1f8 /nsxiv.h
parent591be8cecfaef143824e76c73f7c586261297c9c (diff)
downloadnsxiv-3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9.tar.zst
Declare every extern function/variable in `nsxiv.h` (#268)
with a couple exceptions as they cause too many -Wshadow warnings. also moves the `extcmd_t` typedef on top for cosmetic purposes. also enable `-Wmissing-prototypes` in the ci
Diffstat (limited to 'nsxiv.h')
-rw-r--r--nsxiv.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/nsxiv.h b/nsxiv.h
index 67c2185..f9f5600 100644
--- a/nsxiv.h
+++ b/nsxiv.h
@@ -232,6 +232,10 @@ void img_toggle_antialias(img_t*);
bool img_change_gamma(img_t*, int);
bool img_frame_navigate(img_t*, int);
bool img_frame_animate(img_t*);
+Imlib_Image img_open(const fileinfo_t*);
+#if HAVE_LIBEXIF
+void exif_auto_orientate(const fileinfo_t*);
+#endif
/* options.c */
@@ -449,4 +453,33 @@ void win_set_title(win_t*, bool);
void win_set_cursor(win_t*, cursor_t);
void win_cursor_pos(win_t*, int*, int*);
+/* main.c */
+
+/* timeout handler functions: */
+void redraw(void);
+void reset_cursor(void);
+void animate(void);
+void slideshow(void);
+void clear_resize(void);
+
+void remove_file(int, bool);
+void set_timeout(timeout_f, int, bool);
+void reset_timeout(timeout_f);
+size_t get_win_title(unsigned char*, int, bool);
+void close_info(void);
+void open_info(void);
+void load_image(int);
+bool mark_image(int, bool);
+int nav_button(void);
+void handle_key_handler(bool);
+
+extern appmode_t mode;
+extern const XButtonEvent *xbutton_ev;
+extern fileinfo_t *files;
+extern int filecnt, fileidx;
+extern int alternate;
+extern int markcnt;
+extern int markidx;
+extern int prefix;
+
#endif /* NSXIV_H */