WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-*/
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ SPDX-License-Identifier: AGPL3.0-or-later
+ */
/**
* @file transport/gnunet-service-transport_ats.h
* @brief interfacing between transport and ATS service
* Initialize ATS subsystem.
*/
void
-GST_ats_init (void);
+GST_ats_init(void);
/**
* Shutdown ATS subsystem.
*/
void
-GST_ats_done (void);
+GST_ats_done(void);
/**
* @return #GNUNET_YES if @a address is known, #GNUNET_NO if not.
*/
int
-GST_ats_is_known (const struct GNUNET_HELLO_Address *address,
- struct GNUNET_ATS_Session *session);
+GST_ats_is_known(const struct GNUNET_HELLO_Address *address,
+ struct GNUNET_ATS_Session *session);
/**
* @return #GNUNET_YES if @a address is known, #GNUNET_NO if not.
*/
int
-GST_ats_is_known_no_session (const struct GNUNET_HELLO_Address *address);
+GST_ats_is_known_no_session(const struct GNUNET_HELLO_Address *address);
/**
* @param session the session (can be NULL)
*/
void
-GST_ats_block_address (const struct GNUNET_HELLO_Address *address,
- struct GNUNET_ATS_Session *session);
+GST_ats_block_address(const struct GNUNET_HELLO_Address *address,
+ struct GNUNET_ATS_Session *session);
/**
* @param session the session (can be NULL)
*/
void
-GST_ats_block_reset (const struct GNUNET_HELLO_Address *address,
- struct GNUNET_ATS_Session *session);
+GST_ats_block_reset(const struct GNUNET_HELLO_Address *address,
+ struct GNUNET_ATS_Session *session);
/**
* @param prop performance information
*/
void
-GST_ats_add_inbound_address (const struct GNUNET_HELLO_Address *address,
- struct GNUNET_ATS_Session *session,
- const struct GNUNET_ATS_Properties *prop);
+GST_ats_add_inbound_address(const struct GNUNET_HELLO_Address *address,
+ struct GNUNET_ATS_Session *session,
+ const struct GNUNET_ATS_Properties *prop);
/**
* @param prop performance information
*/
void
-GST_ats_add_address (const struct GNUNET_HELLO_Address *address,
- const struct GNUNET_ATS_Properties *prop);
+GST_ats_add_address(const struct GNUNET_HELLO_Address *address,
+ const struct GNUNET_ATS_Properties *prop);
/**
* @param session the session
*/
void
-GST_ats_new_session (const struct GNUNET_HELLO_Address *address,
- struct GNUNET_ATS_Session *session);
+GST_ats_new_session(const struct GNUNET_HELLO_Address *address,
+ struct GNUNET_ATS_Session *session);
/**
* @param bps_out new utilization outbound
*/
void
-GST_ats_update_utilization (const struct GNUNET_HELLO_Address *address,
- uint32_t bps_in,
- uint32_t bps_out);
+GST_ats_update_utilization(const struct GNUNET_HELLO_Address *address,
+ uint32_t bps_in,
+ uint32_t bps_out);
/**
* @param delay new delay value
*/
void
-GST_ats_update_delay (const struct GNUNET_HELLO_Address *address,
- struct GNUNET_TIME_Relative delay);
+GST_ats_update_delay(const struct GNUNET_HELLO_Address *address,
+ struct GNUNET_TIME_Relative delay);
/**
* @param distance new distance value
*/
void
-GST_ats_update_distance (const struct GNUNET_HELLO_Address *address,
- uint32_t distance);
+GST_ats_update_distance(const struct GNUNET_HELLO_Address *address,
+ uint32_t distance);
/**
* @param session the session
*/
void
-GST_ats_del_session (const struct GNUNET_HELLO_Address *address,
- struct GNUNET_ATS_Session *session);
+GST_ats_del_session(const struct GNUNET_HELLO_Address *address,
+ struct GNUNET_ATS_Session *session);
/**
* @param address the address
*/
void
-GST_ats_expire_address (const struct GNUNET_HELLO_Address *address);
+GST_ats_expire_address(const struct GNUNET_HELLO_Address *address);
#endif