diff -r a31048ff76a2 -r 6806a90d934f src/lib/cache.h --- a/src/lib/cache.h Tue Dec 29 00:18:17 2009 +0200 +++ b/src/lib/cache.h Tue Dec 29 00:22:57 2009 +0200 @@ -77,12 +77,17 @@ int pt_cache_status (struct pt_cache *cache, const char *img_path); /** + * Get info for the cached image, open it if not already open. + */ +int pt_cache_info (struct pt_cache *cache, struct pt_image_info *info); + +/** * Update the cache data from the given PNG image. */ int pt_cache_update_png (struct pt_cache *cache, png_structp png, png_infop info); /** - * Actually open the existing .cache for use + * Open the existing .cache for use. If already opened, does nothing. */ int pt_cache_open (struct pt_cache *cache);