error checking for png
[libpicofe.git] / common / readpng.h
index 542a774..7d74fee 100644 (file)
@@ -2,9 +2,18 @@ typedef enum
 {
        READPNG_BG = 1,
        READPNG_FONT,
-       READPNG_SELECTOR
+       READPNG_SELECTOR,
+       READPNG_320_24,
+       READPNG_480_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);
+
+#ifdef __cplusplus
+}
+#endif