src/lib/png.h
changeset 69 1d188aa94aee
parent 56 d5e3089906da
child 70 35515b3a82b7
--- a/src/lib/png.h	Mon Jan 25 02:39:28 2010 +0200
+++ b/src/lib/png.h	Mon Jan 25 02:40:19 2010 +0200
@@ -21,6 +21,8 @@
     png_struct *png;
     png_info *info;
 
+    /** Possible opened I/O file */
+    FILE *fh;
 };
 
 /**
@@ -50,6 +52,12 @@
 #include "image.h"
 #include "tile.h"
 
+/**
+ * Check if the given path looks like a .png file.
+ *
+ * Returns 0 if ok, 1 if non-png file, -1 on error
+ */
+int pt_png_check (const char *path);
 
 /**
  * Open the given .png image, and read info