aboutsummaryrefslogtreecommitdiffstats
path: root/nsxiv.h
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-07-02 16:15:53 +0200
committerNRK <nrk@disroot.org>2023-09-21 00:54:41 +0200
commit53a43cb38838bd65512b3b8902cc8a3ecfaaca56 (patch)
treedb32241dfce726a02e863c98690812c83cd1473f /nsxiv.h
parent69d4957a92030bf89323d9174c45263727483de4 (diff)
downloadnsxiv-53a43cb38838bd65512b3b8902cc8a3ecfaaca56.tar.zst
introduce img_free()
this removes some repetitive code.
Diffstat (limited to 'nsxiv.h')
-rw-r--r--nsxiv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nsxiv.h b/nsxiv.h
index e68b215..949fc4b 100644
--- a/nsxiv.h
+++ b/nsxiv.h
@@ -217,6 +217,7 @@ struct img {
void img_init(img_t*, win_t*);
bool img_load(img_t*, const fileinfo_t*);
+CLEANUP void img_free(Imlib_Image, bool);
CLEANUP void img_close(img_t*, bool);
void img_render(img_t*);
bool img_fit_win(img_t*, scalemode_t);