aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_data.c
blob: 1d1d69829d28a7302f15e92f1f1da78cfa3deca1 (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
33
34
#include "evas_common.h"
#include "evas_private.h"


EAPI void
evas_object_data_set(Evas_Object *obj, const char *key, const void *data)
{
   MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
   return;
   MAGIC_CHECK_END();
   eo_do(obj, eo_base_data_set(key, data, NULL));
}

EAPI void *
evas_object_data_get(const Evas_Object *obj, const char *key)
{
   MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
   return NULL;
   MAGIC_CHECK_END();
   void *data = NULL;
   eo_do((Evas_Object *)obj, eo_base_data_get(key, &data));
   return data;
}

EAPI void *
evas_object_data_del(Evas_Object *obj, const char *key)
{
   MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
   return NULL;
   MAGIC_CHECK_END();
   void *data = NULL;
   eo_do(obj, eo_base_data_get(key, &data), eo_base_data_del(key));
   return data;
}