summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2_image_data.c
blob: 845107e55b5a31c546d10b40bb09b27f224c1e81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "config.h"

#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>

#include "evas_cs2.h"
#include "evas_cs2_private.h"

#ifdef EVAS_CSERVE2

void *
evas_cserve2_image_data_get(Image_Entry *ie)
{
   Data_Entry *dentry = ie->data2;

   if (!dentry)
     return NULL;

   return dentry->shm.data;
}

unsigned int
evas_cserve2_image_hit(Image_Entry *ie)
{
   Data_Entry *dentry = ie->data2;

   if (!dentry) return 0;
   return ++dentry->hit_count;
}

#endif