summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.h')
-rw-r--r--src/transport/gnunet-service-transport_validation.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/transport/gnunet-service-transport_validation.h b/src/transport/gnunet-service-transport_validation.h
index f6ae764b7..a5b9b7603 100644
--- a/src/transport/gnunet-service-transport_validation.h
+++ b/src/transport/gnunet-service-transport_validation.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 transport/gnunet-service-transport_validation.h 22 * @file transport/gnunet-service-transport_validation.h
@@ -37,14 +37,14 @@
37 * @param max_fds maximum number of fds to use 37 * @param max_fds maximum number of fds to use
38 */ 38 */
39void 39void
40GST_validation_start (unsigned int max_fds); 40GST_validation_start(unsigned int max_fds);
41 41
42 42
43/** 43/**
44 * Stop the validation subsystem. 44 * Stop the validation subsystem.
45 */ 45 */
46void 46void
47GST_validation_stop (void); 47GST_validation_stop(void);
48 48
49 49
50/** 50/**
@@ -57,8 +57,8 @@ GST_validation_stop (void);
57 * #GNUNET_NO if we are no longer using the address for a connection 57 * #GNUNET_NO if we are no longer using the address for a connection
58 */ 58 */
59void 59void
60GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address, 60GST_validation_set_address_use(const struct GNUNET_HELLO_Address *address,
61 int in_use); 61 int in_use);
62 62
63 63
64/** 64/**
@@ -71,10 +71,10 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address,
71 * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error 71 * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error
72 */ 72 */
73int 73int
74GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, 74GST_validation_handle_ping(const struct GNUNET_PeerIdentity *sender,
75 const struct GNUNET_MessageHeader *hdr, 75 const struct GNUNET_MessageHeader *hdr,
76 const struct GNUNET_HELLO_Address *sender_address, 76 const struct GNUNET_HELLO_Address *sender_address,
77 struct GNUNET_ATS_Session *session); 77 struct GNUNET_ATS_Session *session);
78 78
79 79
80/** 80/**
@@ -86,8 +86,8 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender,
86 * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error 86 * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error
87 */ 87 */
88int 88int
89GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, 89GST_validation_handle_pong(const struct GNUNET_PeerIdentity *sender,
90 const struct GNUNET_MessageHeader *hdr); 90 const struct GNUNET_MessageHeader *hdr);
91 91
92 92
93/** 93/**
@@ -98,7 +98,7 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender,
98 * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error 98 * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error
99 */ 99 */
100int 100int
101GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello); 101GST_validation_handle_hello(const struct GNUNET_MessageHeader *hello);
102 102
103 103
104/** 104/**
@@ -107,7 +107,7 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello);
107 * @param address address we should try to validate 107 * @param address address we should try to validate
108 */ 108 */
109void 109void
110GST_validation_handle_address (const struct GNUNET_HELLO_Address *address); 110GST_validation_handle_address(const struct GNUNET_HELLO_Address *address);
111 111
112 112
113/** 113/**
@@ -138,8 +138,8 @@ typedef void
138 * @param cb_cls closure for @a cb 138 * @param cb_cls closure for @a cb
139 */ 139 */
140void 140void
141GST_validation_get_addresses (const struct GNUNET_PeerIdentity *target, 141GST_validation_get_addresses(const struct GNUNET_PeerIdentity *target,
142 GST_ValidationAddressCallback cb, void *cb_cls); 142 GST_ValidationAddressCallback cb, void *cb_cls);
143 143
144 144
145#endif 145#endif