aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats_api_scheduling.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r--src/ats/ats_api_scheduling.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index a5dd0827c..d7a5a83a1 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -70,7 +70,7 @@ struct GNUNET_ATS_AddressRecord
70 * Session handle. NULL if we have an address but no 70 * Session handle. NULL if we have an address but no
71 * active session for this address. 71 * active session for this address.
72 */ 72 */
73 struct Session *session; 73 struct GNUNET_ATS_Session *session;
74 74
75 /** 75 /**
76 * Performance data about the address. 76 * Performance data about the address.
@@ -295,7 +295,7 @@ find_empty_session_slot (struct GNUNET_ATS_SchedulingHandle *sh)
295 */ 295 */
296static uint32_t 296static uint32_t
297find_session_id (struct GNUNET_ATS_SchedulingHandle *sh, 297find_session_id (struct GNUNET_ATS_SchedulingHandle *sh,
298 struct Session *session, 298 struct GNUNET_ATS_Session *session,
299 const struct GNUNET_HELLO_Address *address) 299 const struct GNUNET_HELLO_Address *address)
300{ 300{
301 uint32_t i; 301 uint32_t i;
@@ -367,9 +367,9 @@ process_ats_session_release_message (void *cls,
367 const struct GNUNET_MessageHeader *msg) 367 const struct GNUNET_MessageHeader *msg)
368{ 368{
369 struct GNUNET_ATS_SchedulingHandle *sh = cls; 369 struct GNUNET_ATS_SchedulingHandle *sh = cls;
370 const struct SessionReleaseMessage *srm; 370 const struct GNUNET_ATS_SessionReleaseMessage *srm;
371 371
372 srm = (const struct SessionReleaseMessage *) msg; 372 srm = (const struct GNUNET_ATS_SessionReleaseMessage *) msg;
373 /* Note: peer field in srm not necessary right now, 373 /* Note: peer field in srm not necessary right now,
374 but might be good to have in the future */ 374 but might be good to have in the future */
375 release_session (sh, 375 release_session (sh,
@@ -534,7 +534,7 @@ reconnect (struct GNUNET_ATS_SchedulingHandle *sh)
534 static const struct GNUNET_MQ_MessageHandler handlers[] = 534 static const struct GNUNET_MQ_MessageHandler handlers[] =
535 { { &process_ats_session_release_message, 535 { { &process_ats_session_release_message,
536 GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE, 536 GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE,
537 sizeof (struct SessionReleaseMessage) }, 537 sizeof (struct GNUNET_ATS_SessionReleaseMessage) },
538 { &process_ats_address_suggestion_message, 538 { &process_ats_address_suggestion_message,
539 GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION, 539 GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION,
540 sizeof (struct AddressSuggestionMessage) }, 540 sizeof (struct AddressSuggestionMessage) },
@@ -659,7 +659,7 @@ GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh)
659struct GNUNET_ATS_AddressRecord * 659struct GNUNET_ATS_AddressRecord *
660GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, 660GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh,
661 const struct GNUNET_HELLO_Address *address, 661 const struct GNUNET_HELLO_Address *address,
662 struct Session *session, 662 struct GNUNET_ATS_Session *session,
663 const struct GNUNET_ATS_Properties *prop) 663 const struct GNUNET_ATS_Properties *prop)
664{ 664{
665 struct GNUNET_ATS_AddressRecord *ar; 665 struct GNUNET_ATS_AddressRecord *ar;
@@ -716,7 +716,7 @@ GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh,
716 */ 716 */
717void 717void
718GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar, 718GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar,
719 struct Session *session) 719 struct GNUNET_ATS_Session *session)
720{ 720{
721 GNUNET_break (NULL == ar->session); 721 GNUNET_break (NULL == ar->session);
722 ar->session = session; 722 ar->session = session;
@@ -737,7 +737,7 @@ GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar,
737 */ 737 */
738int 738int
739GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar, 739GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar,
740 struct Session *session) 740 struct GNUNET_ATS_Session *session)
741{ 741{
742 GNUNET_assert (session == ar->session); 742 GNUNET_assert (session == ar->session);
743 ar->session = NULL; 743 ar->session = NULL;