summaryrefslogtreecommitdiff
path: root/apps/misc.h
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-12-19 21:12:07 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-12-20 19:07:46 -0500
commit88f662842340c6b9082b4ea9ea99bf24aefd2da7 (patch)
tree40eb3012231f1aca4d061f0d58af961e913f3adb /apps/misc.h
parent2b4a4070c99439898e22c9c9da2c21877d18a367 (diff)
downloadrockbox-88f662842340c6b9082b4ea9ea99bf24aefd2da7.tar.gz
rockbox-88f662842340c6b9082b4ea9ea99bf24aefd2da7.zip
consolidate bmp_read function between icons and skin_parser
uses fd now rather than opening file twice Change-Id: If35418cbc77adacf5e96fb6aa0fc8ffef2fffcbd
Diffstat (limited to 'apps/misc.h')
-rw-r--r--apps/misc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/misc.h b/apps/misc.h
index e2e856f212..df2c649b0e 100644
--- a/apps/misc.h
+++ b/apps/misc.h
@@ -222,4 +222,15 @@ enum current_activity get_current_activity(void);
222/* format a sound value like: -1.05 dB */ 222/* format a sound value like: -1.05 dB */
223int format_sound_value(char *buf, size_t len, int snd, int val); 223int format_sound_value(char *buf, size_t len, int snd, int val);
224 224
225#ifndef PLUGIN
226enum core_load_bmp_error
227{
228 CLB_ALOC_ERR = 0,
229 CLB_READ_ERR = -1,
230};
231struct buflib_callbacks;
232int core_load_bmp(const char *filename, struct bitmap *bm, const int bmformat,
233 ssize_t *buf_reqd, struct buflib_callbacks *ops);
234#endif
235
225#endif /* MISC_H */ 236#endif /* MISC_H */