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.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/include/gnunet_datacache_lib.h b/src/include/gnunet_datacache_lib.h
index a1712b809..46d22d5ec 100644
--- a/src/include/gnunet_datacache_lib.h
+++ b/src/include/gnunet_datacache_lib.h
@@ -84,8 +84,7 @@ void GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h);
84typedef int (*GNUNET_DATACACHE_Iterator) (void *cls, 84typedef int (*GNUNET_DATACACHE_Iterator) (void *cls,
85 struct GNUNET_TIME_Absolute exp, 85 struct GNUNET_TIME_Absolute exp,
86 const GNUNET_HashCode * key, 86 const GNUNET_HashCode * key,
87 size_t size, 87 size_t size, const char *data,
88 const char *data,
89 enum GNUNET_BLOCK_Type type); 88 enum GNUNET_BLOCK_Type type);
90 89
91 90
@@ -100,13 +99,10 @@ typedef int (*GNUNET_DATACACHE_Iterator) (void *cls,
100 * @param discard_time when to discard the value in any case 99 * @param discard_time when to discard the value in any case
101 * @return GNUNET_OK on success, GNUNET_SYSERR on error (full, etc.) 100 * @return GNUNET_OK on success, GNUNET_SYSERR on error (full, etc.)
102 */ 101 */
103int 102int GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
104GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, 103 const GNUNET_HashCode * key, size_t size,
105 const GNUNET_HashCode * key, 104 const char *data, enum GNUNET_BLOCK_Type type,
106 size_t size, 105 struct GNUNET_TIME_Absolute discard_time);
107 const char *data,
108 enum GNUNET_BLOCK_Type type,
109 struct GNUNET_TIME_Absolute discard_time);
110 106
111 107
112/** 108/**
@@ -120,11 +116,11 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
120 * @param iter_cls closure for iter 116 * @param iter_cls closure for iter
121 * @return the number of results found 117 * @return the number of results found
122 */ 118 */
123unsigned int 119unsigned int GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h,
124GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, 120 const GNUNET_HashCode * key,
125 const GNUNET_HashCode * key, 121 enum GNUNET_BLOCK_Type type,
126 enum GNUNET_BLOCK_Type type, 122 GNUNET_DATACACHE_Iterator iter,
127 GNUNET_DATACACHE_Iterator iter, void *iter_cls); 123 void *iter_cls);
128 124
129 125
130#if 0 /* keep Emacsens' auto-indent happy */ 126#if 0 /* keep Emacsens' auto-indent happy */