summaryrefslogtreecommitdiffstats
path: root/core/picture.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-14 20:06:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-06 13:58:09 -0700
commitebdb3e3c3029d3762207e8dcadfa3a61bf0a9293 (patch)
treed27db501b1f79a0c89a1d5fbf2790171f843399c /core/picture.h
parentdb24f16686b7e704e625f499140848681b31cfde (diff)
downloadsubsurface-ebdb3e3c3029d3762207e8dcadfa3a61bf0a9293.tar.gz
media: create sort_picture_table function via macro
This needs a slight change to the macro, because here we sort by value type. Yes, from a C-programming point of view this is horrible, however a decent compiler should just inline everything and not pass around value types. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/picture.h')
-rw-r--r--core/picture.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/picture.h b/core/picture.h
index 4e42052a4..999ef9681 100644
--- a/core/picture.h
+++ b/core/picture.h
@@ -35,6 +35,7 @@ extern void copy_pictures(const struct picture_table *s, struct picture_table *d
extern void add_picture(struct picture_table *, struct picture newpic);
extern bool remove_picture(struct picture_table *, const char *filename);
extern int get_picture_idx(const struct picture_table *, const char *filename); /* Return -1 if not found */
+extern void sort_picture_table(struct picture_table *);
#ifdef __cplusplus
}