include/pngtile.h
changeset 54 4a25113cb2a4
parent 53 8a3165c604f8
child 56 d5e3089906da
--- a/include/pngtile.h	Sun Jan 24 23:04:55 2010 +0200
+++ b/include/pngtile.h	Sun Jan 24 23:17:10 2010 +0200
@@ -9,6 +9,7 @@
 #include <stddef.h>
 #include <stdio.h> // for FILE*
 #include <stdint.h>
+#include <sys/types.h> // for time_t
 
 /**
  * "Global" context shared between images
@@ -46,18 +47,24 @@
     PT_CACHE_STALE      = 2,
 };
 
-/** Metadata info for image */
+/** Metadata info for image. Values will be set to zero if not available */
 struct pt_image_info {
     /** Dimensions of image */
     size_t width, height;
 
+    /** Last update of image file */
+    time_t image_mtime;
+
     /** Size of image file in bytes */
     size_t image_bytes;
 
+    /** Last update of cache file */
+    time_t cache_mtime;
+
     /** Size of cache file in bytes */
     size_t cache_bytes;
 
-    /** Size of cache file in blocks (for sparse cache files) */
+    /** Size of cache file in blocks (for sparse cache files) - 512 bytes / block? */
     size_t cache_blocks;
 };