aboutsummaryrefslogblamecommitdiffstats
path: root/src/lib/evas/canvas/evas_data.c
blob: f6b83e72156574a36114f6b844ba77f195d5ab24 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                
                         
 
         
                                                                            
 

                                                         

 
           
                                                                
 

                                                              

 
           
                                                          
 




                                                              
               
 
#include "evas_common_private.h"
#include "evas_private.h"

EAPI void
evas_object_data_set(Evas_Object *eo_obj, const char *key, const void *data)
{
   if (!efl_isa(eo_obj, EFL_CANVAS_OBJECT_CLASS)) return;
   efl_key_data_set(eo_obj, key, data);
}

EAPI void *
evas_object_data_get(const Evas_Object *eo_obj, const char *key)
{
   if (!efl_isa(eo_obj, EFL_CANVAS_OBJECT_CLASS)) return NULL;
   return efl_key_data_get(eo_obj, key);
}

EAPI void *
evas_object_data_del(Evas_Object *eo_obj, const char *key)
{
   void *data;

   if (!efl_isa(eo_obj, EFL_CANVAS_OBJECT_CLASS)) return NULL;
   data = efl_key_data_get(eo_obj, key);
   efl_key_data_set(eo_obj, key, NULL);
   return data;
}