[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35156 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35156 - gnunet/src/include |
Date: |
Sun, 8 Feb 2015 16:12:23 +0100 |
Author: grothoff
Date: 2015-02-08 16:12:23 +0100 (Sun, 08 Feb 2015)
New Revision: 35156
Modified:
gnunet/src/include/gnunet_ats_service.h
Log:
cleaning up gnunet-service-ats_preferences.c
Modified: gnunet/src/include/gnunet_ats_service.h
===================================================================
--- gnunet/src/include/gnunet_ats_service.h 2015-02-08 15:12:14 UTC (rev
35155)
+++ gnunet/src/include/gnunet_ats_service.h 2015-02-08 15:12:23 UTC (rev
35156)
@@ -639,10 +639,6 @@
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 @@
* 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 @@
* 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 @@
* @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);
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35156 - gnunet/src/include,
gnunet <=