diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-13 12:31:32 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-13 12:31:32 +0000 |
commit | e9a2275de31a09124c983716a611c7a8fc3ee167 (patch) | |
tree | c79ccb582039293e78a576fd29c1cec9d3d70b12 /src/include/gnunet_ats_service.h | |
parent | 92bf2c7f90bb5e77bd30d3297b40e2299ad816f5 (diff) | |
download | gnunet-e9a2275de31a09124c983716a611c7a8fc3ee167.tar.gz gnunet-e9a2275de31a09124c983716a611c7a8fc3ee167.zip |
move code from service to api
fix bug
add test
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r-- | src/include/gnunet_ats_service.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index 898a06654..421855710 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -522,6 +522,19 @@ void | |||
522 | GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh, | 522 | GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh, |
523 | const struct GNUNET_PeerIdentity *peer); | 523 | const struct GNUNET_PeerIdentity *peer); |
524 | 524 | ||
525 | |||
526 | /** | ||
527 | * Returns where the address is located: LAN or WAN or ... | ||
528 | * @param addr address | ||
529 | * @param addrlen address length | ||
530 | * @return location as GNUNET_ATS_Information | ||
531 | */ | ||
532 | struct GNUNET_ATS_Information | ||
533 | GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle *sh, | ||
534 | const struct sockaddr * addr, | ||
535 | socklen_t addrlen); | ||
536 | |||
537 | |||
525 | /** | 538 | /** |
526 | * We have updated performance statistics for a given address. Note | 539 | * We have updated performance statistics for a given address. Note |
527 | * that this function can be called for addresses that are currently | 540 | * that this function can be called for addresses that are currently |