GNUnet  0.10.x
gnunet-service-fs_pe.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2011 GNUnet e.V.
4 
5  GNUnet is free software: you can redistribute it and/or modify it
6  under the terms of the GNU Affero General Public License as published
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
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/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19 */
20 
26 #ifndef GNUNET_SERVICE_FS_PE_H
27 #define GNUNET_SERVICE_FS_PE_H
28 
29 #include "gnunet-service-fs.h"
30 
31 
38 void
40  struct GSF_PendingRequest *pr);
41 
42 
49 void
51 
52 
59 void
61 
71 int
73  struct GSF_ConnectedPeer *sender,
75 
79 void
80 GSF_plan_init (void);
81 
82 
86 void
87 GSF_plan_done (void);
88 
89 
90 #endif
91 /* end of gnunet-service-fs_pe.h */
void GSF_plan_init(void)
Initialize plan subsystem.
void GSF_plan_notify_request_done_(struct GSF_PendingRequest *pr)
Notify the plan about a request being done; destroy all entries associated with this request...
void GSF_plan_done(void)
Shutdown plan subsystem.
shared data structures of gnunet-service-fs.c
int GSF_request_plan_reference_get_last_transmission_(struct GSF_PendingRequestPlanBijection *pr_head, struct GSF_ConnectedPeer *sender, struct GNUNET_TIME_Absolute *result)
Get the last transmission attempt time for the request plan list referenced by &#39;rpr_head&#39;, that was sent to &#39;sender&#39;.
static int result
Global testing status.
struct GSF_PendingRequest * pr
Associated pending request (identifies request details and one of the origins of the request)...
void GSF_plan_notify_peer_disconnect_(const struct GSF_ConnectedPeer *cp)
Notify the plan about a peer being no longer available; destroy all entries associated with this peer...
void GSF_plan_add_(struct GSF_ConnectedPeer *cp, struct GSF_PendingRequest *pr)
Create a new query plan entry.
A connected peer.
Time for absolute times used by GNUnet, in microseconds.
An active request.
M:N binding of plans to pending requests.