aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_pr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.h')
-rw-r--r--src/fs/gnunet-service-fs_pr.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_pr.h b/src/fs/gnunet-service-fs_pr.h
index 24107534f..ee5124a90 100644
--- a/src/fs/gnunet-service-fs_pr.h
+++ b/src/fs/gnunet-service-fs_pr.h
@@ -200,6 +200,37 @@ GSF_iterate_pending_requests_ (GSF_PendingRequestIterator it,
200 void *cls); 200 void *cls);
201 201
202 202
203/**
204 * Handle P2P "CONTENT" message. Checks that the message is
205 * well-formed and then checks if there are any pending requests for
206 * this content and possibly passes it on (to local clients or other
207 * peers). Does NOT perform migration (content caching at this peer).
208 *
209 * @param other the other peer involved (sender or receiver, NULL
210 * for loopback messages where we are both sender and receiver)
211 * @param message the actual message
212 * @return how valueable was the content to us (0 for not at all),
213 * GNUNET_SYSERR if the message was malformed (close connection,
214 * do not cache under any circumstances)
215 */
216int
217GSF_handle_p2p_content_ (const struct GNUNET_PeerIdentity *other,
218 const struct GNUNET_MessageHeader *message);
219
220
221/**
222 * Setup the subsystem.
223 */
224void
225GSF_pending_request_init_ (void);
226
227
228/**
229 * Shutdown the subsystem.
230 */
231void
232GSF_pending_request_done_ (void);
233
203 234
204#endif 235#endif
205/* end of gnunet-service-fs_pr.h */ 236/* end of gnunet-service-fs_pr.h */