From 9cd0d5068f3341fe8451a61872894f28a5ac9047 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 18 Oct 2015 12:33:21 +0000 Subject: rename 'struct Session' to 'struct GNUNET_ATS_Session' to satisfy naming conventions --- src/include/gnunet_transport_plugin.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/include/gnunet_transport_plugin.h') diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 0dc159cb4..375104c46 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h @@ -48,11 +48,11 @@ * connection may not have an address that can be used for meaningful * distinction between sessions to the same peer. * - * Each 'struct Session' MUST start with the 'struct GNUNET_PeerIdentity' + * Each 'struct GNUNET_ATS_Session' MUST start with the 'struct GNUNET_PeerIdentity' * of the peer the session is for (which will be used for some error * checking by the ATS code). */ -struct Session; +struct GNUNET_ATS_Session; /** @@ -71,7 +71,7 @@ struct Session; typedef void (*GNUNET_TRANSPORT_SessionEnd) (void *cls, const struct GNUNET_HELLO_Address *address, - struct Session *session); + struct GNUNET_ATS_Session *session); /** @@ -85,7 +85,7 @@ typedef void typedef void (*GNUNET_TRANSPORT_SessionStart) (void *cls, const struct GNUNET_HELLO_Address *address, - struct Session *session, + struct GNUNET_ATS_Session *session, enum GNUNET_ATS_Network_Type net); @@ -114,7 +114,7 @@ typedef void typedef struct GNUNET_TIME_Relative (*GNUNET_TRANSPORT_PluginReceiveCallback) (void *cls, const struct GNUNET_HELLO_Address *address, - struct Session *session, + struct GNUNET_ATS_Session *session, const struct GNUNET_MessageHeader *message); @@ -334,7 +334,7 @@ typedef void */ typedef ssize_t (*GNUNET_TRANSPORT_TransmitFunction) (void *cls, - struct Session *session, + struct GNUNET_ATS_Session *session, const char *msgbuf, size_t msgbuf_size, unsigned int priority, @@ -357,7 +357,7 @@ typedef ssize_t */ typedef int (*GNUNET_TRANSPORT_DisconnectSessionFunction) (void *cls, - struct Session *session); + struct GNUNET_ATS_Session *session); /** @@ -463,7 +463,7 @@ typedef int * @param address the hello address * @return the session if the address is valid, NULL otherwise */ -typedef struct Session * +typedef struct GNUNET_ATS_Session * (*GNUNET_TRANSPORT_CreateSession) (void *cls, const struct GNUNET_HELLO_Address *address); @@ -480,7 +480,7 @@ typedef struct Session * typedef void (*GNUNET_TRANSPORT_UpdateSessionTimeout) (void *cls, const struct GNUNET_PeerIdentity *peer, - struct Session *session); + struct GNUNET_ATS_Session *session); /** @@ -496,7 +496,7 @@ typedef void typedef void (*GNUNET_TRANSPORT_UpdateInboundDelay) (void *cls, const struct GNUNET_PeerIdentity *peer, - struct Session *session, + struct GNUNET_ATS_Session *session, struct GNUNET_TIME_Relative delay); @@ -546,7 +546,7 @@ typedef int */ typedef enum GNUNET_ATS_Network_Type (*GNUNET_TRANSPORT_GetNetworkType) (void *cls, - struct Session *session); + struct GNUNET_ATS_Session *session); /** @@ -575,7 +575,7 @@ typedef enum GNUNET_ATS_Network_Type */ typedef void (*GNUNET_TRANSPORT_SessionInfoCallback) (void *cls, - struct Session *session, + struct GNUNET_ATS_Session *session, const struct GNUNET_TRANSPORT_SessionInfo *info); -- cgit v1.2.3