From 88f662842340c6b9082b4ea9ea99bf24aefd2da7 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 19 Dec 2022 21:12:07 -0500 Subject: consolidate bmp_read function between icons and skin_parser uses fd now rather than opening file twice Change-Id: If35418cbc77adacf5e96fb6aa0fc8ffef2fffcbd --- apps/misc.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'apps/misc.h') 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); /* format a sound value like: -1.05 dB */ int format_sound_value(char *buf, size_t len, int snd, int val); +#ifndef PLUGIN +enum core_load_bmp_error +{ + CLB_ALOC_ERR = 0, + CLB_READ_ERR = -1, +}; +struct buflib_callbacks; +int core_load_bmp(const char *filename, struct bitmap *bm, const int bmformat, + ssize_t *buf_reqd, struct buflib_callbacks *ops); +#endif + #endif /* MISC_H */ -- cgit v1.2.3