diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-06-14 12:50:27 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-06-14 12:50:27 +0000 |
commit | c18fcd88d8897d0645900a1b6f527232d0153f88 (patch) | |
tree | 445441c0ac27a28e747757d7d347c8f44e1df72f /src/include/gnunet_ats_service.h | |
parent | 21f92c1b07d8361c270fa08f9f41d78a3e8e18b3 (diff) | |
download | gnunet-c18fcd88d8897d0645900a1b6f527232d0153f88.tar.gz gnunet-c18fcd88d8897d0645900a1b6f527232d0153f88.zip |
- adding GNUNET_ATS_address_add functionality .. no changes to scheduling API yet
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r-- | src/include/gnunet_ats_service.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index aa7a08916..e8e7abb5b 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -568,6 +568,23 @@ GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle *sh, | |||
568 | const struct sockaddr * addr, | 568 | const struct sockaddr * addr, |
569 | socklen_t addrlen); | 569 | socklen_t addrlen); |
570 | 570 | ||
571 | /** | ||
572 | * We have a new address ATS should know. Addresses have to be added with this | ||
573 | * function before they can be: updated, set in use and destroyed | ||
574 | * | ||
575 | * @param sh handle | ||
576 | * @param address the address | ||
577 | * @param session session handle (if available) | ||
578 | * @param ats performance data for the address | ||
579 | * @param ats_count number of performance records in 'ats' | ||
580 | */ | ||
581 | int | ||
582 | GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, | ||
583 | const struct GNUNET_HELLO_Address *address, | ||
584 | struct Session *session, | ||
585 | const struct GNUNET_ATS_Information *ats, | ||
586 | uint32_t ats_count); | ||
587 | |||
571 | 588 | ||
572 | /** | 589 | /** |
573 | * We have updated performance statistics for a given address. Note | 590 | * We have updated performance statistics for a given address. Note |