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/ats/ats_api_scheduling.c | |
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/ats/ats_api_scheduling.c')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 16 |
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 | */ |
296 | static uint32_t | 296 | static uint32_t |
297 | find_session_id (struct GNUNET_ATS_SchedulingHandle *sh, | 297 | find_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) | |||
659 | struct GNUNET_ATS_AddressRecord * | 659 | struct GNUNET_ATS_AddressRecord * |
660 | GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, | 660 | GNUNET_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 | */ |
717 | void | 717 | void |
718 | GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar, | 718 | GNUNET_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 | */ |
738 | int | 738 | int |
739 | GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar, | 739 | GNUNET_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; |