datacache API More...
Go to the source code of this file.
Data Structures | |
| struct | GNUNET_DATACACHE_Block | 
| Information about a block stored in the datacache.  More... | |
Typedefs | |
| typedef enum GNUNET_GenericReturnValue(* | GNUNET_DATACACHE_Iterator) (void *cls, const struct GNUNET_DATACACHE_Block *block) | 
| An iterator over a set of items stored in the datacache.   | |
Functions | |
| struct GNUNET_DATACACHE_Handle * | GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg, const char *section) | 
| Create a data cache.   | |
| void | GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h) | 
| Destroy a data cache (and free associated resources).   | |
| enum GNUNET_GenericReturnValue | GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, uint32_t xor_distance, const struct GNUNET_DATACACHE_Block *block) | 
| Store an item in the datacache.   | |
| unsigned int | GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, const struct GNUNET_HashCode *key, enum GNUNET_BLOCK_Type type, GNUNET_DATACACHE_Iterator iter, void *iter_cls) | 
| Iterate over the results for a particular key in the datacache.   | |
| unsigned int | GNUNET_DATACACHE_get_closest (struct GNUNET_DATACACHE_Handle *h, const struct GNUNET_HashCode *key, enum GNUNET_BLOCK_Type type, unsigned int num_results, GNUNET_DATACACHE_Iterator iter, void *iter_cls) | 
| Iterate over the results that are "close" to a particular key in the datacache.   | |
datacache API
Definition in file gnunet_datacache_lib.h.