3 /* local subsystem functions */
5 /* local subsystem globals */
6 static Eina_Hash *store = NULL;
8 /* externally accessible functions */
10 e_datastore_set(char *key, void *data)
12 if (!store) store = eina_hash_string_superfast_new(NULL);
13 eina_hash_del(store, key, NULL);
14 eina_hash_add(store, key, data);
18 e_datastore_get(char *key)
20 return eina_hash_find(store, key);
24 e_datastore_del(char *key)
26 eina_hash_del(store, key, NULL);
27 if (eina_hash_population(store)) return;
28 eina_hash_free(store);
32 /* local subsystem functions */