From: Christian Grothoff Date: Sun, 8 Feb 2015 15:12:23 +0000 (+0000) Subject: cleaning up gnunet-service-ats_preferences.c X-Git-Tag: initial-import-from-subversion-38251~2416 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=632fa6c46a8ea3595be1f10f69ef72a5d051b049;p=oweals%2Fgnunet.git cleaning up gnunet-service-ats_preferences.c --- 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, void GNUNET_ATS_reserve_bandwidth_cancel (struct GNUNET_ATS_ReservationContext *rc); -/** - * Number of preference types supported by ATS - */ -#define GNUNET_ATS_PreferenceCount 3 /** * ATS preference types as array initializer @@ -671,7 +667,7 @@ enum GNUNET_ATS_PreferenceKind * by a double value giving the desired value (can be negative). * Preference changes are forgotten if peers disconnect. */ - GNUNET_ATS_PREFERENCE_BANDWIDTH, + GNUNET_ATS_PREFERENCE_BANDWIDTH = 1, /** * Change the peer's latency value to the given amount. The @@ -680,9 +676,17 @@ enum GNUNET_ATS_PreferenceKind * the inverse of the latency in microseconds (minimum: 1 * microsecond) multiplied by the latency preferences. */ - GNUNET_ATS_PREFERENCE_LATENCY + GNUNET_ATS_PREFERENCE_LATENCY = 2 + +/** + * Number of preference types supported by ATS + */ +#define GNUNET_ATS_PreferenceCount 3 + + }; + /** * Convert a GNUNET_ATS_PreferenceType to a string * @@ -690,7 +694,7 @@ enum GNUNET_ATS_PreferenceKind * @return a string or NULL if invalid */ const char * -GNUNET_ATS_print_preference_type (uint32_t type); +GNUNET_ATS_print_preference_type (enum GNUNET_ATS_PreferenceKind type); /**