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
+ */
/**
* @author Christian Grothoff
(*GNUNET_TRANSPORT_SessionStart) (void *cls,
const struct GNUNET_HELLO_Address *address,
struct GNUNET_ATS_Session *session,
- enum GNUNET_ATS_Network_Type net);
+ enum GNUNET_NetworkType net);
/**
*/
typedef struct GNUNET_TIME_Relative
(*GNUNET_TRANSPORT_PluginReceiveCallback) (void *cls,
- const struct GNUNET_HELLO_Address *address,
+ const struct
+ GNUNET_HELLO_Address *address,
struct GNUNET_ATS_Session *session,
- const struct GNUNET_MessageHeader *message);
+ const struct
+ GNUNET_MessageHeader *message);
/**
* @param addrlen length of the @a addr
* @return type of the network the address belongs to
*/
-typedef enum GNUNET_ATS_Network_Type
-(*GNUNET_TRANSPORT_AddressToType) (void *cls,
- const struct sockaddr *addr,
- size_t addrlen);
+typedef enum GNUNET_NetworkType
+(*GNUNET_TRANSPORT_AddressToType)(void *cls,
+ const struct sockaddr *addr,
+ size_t addrlen);
/**
*/
typedef void
(*GNUNET_TRANSPORT_UpdateAddressDistance) (void *cls,
- const struct GNUNET_HELLO_Address *address,
+ const struct
+ GNUNET_HELLO_Address *address,
uint32_t distance);
typedef void
(*GNUNET_TRANSPORT_AddressNotification) (void *cls,
int add_remove,
- const struct GNUNET_HELLO_Address *address);
+ const struct
+ GNUNET_HELLO_Address *address);
/**
* UDP) can ignore this value.
*/
uint32_t max_connections;
-
};
*/
typedef void
(*GNUNET_TRANSPORT_TransmitContinuation) (void *cls,
- const struct GNUNET_PeerIdentity *target,
+ const struct
+ GNUNET_PeerIdentity *target,
int result,
size_t size_payload,
size_t size_on_wire);
*/
typedef int
(*GNUNET_TRANSPORT_DisconnectSessionFunction) (void *cls,
- struct GNUNET_ATS_Session *session);
+ struct GNUNET_ATS_Session *
+ session);
/**
*/
typedef void
(*GNUNET_TRANSPORT_DisconnectPeerFunction) (void *cls,
- const struct GNUNET_PeerIdentity *target);
+ const struct
+ GNUNET_PeerIdentity *target);
/**
size_t addrlen,
int numeric,
struct GNUNET_TIME_Relative timeout,
- GNUNET_TRANSPORT_AddressStringCallback asc,
+ GNUNET_TRANSPORT_AddressStringCallback
+ asc,
void *asc_cls);
*/
typedef void
(*GNUNET_TRANSPORT_UpdateSessionTimeout) (void *cls,
- const struct GNUNET_PeerIdentity *peer,
+ const struct
+ GNUNET_PeerIdentity *peer,
struct GNUNET_ATS_Session *session);
* @param session the session
* @return the network type
*/
-typedef enum GNUNET_ATS_Network_Type
-(*GNUNET_TRANSPORT_GetNetworkType) (void *cls,
- struct GNUNET_ATS_Session *session);
+typedef enum GNUNET_NetworkType
+(*GNUNET_TRANSPORT_GetNetworkType)(void *cls,
+ struct GNUNET_ATS_Session *session);
/**
* @param address the address
* @return the network type
*/
-typedef enum GNUNET_ATS_Network_Type
-(*GNUNET_TRANSPORT_GetNetworkTypeForAddress) (void *cls,
- const struct GNUNET_HELLO_Address *address);
+typedef enum GNUNET_NetworkType
+(*GNUNET_TRANSPORT_GetNetworkTypeForAddress)(void *cls,
+ const struct
+ GNUNET_HELLO_Address *address);
/**
typedef void
(*GNUNET_TRANSPORT_SessionInfoCallback) (void *cls,
struct GNUNET_ATS_Session *session,
- const struct GNUNET_TRANSPORT_SessionInfo *info);
+ const struct
+ GNUNET_TRANSPORT_SessionInfo *info);
/**
*/
typedef void
(*GNUNET_TRANSPORT_SessionMonitorSetup) (void *cls,
- GNUNET_TRANSPORT_SessionInfoCallback sic,
+ GNUNET_TRANSPORT_SessionInfoCallback
+ sic,
void *sic_cls);
*/
struct GNUNET_TRANSPORT_PluginFunctions
{
-
/**
* Closure for all of the callbacks.
*/