src/lib/cache.h
changeset 2 05de54150a4c
parent 1 f3cde3db1fef
child 6 766df7c9b90d
equal deleted inserted replaced
1:f3cde3db1fef 2:05de54150a4c
    58 int pt_cache_open (struct pt_cache **cache_ptr, const char *path, int mode);
    58 int pt_cache_open (struct pt_cache **cache_ptr, const char *path, int mode);
    59 
    59 
    60 /**
    60 /**
    61  * Verify if the cached data has become stale compared to the given original file.
    61  * Verify if the cached data has become stale compared to the given original file.
    62  */
    62  */
    63 int pt_cache_stale (struct pt_cache *cache, const char *orig_path);
    63 int pt_cache_stale (struct pt_cache *cache, const char *img_path);
    64 
    64 
    65 /**
    65 /**
    66  * Update the cache data from the given PNG image.
    66  * Update the cache data from the given PNG image.
    67  */
    67  */
    68 int pt_cache_update_png (struct pt_cache *cache, png_structp png, png_infop info);
    68 int pt_cache_update_png (struct pt_cache *cache, png_structp png, png_infop info);