diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-18 12:33:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-18 12:33:21 +0000 |
commit | 9cd0d5068f3341fe8451a61872894f28a5ac9047 (patch) | |
tree | 390b09e837978c1dbef176950b04f42ecf39e140 /src/include/gnunet_transport_plugin.h | |
parent | 38d26a302cba9de8362960186b645e8f2133a538 (diff) | |
download | gnunet-9cd0d5068f3341fe8451a61872894f28a5ac9047.tar.gz gnunet-9cd0d5068f3341fe8451a61872894f28a5ac9047.zip |
rename 'struct Session' to 'struct GNUNET_ATS_Session' to satisfy naming conventions
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r-- | src/include/gnunet_transport_plugin.h | 24 |
1 files changed, 12 insertions, 12 deletions
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 @@ | |||
48 | * connection may not have an address that can be used for meaningful | 48 | * connection may not have an address that can be used for meaningful |
49 | * distinction between sessions to the same peer. | 49 | * distinction between sessions to the same peer. |
50 | * | 50 | * |
51 | * Each 'struct Session' MUST start with the 'struct GNUNET_PeerIdentity' | 51 | * Each 'struct GNUNET_ATS_Session' MUST start with the 'struct GNUNET_PeerIdentity' |
52 | * of the peer the session is for (which will be used for some error | 52 | * of the peer the session is for (which will be used for some error |
53 | * checking by the ATS code). | 53 | * checking by the ATS code). |
54 | */ | 54 | */ |
55 | struct Session; | 55 | struct GNUNET_ATS_Session; |
56 | 56 | ||
57 | 57 | ||
58 | /** | 58 | /** |
@@ -71,7 +71,7 @@ struct Session; | |||
71 | typedef void | 71 | typedef void |
72 | (*GNUNET_TRANSPORT_SessionEnd) (void *cls, | 72 | (*GNUNET_TRANSPORT_SessionEnd) (void *cls, |
73 | const struct GNUNET_HELLO_Address *address, | 73 | const struct GNUNET_HELLO_Address *address, |
74 | struct Session *session); | 74 | struct GNUNET_ATS_Session *session); |
75 | 75 | ||
76 | 76 | ||
77 | /** | 77 | /** |
@@ -85,7 +85,7 @@ typedef void | |||
85 | typedef void | 85 | typedef void |
86 | (*GNUNET_TRANSPORT_SessionStart) (void *cls, | 86 | (*GNUNET_TRANSPORT_SessionStart) (void *cls, |
87 | const struct GNUNET_HELLO_Address *address, | 87 | const struct GNUNET_HELLO_Address *address, |
88 | struct Session *session, | 88 | struct GNUNET_ATS_Session *session, |
89 | enum GNUNET_ATS_Network_Type net); | 89 | enum GNUNET_ATS_Network_Type net); |
90 | 90 | ||
91 | 91 | ||
@@ -114,7 +114,7 @@ typedef void | |||
114 | typedef struct GNUNET_TIME_Relative | 114 | typedef struct GNUNET_TIME_Relative |
115 | (*GNUNET_TRANSPORT_PluginReceiveCallback) (void *cls, | 115 | (*GNUNET_TRANSPORT_PluginReceiveCallback) (void *cls, |
116 | const struct GNUNET_HELLO_Address *address, | 116 | const struct GNUNET_HELLO_Address *address, |
117 | struct Session *session, | 117 | struct GNUNET_ATS_Session *session, |
118 | const struct GNUNET_MessageHeader *message); | 118 | const struct GNUNET_MessageHeader *message); |
119 | 119 | ||
120 | 120 | ||
@@ -334,7 +334,7 @@ typedef void | |||
334 | */ | 334 | */ |
335 | typedef ssize_t | 335 | typedef ssize_t |
336 | (*GNUNET_TRANSPORT_TransmitFunction) (void *cls, | 336 | (*GNUNET_TRANSPORT_TransmitFunction) (void *cls, |
337 | struct Session *session, | 337 | struct GNUNET_ATS_Session *session, |
338 | const char *msgbuf, | 338 | const char *msgbuf, |
339 | size_t msgbuf_size, | 339 | size_t msgbuf_size, |
340 | unsigned int priority, | 340 | unsigned int priority, |
@@ -357,7 +357,7 @@ typedef ssize_t | |||
357 | */ | 357 | */ |
358 | typedef int | 358 | typedef int |
359 | (*GNUNET_TRANSPORT_DisconnectSessionFunction) (void *cls, | 359 | (*GNUNET_TRANSPORT_DisconnectSessionFunction) (void *cls, |
360 | struct Session *session); | 360 | struct GNUNET_ATS_Session *session); |
361 | 361 | ||
362 | 362 | ||
363 | /** | 363 | /** |
@@ -463,7 +463,7 @@ typedef int | |||
463 | * @param address the hello address | 463 | * @param address the hello address |
464 | * @return the session if the address is valid, NULL otherwise | 464 | * @return the session if the address is valid, NULL otherwise |
465 | */ | 465 | */ |
466 | typedef struct Session * | 466 | typedef struct GNUNET_ATS_Session * |
467 | (*GNUNET_TRANSPORT_CreateSession) (void *cls, | 467 | (*GNUNET_TRANSPORT_CreateSession) (void *cls, |
468 | const struct GNUNET_HELLO_Address *address); | 468 | const struct GNUNET_HELLO_Address *address); |
469 | 469 | ||
@@ -480,7 +480,7 @@ typedef struct Session * | |||
480 | typedef void | 480 | typedef void |
481 | (*GNUNET_TRANSPORT_UpdateSessionTimeout) (void *cls, | 481 | (*GNUNET_TRANSPORT_UpdateSessionTimeout) (void *cls, |
482 | const struct GNUNET_PeerIdentity *peer, | 482 | const struct GNUNET_PeerIdentity *peer, |
483 | struct Session *session); | 483 | struct GNUNET_ATS_Session *session); |
484 | 484 | ||
485 | 485 | ||
486 | /** | 486 | /** |
@@ -496,7 +496,7 @@ typedef void | |||
496 | typedef void | 496 | typedef void |
497 | (*GNUNET_TRANSPORT_UpdateInboundDelay) (void *cls, | 497 | (*GNUNET_TRANSPORT_UpdateInboundDelay) (void *cls, |
498 | const struct GNUNET_PeerIdentity *peer, | 498 | const struct GNUNET_PeerIdentity *peer, |
499 | struct Session *session, | 499 | struct GNUNET_ATS_Session *session, |
500 | struct GNUNET_TIME_Relative delay); | 500 | struct GNUNET_TIME_Relative delay); |
501 | 501 | ||
502 | 502 | ||
@@ -546,7 +546,7 @@ typedef int | |||
546 | */ | 546 | */ |
547 | typedef enum GNUNET_ATS_Network_Type | 547 | typedef enum GNUNET_ATS_Network_Type |
548 | (*GNUNET_TRANSPORT_GetNetworkType) (void *cls, | 548 | (*GNUNET_TRANSPORT_GetNetworkType) (void *cls, |
549 | struct Session *session); | 549 | struct GNUNET_ATS_Session *session); |
550 | 550 | ||
551 | 551 | ||
552 | /** | 552 | /** |
@@ -575,7 +575,7 @@ typedef enum GNUNET_ATS_Network_Type | |||
575 | */ | 575 | */ |
576 | typedef void | 576 | typedef void |
577 | (*GNUNET_TRANSPORT_SessionInfoCallback) (void *cls, | 577 | (*GNUNET_TRANSPORT_SessionInfoCallback) (void *cls, |
578 | struct Session *session, | 578 | struct GNUNET_ATS_Session *session, |
579 | const struct GNUNET_TRANSPORT_SessionInfo *info); | 579 | const struct GNUNET_TRANSPORT_SessionInfo *info); |
580 | 580 | ||
581 | 581 | ||