mirror of
https://github.com/labwc/labwc.git
synced 2026-04-10 08:21:07 -04:00
lab_img: cache and reuse lab_img_data
This commit is contained in:
parent
1a6dd845a2
commit
93206ae819
3 changed files with 70 additions and 10 deletions
|
|
@ -76,4 +76,12 @@ void lab_img_destroy(struct lab_img *img);
|
|||
*/
|
||||
bool lab_img_equal(struct lab_img *img_a, struct lab_img *img_b);
|
||||
|
||||
/**
|
||||
* lab_img_invalidate_cache() - clear cache keys
|
||||
*
|
||||
* This should be called on reconfigure so new lab_imgs will not try to
|
||||
* re-use outdated images which potentially have been changed on disk.
|
||||
*/
|
||||
void lab_img_invalidate_cache(void);
|
||||
|
||||
#endif /* LABWC_IMG_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue