diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2015-04-09 11:00:31 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2015-04-09 11:00:31 +0000 |
commit | a541dc562dcd9508acdd0102d3aee3c857463bed (patch) | |
tree | c2ea4f22bd7837d7f92bff8f40ba269ae8e7cbc0 /src/include/gnunet_ats_service.h | |
parent | 0f7360b201dae0e83cc73fdc5d02d81b7a368522 (diff) | |
download | gnunet-a541dc562dcd9508acdd0102d3aee3c857463bed.tar.gz gnunet-a541dc562dcd9508acdd0102d3aee3c857463bed.zip |
adding number of preferences to allow iterating over preferences
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r-- | src/include/gnunet_ats_service.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index 749e604fa..68499121e 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -605,6 +605,11 @@ GNUNET_ATS_reserve_bandwidth_cancel (struct GNUNET_ATS_ReservationContext *rc); | |||
605 | 605 | ||
606 | 606 | ||
607 | /** | 607 | /** |
608 | * Number of preference types supported by ATS | ||
609 | */ | ||
610 | #define GNUNET_ATS_PreferenceCount 3 | ||
611 | |||
612 | /** | ||
608 | * ATS preference types as array initializer | 613 | * ATS preference types as array initializer |
609 | */ | 614 | */ |
610 | #define GNUNET_ATS_PreferenceType {GNUNET_ATS_PREFERENCE_END, GNUNET_ATS_PREFERENCE_BANDWIDTH, GNUNET_ATS_PREFERENCE_LATENCY} | 615 | #define GNUNET_ATS_PreferenceType {GNUNET_ATS_PREFERENCE_END, GNUNET_ATS_PREFERENCE_BANDWIDTH, GNUNET_ATS_PREFERENCE_LATENCY} |