diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-08 15:12:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-08 15:12:23 +0000 |
commit | 632fa6c46a8ea3595be1f10f69ef72a5d051b049 (patch) | |
tree | d2c20e8b4513d23a7b2d314593b961c18e4b6ce1 /src/include/gnunet_ats_service.h | |
parent | 73189c33eb0e4c065c2dbd31ced703f48efdee6a (diff) | |
download | gnunet-632fa6c46a8ea3595be1f10f69ef72a5d051b049.tar.gz gnunet-632fa6c46a8ea3595be1f10f69ef72a5d051b049.zip |
cleaning up gnunet-service-ats_preferences.c
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r-- | src/include/gnunet_ats_service.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index 0bfaeb65d..8d5b8a094 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -639,10 +639,6 @@ GNUNET_ATS_reserve_bandwidth (struct GNUNET_ATS_PerformanceHandle *ph, | |||
639 | void | 639 | void |
640 | GNUNET_ATS_reserve_bandwidth_cancel (struct GNUNET_ATS_ReservationContext *rc); | 640 | GNUNET_ATS_reserve_bandwidth_cancel (struct GNUNET_ATS_ReservationContext *rc); |
641 | 641 | ||
642 | /** | ||
643 | * Number of preference types supported by ATS | ||
644 | */ | ||
645 | #define GNUNET_ATS_PreferenceCount 3 | ||
646 | 642 | ||
647 | /** | 643 | /** |
648 | * ATS preference types as array initializer | 644 | * ATS preference types as array initializer |
@@ -671,7 +667,7 @@ enum GNUNET_ATS_PreferenceKind | |||
671 | * by a double value giving the desired value (can be negative). | 667 | * by a double value giving the desired value (can be negative). |
672 | * Preference changes are forgotten if peers disconnect. | 668 | * Preference changes are forgotten if peers disconnect. |
673 | */ | 669 | */ |
674 | GNUNET_ATS_PREFERENCE_BANDWIDTH, | 670 | GNUNET_ATS_PREFERENCE_BANDWIDTH = 1, |
675 | 671 | ||
676 | /** | 672 | /** |
677 | * Change the peer's latency value to the given amount. The | 673 | * Change the peer's latency value to the given amount. The |
@@ -680,9 +676,17 @@ enum GNUNET_ATS_PreferenceKind | |||
680 | * the inverse of the latency in microseconds (minimum: 1 | 676 | * the inverse of the latency in microseconds (minimum: 1 |
681 | * microsecond) multiplied by the latency preferences. | 677 | * microsecond) multiplied by the latency preferences. |
682 | */ | 678 | */ |
683 | GNUNET_ATS_PREFERENCE_LATENCY | 679 | GNUNET_ATS_PREFERENCE_LATENCY = 2 |
680 | |||
681 | /** | ||
682 | * Number of preference types supported by ATS | ||
683 | */ | ||
684 | #define GNUNET_ATS_PreferenceCount 3 | ||
685 | |||
686 | |||
684 | }; | 687 | }; |
685 | 688 | ||
689 | |||
686 | /** | 690 | /** |
687 | * Convert a GNUNET_ATS_PreferenceType to a string | 691 | * Convert a GNUNET_ATS_PreferenceType to a string |
688 | * | 692 | * |
@@ -690,7 +694,7 @@ enum GNUNET_ATS_PreferenceKind | |||
690 | * @return a string or NULL if invalid | 694 | * @return a string or NULL if invalid |
691 | */ | 695 | */ |
692 | const char * | 696 | const char * |
693 | GNUNET_ATS_print_preference_type (uint32_t type); | 697 | GNUNET_ATS_print_preference_type (enum GNUNET_ATS_PreferenceKind type); |
694 | 698 | ||
695 | 699 | ||
696 | /** | 700 | /** |