aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_datacache_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_datacache_lib.h')
-rw-r--r--src/include/gnunet_datacache_lib.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/include/gnunet_datacache_lib.h b/src/include/gnunet_datacache_lib.h
index 46d22d5ec..84cb4d600 100644
--- a/src/include/gnunet_datacache_lib.h
+++ b/src/include/gnunet_datacache_lib.h
@@ -56,10 +56,9 @@ struct GNUNET_DATACACHE_Handle;
56 * @param section section in the configuration that contains our options 56 * @param section section in the configuration that contains our options
57 * @return handle to use to access the service 57 * @return handle to use to access the service
58 */ 58 */
59struct GNUNET_DATACACHE_Handle *GNUNET_DATACACHE_create (const struct 59struct GNUNET_DATACACHE_Handle *
60 GNUNET_CONFIGURATION_Handle 60GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
61 *cfg, 61 const char *section);
62 const char *section);
63 62
64 63
65/** 64/**
@@ -67,7 +66,8 @@ struct GNUNET_DATACACHE_Handle *GNUNET_DATACACHE_create (const struct
67 * 66 *
68 * @param h handle to the datastore 67 * @param h handle to the datastore
69 */ 68 */
70void GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h); 69void
70GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h);
71 71
72 72
73/** 73/**
@@ -99,10 +99,11 @@ typedef int (*GNUNET_DATACACHE_Iterator) (void *cls,
99 * @param discard_time when to discard the value in any case 99 * @param discard_time when to discard the value in any case
100 * @return GNUNET_OK on success, GNUNET_SYSERR on error (full, etc.) 100 * @return GNUNET_OK on success, GNUNET_SYSERR on error (full, etc.)
101 */ 101 */
102int GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, 102int
103 const GNUNET_HashCode * key, size_t size, 103GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
104 const char *data, enum GNUNET_BLOCK_Type type, 104 const GNUNET_HashCode * key, size_t size,
105 struct GNUNET_TIME_Absolute discard_time); 105 const char *data, enum GNUNET_BLOCK_Type type,
106 struct GNUNET_TIME_Absolute discard_time);
106 107
107 108
108/** 109/**
@@ -116,11 +117,10 @@ int GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
116 * @param iter_cls closure for iter 117 * @param iter_cls closure for iter
117 * @return the number of results found 118 * @return the number of results found
118 */ 119 */
119unsigned int GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, 120unsigned int
120 const GNUNET_HashCode * key, 121GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h,
121 enum GNUNET_BLOCK_Type type, 122 const GNUNET_HashCode * key, enum GNUNET_BLOCK_Type type,
122 GNUNET_DATACACHE_Iterator iter, 123 GNUNET_DATACACHE_Iterator iter, void *iter_cls);
123 void *iter_cls);
124 124
125 125
126#if 0 /* keep Emacsens' auto-indent happy */ 126#if 0 /* keep Emacsens' auto-indent happy */