summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/cserve2/evas_cs2_image_data.c
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2012-05-03 21:01:31 +0000
committerIván Briano <sachieru@gmail.com>2012-05-03 21:01:31 +0000
commit15328efb85bcf413025d787d1d58d812a407f25a (patch)
tree37c09205c159d8b9758ffdada5dff2248e632613 /legacy/evas/src/lib/cserve2/evas_cs2_image_data.c
parentb8ade6a7cfa99ca19c054bd6b0bf488e63accbf4 (diff)
evas/cserve2: fix typo that kept cserve2 disabled
now seriously... Introducing Cache Serve 2. This cache server will initially load images for clients connected to it. It starts slave processes to load these images, and share the loaded images through shm with the clients. All the connection done between clients and the server goes through sockets. The cserve2 build option is turned on by default, while the old cserve was disabled, but in order to make clients use it, the environment variable EVAS_CSERVE2 must be set, and a server must be running. Clients will try to find the socket on a specified location using the environment variable EVAS_CSERVE2_SOCKET. If it's not defined, then the XDG_RUNTIME_DIR path should be used, and finally HOME, TMPDIR and /tmp. SVN revision: 70699
Diffstat (limited to 'legacy/evas/src/lib/cserve2/evas_cs2_image_data.c')
-rw-r--r--legacy/evas/src/lib/cserve2/evas_cs2_image_data.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/cserve2/evas_cs2_image_data.c b/legacy/evas/src/lib/cserve2/evas_cs2_image_data.c
new file mode 100644
index 0000000000..a5e49da396
--- /dev/null
+++ b/legacy/evas/src/lib/cserve2/evas_cs2_image_data.c
@@ -0,0 +1,23 @@
1#include "config.h"
2
3#include <sys/mman.h>
4#include <sys/stat.h>
5#include <fcntl.h>
6
7#include "evas_cs2.h"
8#include "evas_cs2_private.h"
9
10#ifdef EVAS_CSERVE2
11
12void *
13evas_cserve2_image_data_get(Image_Entry *ie)
14{
15 Data_Entry *dentry = ie->data2;
16
17 if (!dentry)
18 return NULL;
19
20 return dentry->shm.data;
21}
22
23#endif