devs/princeamd/enlightenment-0.17-elive
parent
417742def8
commit
a0d654aa60
5 changed files with 54 additions and 1 deletions
@ -0,0 +1,31 @@ |
||||
/*
|
||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 |
||||
*/ |
||||
#include "e.h" |
||||
|
||||
/* local subsystem functions */ |
||||
|
||||
/* local subsystem globals */ |
||||
static Evas_Hash *store = NULL; |
||||
|
||||
/* externally accessible functions */ |
||||
void |
||||
e_datastore_set(char *key, void *data) |
||||
{ |
||||
store = evas_hash_del(store, key, NULL); |
||||
store = evas_hash_add(store, key, data); |
||||
} |
||||
|
||||
void * |
||||
e_datastore_get(char *key) |
||||
{ |
||||
return evas_hash_find(store, key); |
||||
} |
||||
|
||||
void |
||||
e_datastore_del(char *key) |
||||
{ |
||||
store = evas_hash_del(store, key, NULL); |
||||
} |
||||
|
||||
/* local subsystem functions */ |
@ -0,0 +1,15 @@ |
||||
/*
|
||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 |
||||
*/ |
||||
#ifdef E_TYPEDEFS |
||||
|
||||
#else |
||||
#ifndef E_DATASTORE_H |
||||
#define E_DATASTORE_H |
||||
|
||||
EAPI void e_datastore_set(char *key, void *data); |
||||
EAPI void *e_datastore_get(char *key); |
||||
EAPI void e_datastore_del(char *key); |
||||
|
||||
#endif |
||||
#endif |
Loading…
Reference in new issue