summaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_datacache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-service-dht_datacache.h')
-rw-r--r--src/dht/gnunet-service-dht_datacache.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/dht/gnunet-service-dht_datacache.h b/src/dht/gnunet-service-dht_datacache.h
index bbbeb386e..e376aa1c1 100644
--- a/src/dht/gnunet-service-dht_datacache.h
+++ b/src/dht/gnunet-service-dht_datacache.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 * @file dht/gnunet-service-dht_datacache.h 22 * @file dht/gnunet-service-dht_datacache.h
@@ -44,13 +44,13 @@
44 * @param data application payload data 44 * @param data application payload data
45 */ 45 */
46void 46void
47GDS_DATACACHE_handle_put (struct GNUNET_TIME_Absolute expiration, 47GDS_DATACACHE_handle_put(struct GNUNET_TIME_Absolute expiration,
48 const struct GNUNET_HashCode *key, 48 const struct GNUNET_HashCode *key,
49 unsigned int put_path_length, 49 unsigned int put_path_length,
50 const struct GNUNET_PeerIdentity *put_path, 50 const struct GNUNET_PeerIdentity *put_path,
51 enum GNUNET_BLOCK_Type type, 51 enum GNUNET_BLOCK_Type type,
52 size_t data_size, 52 size_t data_size,
53 const void *data); 53 const void *data);
54 54
55 55
56/** 56/**
@@ -93,13 +93,13 @@ typedef void
93 * @return evaluation result for the local replies 93 * @return evaluation result for the local replies
94 */ 94 */
95enum GNUNET_BLOCK_EvaluationResult 95enum GNUNET_BLOCK_EvaluationResult
96GDS_DATACACHE_handle_get (const struct GNUNET_HashCode *key, 96GDS_DATACACHE_handle_get(const struct GNUNET_HashCode *key,
97 enum GNUNET_BLOCK_Type type, 97 enum GNUNET_BLOCK_Type type,
98 const void *xquery, 98 const void *xquery,
99 size_t xquery_size, 99 size_t xquery_size,
100 struct GNUNET_BLOCK_Group *bg, 100 struct GNUNET_BLOCK_Group *bg,
101 GDS_DATACACHE_GetCallback gc, 101 GDS_DATACACHE_GetCallback gc,
102 void *gc_cls); 102 void *gc_cls);
103 103
104 104
105/** 105/**
@@ -111,7 +111,7 @@ GDS_DATACACHE_handle_get (const struct GNUNET_HashCode *key,
111 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the datacache is empty 111 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the datacache is empty
112 */ 112 */
113int 113int
114GDS_DATACACHE_get_random_key (struct GNUNET_HashCode *key); 114GDS_DATACACHE_get_random_key(struct GNUNET_HashCode *key);
115 115
116 116
117/** 117/**
@@ -148,22 +148,22 @@ typedef void
148 * @param cb_cls closure for @a cb 148 * @param cb_cls closure for @a cb
149 */ 149 */
150void 150void
151GDS_DATACACHE_get_successors (const struct GNUNET_HashCode *key, 151GDS_DATACACHE_get_successors(const struct GNUNET_HashCode *key,
152 GDS_DATACACHE_SuccessorCallback cb, 152 GDS_DATACACHE_SuccessorCallback cb,
153 void *cb_cls); 153 void *cb_cls);
154 154
155 155
156/** 156/**
157 * Initialize datacache subsystem. 157 * Initialize datacache subsystem.
158 */ 158 */
159void 159void
160GDS_DATACACHE_init (void); 160GDS_DATACACHE_init(void);
161 161
162 162
163/** 163/**
164 * Shutdown datacache subsystem. 164 * Shutdown datacache subsystem.
165 */ 165 */
166void 166void
167GDS_DATACACHE_done (void); 167GDS_DATACACHE_done(void);
168 168
169#endif 169#endif