diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.h')
-rw-r--r-- | src/transport/gnunet-service-transport_ats.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/transport/gnunet-service-transport_ats.h b/src/transport/gnunet-service-transport_ats.h index c8f2c309f..9c906a9a2 100644 --- a/src/transport/gnunet-service-transport_ats.h +++ b/src/transport/gnunet-service-transport_ats.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 | * @file transport/gnunet-service-transport_ats.h | 21 | * @file transport/gnunet-service-transport_ats.h |
22 | * @brief interfacing between transport and ATS service | 22 | * @brief interfacing between transport and ATS service |
@@ -31,14 +31,14 @@ | |||
31 | * Initialize ATS subsystem. | 31 | * Initialize ATS subsystem. |
32 | */ | 32 | */ |
33 | void | 33 | void |
34 | GST_ats_init (void); | 34 | GST_ats_init(void); |
35 | 35 | ||
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Shutdown ATS subsystem. | 38 | * Shutdown ATS subsystem. |
39 | */ | 39 | */ |
40 | void | 40 | void |
41 | GST_ats_done (void); | 41 | GST_ats_done(void); |
42 | 42 | ||
43 | 43 | ||
44 | /** | 44 | /** |
@@ -51,8 +51,8 @@ GST_ats_done (void); | |||
51 | * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not. | 51 | * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not. |
52 | */ | 52 | */ |
53 | int | 53 | int |
54 | GST_ats_is_known (const struct GNUNET_HELLO_Address *address, | 54 | GST_ats_is_known(const struct GNUNET_HELLO_Address *address, |
55 | struct GNUNET_ATS_Session *session); | 55 | struct GNUNET_ATS_Session *session); |
56 | 56 | ||
57 | 57 | ||
58 | /** | 58 | /** |
@@ -63,7 +63,7 @@ GST_ats_is_known (const struct GNUNET_HELLO_Address *address, | |||
63 | * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not. | 63 | * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not. |
64 | */ | 64 | */ |
65 | int | 65 | int |
66 | GST_ats_is_known_no_session (const struct GNUNET_HELLO_Address *address); | 66 | GST_ats_is_known_no_session(const struct GNUNET_HELLO_Address *address); |
67 | 67 | ||
68 | 68 | ||
69 | /** | 69 | /** |
@@ -76,8 +76,8 @@ GST_ats_is_known_no_session (const struct GNUNET_HELLO_Address *address); | |||
76 | * @param session the session (can be NULL) | 76 | * @param session the session (can be NULL) |
77 | */ | 77 | */ |
78 | void | 78 | void |
79 | GST_ats_block_address (const struct GNUNET_HELLO_Address *address, | 79 | GST_ats_block_address(const struct GNUNET_HELLO_Address *address, |
80 | struct GNUNET_ATS_Session *session); | 80 | struct GNUNET_ATS_Session *session); |
81 | 81 | ||
82 | 82 | ||
83 | /** | 83 | /** |
@@ -89,8 +89,8 @@ GST_ats_block_address (const struct GNUNET_HELLO_Address *address, | |||
89 | * @param session the session (can be NULL) | 89 | * @param session the session (can be NULL) |
90 | */ | 90 | */ |
91 | void | 91 | void |
92 | GST_ats_block_reset (const struct GNUNET_HELLO_Address *address, | 92 | GST_ats_block_reset(const struct GNUNET_HELLO_Address *address, |
93 | struct GNUNET_ATS_Session *session); | 93 | struct GNUNET_ATS_Session *session); |
94 | 94 | ||
95 | 95 | ||
96 | /** | 96 | /** |
@@ -104,9 +104,9 @@ GST_ats_block_reset (const struct GNUNET_HELLO_Address *address, | |||
104 | * @param prop performance information | 104 | * @param prop performance information |
105 | */ | 105 | */ |
106 | void | 106 | void |
107 | GST_ats_add_inbound_address (const struct GNUNET_HELLO_Address *address, | 107 | GST_ats_add_inbound_address(const struct GNUNET_HELLO_Address *address, |
108 | struct GNUNET_ATS_Session *session, | 108 | struct GNUNET_ATS_Session *session, |
109 | const struct GNUNET_ATS_Properties *prop); | 109 | const struct GNUNET_ATS_Properties *prop); |
110 | 110 | ||
111 | 111 | ||
112 | /** | 112 | /** |
@@ -117,8 +117,8 @@ GST_ats_add_inbound_address (const struct GNUNET_HELLO_Address *address, | |||
117 | * @param prop performance information | 117 | * @param prop performance information |
118 | */ | 118 | */ |
119 | void | 119 | void |
120 | GST_ats_add_address (const struct GNUNET_HELLO_Address *address, | 120 | GST_ats_add_address(const struct GNUNET_HELLO_Address *address, |
121 | const struct GNUNET_ATS_Properties *prop); | 121 | const struct GNUNET_ATS_Properties *prop); |
122 | 122 | ||
123 | 123 | ||
124 | /** | 124 | /** |
@@ -131,8 +131,8 @@ GST_ats_add_address (const struct GNUNET_HELLO_Address *address, | |||
131 | * @param session the session | 131 | * @param session the session |
132 | */ | 132 | */ |
133 | void | 133 | void |
134 | GST_ats_new_session (const struct GNUNET_HELLO_Address *address, | 134 | GST_ats_new_session(const struct GNUNET_HELLO_Address *address, |
135 | struct GNUNET_ATS_Session *session); | 135 | struct GNUNET_ATS_Session *session); |
136 | 136 | ||
137 | 137 | ||
138 | /** | 138 | /** |
@@ -144,9 +144,9 @@ GST_ats_new_session (const struct GNUNET_HELLO_Address *address, | |||
144 | * @param bps_out new utilization outbound | 144 | * @param bps_out new utilization outbound |
145 | */ | 145 | */ |
146 | void | 146 | void |
147 | GST_ats_update_utilization (const struct GNUNET_HELLO_Address *address, | 147 | GST_ats_update_utilization(const struct GNUNET_HELLO_Address *address, |
148 | uint32_t bps_in, | 148 | uint32_t bps_in, |
149 | uint32_t bps_out); | 149 | uint32_t bps_out); |
150 | 150 | ||
151 | 151 | ||
152 | /** | 152 | /** |
@@ -158,8 +158,8 @@ GST_ats_update_utilization (const struct GNUNET_HELLO_Address *address, | |||
158 | * @param delay new delay value | 158 | * @param delay new delay value |
159 | */ | 159 | */ |
160 | void | 160 | void |
161 | GST_ats_update_delay (const struct GNUNET_HELLO_Address *address, | 161 | GST_ats_update_delay(const struct GNUNET_HELLO_Address *address, |
162 | struct GNUNET_TIME_Relative delay); | 162 | struct GNUNET_TIME_Relative delay); |
163 | 163 | ||
164 | 164 | ||
165 | /** | 165 | /** |
@@ -170,8 +170,8 @@ GST_ats_update_delay (const struct GNUNET_HELLO_Address *address, | |||
170 | * @param distance new distance value | 170 | * @param distance new distance value |
171 | */ | 171 | */ |
172 | void | 172 | void |
173 | GST_ats_update_distance (const struct GNUNET_HELLO_Address *address, | 173 | GST_ats_update_distance(const struct GNUNET_HELLO_Address *address, |
174 | uint32_t distance); | 174 | uint32_t distance); |
175 | 175 | ||
176 | 176 | ||
177 | /** | 177 | /** |
@@ -186,8 +186,8 @@ GST_ats_update_distance (const struct GNUNET_HELLO_Address *address, | |||
186 | * @param session the session | 186 | * @param session the session |
187 | */ | 187 | */ |
188 | void | 188 | void |
189 | GST_ats_del_session (const struct GNUNET_HELLO_Address *address, | 189 | GST_ats_del_session(const struct GNUNET_HELLO_Address *address, |
190 | struct GNUNET_ATS_Session *session); | 190 | struct GNUNET_ATS_Session *session); |
191 | 191 | ||
192 | 192 | ||
193 | /** | 193 | /** |
@@ -198,7 +198,7 @@ GST_ats_del_session (const struct GNUNET_HELLO_Address *address, | |||
198 | * @param address the address | 198 | * @param address the address |
199 | */ | 199 | */ |
200 | void | 200 | void |
201 | GST_ats_expire_address (const struct GNUNET_HELLO_Address *address); | 201 | GST_ats_expire_address(const struct GNUNET_HELLO_Address *address); |
202 | 202 | ||
203 | 203 | ||
204 | #endif | 204 | #endif |