summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2_image_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/cserve2/evas_cs2_image_data.c')
-rw-r--r--src/lib/evas/cserve2/evas_cs2_image_data.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2_image_data.c b/src/lib/evas/cserve2/evas_cs2_image_data.c
index a5e49da396..845107e55b 100644
--- a/src/lib/evas/cserve2/evas_cs2_image_data.c
+++ b/src/lib/evas/cserve2/evas_cs2_image_data.c
@@ -20,4 +20,13 @@ evas_cserve2_image_data_get(Image_Entry *ie)
20 return dentry->shm.data; 20 return dentry->shm.data;
21} 21}
22 22
23unsigned int
24evas_cserve2_image_hit(Image_Entry *ie)
25{
26 Data_Entry *dentry = ie->data2;
27
28 if (!dentry) return 0;
29 return ++dentry->hit_count;
30}
31
23#endif 32#endif