diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-02 22:25:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-02 22:25:48 +0000 |
commit | 69c3a52cfa679175da8f06bdcb8e2e4195465e44 (patch) | |
tree | 73109126cfcf1a807c5dc1e778f40b955fc959c5 /src/transport/gnunet-service-transport_validation.h | |
parent | c42deb089faffd654e27bf661ce85d5c1bb38b7a (diff) | |
download | gnunet-69c3a52cfa679175da8f06bdcb8e2e4195465e44.tar.gz gnunet-69c3a52cfa679175da8f06bdcb8e2e4195465e44.zip |
avoid passing both PeerIdentity and Address (which contains PeerIdentity) if address is always present as then this is redundant
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.h')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/transport/gnunet-service-transport_validation.h b/src/transport/gnunet-service-transport_validation.h index df2ef0ee8..ce5c427a1 100644 --- a/src/transport/gnunet-service-transport_validation.h +++ b/src/transport/gnunet-service-transport_validation.h | |||
@@ -67,15 +67,13 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address, | |||
67 | * Query validation about the latest observed latency on a given | 67 | * Query validation about the latest observed latency on a given |
68 | * address. | 68 | * address. |
69 | * | 69 | * |
70 | * @param sender peer | ||
71 | * @param address the address | 70 | * @param address the address |
72 | * @param session session | 71 | * @param session session |
73 | * @return observed latency of the address, FOREVER if the address was | 72 | * @return observed latency of the address, FOREVER if the address was |
74 | * never successfully validated | 73 | * never successfully validated |
75 | */ | 74 | */ |
76 | struct GNUNET_TIME_Relative | 75 | struct GNUNET_TIME_Relative |
77 | GST_validation_get_address_latency (const struct GNUNET_PeerIdentity *sender, | 76 | GST_validation_get_address_latency (const struct GNUNET_HELLO_Address *address, |
78 | const struct GNUNET_HELLO_Address *address, | ||
79 | struct Session *session); | 77 | struct Session *session); |
80 | 78 | ||
81 | 79 | ||
@@ -84,7 +82,6 @@ GST_validation_get_address_latency (const struct GNUNET_PeerIdentity *sender, | |||
84 | * active address. | 82 | * active address. |
85 | * | 83 | * |
86 | * @param cls closure | 84 | * @param cls closure |
87 | * @param peer peer this update is about (never NULL) | ||
88 | * @param address address (never NULL) | 85 | * @param address address (never NULL) |
89 | * @param last_validation point in time when last validation was performed | 86 | * @param last_validation point in time when last validation was performed |
90 | * @param valid_until point in time how long address is valid | 87 | * @param valid_until point in time how long address is valid |
@@ -93,7 +90,6 @@ GST_validation_get_address_latency (const struct GNUNET_PeerIdentity *sender, | |||
93 | */ | 90 | */ |
94 | typedef void | 91 | typedef void |
95 | (*GST_ValidationChangedCallback) (void *cls, | 92 | (*GST_ValidationChangedCallback) (void *cls, |
96 | const struct GNUNET_PeerIdentity *peer, | ||
97 | const struct GNUNET_HELLO_Address *address, | 93 | const struct GNUNET_HELLO_Address *address, |
98 | struct GNUNET_TIME_Absolute last_validation, | 94 | struct GNUNET_TIME_Absolute last_validation, |
99 | struct GNUNET_TIME_Absolute valid_until, | 95 | struct GNUNET_TIME_Absolute valid_until, |
@@ -166,7 +162,6 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello); | |||
166 | */ | 162 | */ |
167 | typedef void | 163 | typedef void |
168 | (*GST_ValidationAddressCallback) (void *cls, | 164 | (*GST_ValidationAddressCallback) (void *cls, |
169 | const struct GNUNET_CRYPTO_EddsaPublicKey *public_key, | ||
170 | struct GNUNET_TIME_Absolute valid_until, | 165 | struct GNUNET_TIME_Absolute valid_until, |
171 | struct GNUNET_TIME_Absolute validation_block, | 166 | struct GNUNET_TIME_Absolute validation_block, |
172 | const struct GNUNET_HELLO_Address *address); | 167 | const struct GNUNET_HELLO_Address *address); |