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/test_ats_lib.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/test_ats_lib.c')
-rw-r--r-- | src/ats/test_ats_lib.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ats/test_ats_lib.c b/src/ats/test_ats_lib.c index 314f19007..e191588bb 100644 --- a/src/ats/test_ats_lib.c +++ b/src/ats/test_ats_lib.c | |||
@@ -36,7 +36,7 @@ struct AddressSuggestData | |||
36 | /** | 36 | /** |
37 | * Which session were we given? | 37 | * Which session were we given? |
38 | */ | 38 | */ |
39 | struct Session *session; | 39 | struct GNUNET_ATS_Session *session; |
40 | 40 | ||
41 | /** | 41 | /** |
42 | * What address was assigned? | 42 | * What address was assigned? |
@@ -404,10 +404,10 @@ make_address (uint32_t pid, | |||
404 | /** | 404 | /** |
405 | * Our dummy sessions. | 405 | * Our dummy sessions. |
406 | */ | 406 | */ |
407 | struct Session | 407 | struct GNUNET_ATS_Session |
408 | { | 408 | { |
409 | /** | 409 | /** |
410 | * Field to avoid `0 == sizeof(struct Session)`. | 410 | * Field to avoid `0 == sizeof(struct GNUNET_ATS_Session)`. |
411 | */ | 411 | */ |
412 | unsigned int non_empty; | 412 | unsigned int non_empty; |
413 | }; | 413 | }; |
@@ -419,10 +419,10 @@ struct Session | |||
419 | * @param i which session number to return | 419 | * @param i which session number to return |
420 | * @return NULL if @a i is 0, otherwise a pointer unique to @a i | 420 | * @return NULL if @a i is 0, otherwise a pointer unique to @a i |
421 | */ | 421 | */ |
422 | static struct Session * | 422 | static struct GNUNET_ATS_Session * |
423 | make_session (unsigned int i) | 423 | make_session (unsigned int i) |
424 | { | 424 | { |
425 | struct Session *baseptr = NULL; | 425 | struct GNUNET_ATS_Session *baseptr = NULL; |
426 | 426 | ||
427 | if (0 == i) | 427 | if (0 == i) |
428 | return NULL; | 428 | return NULL; |
@@ -618,7 +618,7 @@ interpreter (void *cls, | |||
618 | case CMD_ADD_ADDRESS: | 618 | case CMD_ADD_ADDRESS: |
619 | { | 619 | { |
620 | struct GNUNET_HELLO_Address *addr; | 620 | struct GNUNET_HELLO_Address *addr; |
621 | struct Session *session; | 621 | struct GNUNET_ATS_Session *session; |
622 | 622 | ||
623 | addr = make_address (cmd->details.add_address.pid, | 623 | addr = make_address (cmd->details.add_address.pid, |
624 | cmd->details.add_address.addr_num, | 624 | cmd->details.add_address.addr_num, |
@@ -781,7 +781,7 @@ interpreter (void *cls, | |||
781 | case CMD_ADD_SESSION: | 781 | case CMD_ADD_SESSION: |
782 | { | 782 | { |
783 | struct Command *add; | 783 | struct Command *add; |
784 | struct Session *session; | 784 | struct GNUNET_ATS_Session *session; |
785 | 785 | ||
786 | add = find_command (CMD_ADD_ADDRESS, | 786 | add = find_command (CMD_ADD_ADDRESS, |
787 | cmd->details.add_session.add_label); | 787 | cmd->details.add_session.add_label); |
@@ -796,7 +796,7 @@ interpreter (void *cls, | |||
796 | { | 796 | { |
797 | struct Command *add_address; | 797 | struct Command *add_address; |
798 | struct Command *add_session; | 798 | struct Command *add_session; |
799 | struct Session *session; | 799 | struct GNUNET_ATS_Session *session; |
800 | 800 | ||
801 | add_session = find_command (CMD_ADD_SESSION, | 801 | add_session = find_command (CMD_ADD_SESSION, |
802 | cmd->details.del_session.add_session_label); | 802 | cmd->details.del_session.add_session_label); |
@@ -891,7 +891,7 @@ static void | |||
891 | address_suggest_cb (void *cls, | 891 | address_suggest_cb (void *cls, |
892 | const struct GNUNET_PeerIdentity *peer, | 892 | const struct GNUNET_PeerIdentity *peer, |
893 | const struct GNUNET_HELLO_Address *address, | 893 | const struct GNUNET_HELLO_Address *address, |
894 | struct Session *session, | 894 | struct GNUNET_ATS_Session *session, |
895 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 895 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
896 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) | 896 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) |
897 | { | 897 | { |