X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Freadpng.h;h=ce5d6351e29141b6626075ec8f07be6b29606294;hb=f6eaae4f09c6abab99692900a31c1df2a06b99af;hp=542a7747b761285a9be4edcb27369e5978b89ffc;hpb=c7a4ff64287b12487c7e9cc13ce3b7d2aa6e1f06;p=libpicofe.git diff --git a/common/readpng.h b/common/readpng.h index 542a774..ce5d635 100644 --- a/common/readpng.h +++ b/common/readpng.h @@ -2,9 +2,17 @@ typedef enum { READPNG_BG = 1, READPNG_FONT, - READPNG_SELECTOR + READPNG_SELECTOR, + READPNG_24, } readpng_what; -void readpng(void *dest, const char *fname, readpng_what what); +#ifdef __cplusplus +extern "C" { +#endif +int readpng(void *dest, const char *fname, readpng_what what, int w, int h); + +#ifdef __cplusplus +} +#endif