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.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/include/gnunet_datacache_lib.h b/src/include/gnunet_datacache_lib.h
index 568e60d42..19de3ceea 100644
--- a/src/include/gnunet_datacache_lib.h
+++ b/src/include/gnunet_datacache_lib.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @author Christian Grothoff 22 * @author Christian Grothoff
@@ -63,8 +63,8 @@ struct GNUNET_DATACACHE_Handle;
63 * @return handle to use to access the service 63 * @return handle to use to access the service
64 */ 64 */
65struct GNUNET_DATACACHE_Handle * 65struct GNUNET_DATACACHE_Handle *
66GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg, 66GNUNET_DATACACHE_create(const struct GNUNET_CONFIGURATION_Handle *cfg,
67 const char *section); 67 const char *section);
68 68
69 69
70/** 70/**
@@ -73,7 +73,7 @@ GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
73 * @param h handle to the datastore 73 * @param h handle to the datastore
74 */ 74 */
75void 75void
76GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h); 76GNUNET_DATACACHE_destroy(struct GNUNET_DATACACHE_Handle *h);
77 77
78 78
79/** 79/**
@@ -115,15 +115,15 @@ typedef int
115 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error, #GNUNET_NO if duplicate 115 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error, #GNUNET_NO if duplicate
116 */ 116 */
117int 117int
118GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, 118GNUNET_DATACACHE_put(struct GNUNET_DATACACHE_Handle *h,
119 const struct GNUNET_HashCode *key, 119 const struct GNUNET_HashCode *key,
120 uint32_t xor_distance, 120 uint32_t xor_distance,
121 size_t data_size, 121 size_t data_size,
122 const char *data, 122 const char *data,
123 enum GNUNET_BLOCK_Type type, 123 enum GNUNET_BLOCK_Type type,
124 struct GNUNET_TIME_Absolute discard_time, 124 struct GNUNET_TIME_Absolute discard_time,
125 unsigned int path_info_len, 125 unsigned int path_info_len,
126 const struct GNUNET_PeerIdentity *path_info); 126 const struct GNUNET_PeerIdentity *path_info);
127 127
128 128
129/** 129/**
@@ -138,11 +138,11 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
138 * @return the number of results found 138 * @return the number of results found
139 */ 139 */
140unsigned int 140unsigned int
141GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, 141GNUNET_DATACACHE_get(struct GNUNET_DATACACHE_Handle *h,
142 const struct GNUNET_HashCode *key, 142 const struct GNUNET_HashCode *key,
143 enum GNUNET_BLOCK_Type type, 143 enum GNUNET_BLOCK_Type type,
144 GNUNET_DATACACHE_Iterator iter, 144 GNUNET_DATACACHE_Iterator iter,
145 void *iter_cls); 145 void *iter_cls);
146 146
147 147
148/** 148/**
@@ -154,9 +154,9 @@ GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h,
154 * @return the number of results found (zero or 1) 154 * @return the number of results found (zero or 1)
155 */ 155 */
156unsigned int 156unsigned int
157GNUNET_DATACACHE_get_random (struct GNUNET_DATACACHE_Handle *h, 157GNUNET_DATACACHE_get_random(struct GNUNET_DATACACHE_Handle *h,
158 GNUNET_DATACACHE_Iterator iter, 158 GNUNET_DATACACHE_Iterator iter,
159 void *iter_cls); 159 void *iter_cls);
160 160
161 161
162/** 162/**
@@ -173,11 +173,11 @@ GNUNET_DATACACHE_get_random (struct GNUNET_DATACACHE_Handle *h,
173 * @return the number of results found 173 * @return the number of results found
174 */ 174 */
175unsigned int 175unsigned int
176GNUNET_DATACACHE_get_closest (struct GNUNET_DATACACHE_Handle *h, 176GNUNET_DATACACHE_get_closest(struct GNUNET_DATACACHE_Handle *h,
177 const struct GNUNET_HashCode *key, 177 const struct GNUNET_HashCode *key,
178 unsigned int num_results, 178 unsigned int num_results,
179 GNUNET_DATACACHE_Iterator iter, 179 GNUNET_DATACACHE_Iterator iter,
180 void *iter_cls); 180 void *iter_cls);
181 181
182 182
183#if 0 /* keep Emacsens' auto-indent happy */ 183#if 0 /* keep Emacsens' auto-indent happy */