aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_ats_service.h11
-rw-r--r--src/include/gnunet_transport_plugin.h24
-rw-r--r--src/include/gnunet_transport_service.h2
3 files changed, 18 insertions, 19 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index 6a2449a7a..4264f22a4 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -328,9 +328,8 @@ struct GNUNET_ATS_SchedulingHandle;
328 328
329/** 329/**
330 * Opaque session handle, defined by plugins. Contents not known to ATS. 330 * Opaque session handle, defined by plugins. Contents not known to ATS.
331 * FIXME: This violates our naming conventions.
332 */ 331 */
333struct Session; 332struct GNUNET_ATS_Session;
334 333
335 334
336/** 335/**
@@ -353,7 +352,7 @@ typedef void
353(*GNUNET_ATS_AddressSuggestionCallback) (void *cls, 352(*GNUNET_ATS_AddressSuggestionCallback) (void *cls,
354 const struct GNUNET_PeerIdentity *peer, 353 const struct GNUNET_PeerIdentity *peer,
355 const struct GNUNET_HELLO_Address *address, 354 const struct GNUNET_HELLO_Address *address,
356 struct Session *session, 355 struct GNUNET_ATS_Session *session,
357 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, 356 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
358 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in); 357 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in);
359 358
@@ -402,7 +401,7 @@ struct GNUNET_ATS_AddressRecord;
402struct GNUNET_ATS_AddressRecord * 401struct GNUNET_ATS_AddressRecord *
403GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, 402GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh,
404 const struct GNUNET_HELLO_Address *address, 403 const struct GNUNET_HELLO_Address *address,
405 struct Session *session, 404 struct GNUNET_ATS_Session *session,
406 const struct GNUNET_ATS_Properties *prop); 405 const struct GNUNET_ATS_Properties *prop);
407 406
408 407
@@ -414,7 +413,7 @@ GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh,
414 */ 413 */
415void 414void
416GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar, 415GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar,
417 struct Session *session); 416 struct GNUNET_ATS_Session *session);
418 417
419 418
420/** 419/**
@@ -431,7 +430,7 @@ GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar,
431 */ 430 */
432int 431int
433GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar, 432GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar,
434 struct Session *session); 433 struct GNUNET_ATS_Session *session);
435 434
436 435
437/** 436/**
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 */
55struct Session; 55struct GNUNET_ATS_Session;
56 56
57 57
58/** 58/**
@@ -71,7 +71,7 @@ struct Session;
71typedef void 71typedef 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
85typedef void 85typedef 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
114typedef struct GNUNET_TIME_Relative 114typedef 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 */
335typedef ssize_t 335typedef 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 */
358typedef int 358typedef 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 */
466typedef struct Session * 466typedef 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 *
480typedef void 480typedef 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
496typedef void 496typedef 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 */
547typedef enum GNUNET_ATS_Network_Type 547typedef 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 */
576typedef void 576typedef 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
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index 7f178e4c4..07470047e 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -891,7 +891,7 @@ struct GNUNET_TRANSPORT_PluginMonitor;
891 891
892/** 892/**
893 * Abstract representation of a plugin's session. 893 * Abstract representation of a plugin's session.
894 * Corresponds to the `struct Session` within the TRANSPORT service. 894 * Corresponds to the `struct GNUNET_ATS_Session` within the TRANSPORT service.
895 */ 895 */
896struct GNUNET_TRANSPORT_PluginSession; 896struct GNUNET_TRANSPORT_PluginSession;
897 897