[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27575 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27575 - gnunet/src/include |
Date: |
Tue, 25 Jun 2013 14:03:17 +0200 |
Author: wachs
Date: 2013-06-25 14:03:17 +0200 (Tue, 25 Jun 2013)
New Revision: 27575
Modified:
gnunet/src/include/gnunet_ats_service.h
Log:
renaming properties and adding function to print properties
Modified: gnunet/src/include/gnunet_ats_service.h
===================================================================
--- gnunet/src/include/gnunet_ats_service.h 2013-06-25 11:33:18 UTC (rev
27574)
+++ gnunet/src/include/gnunet_ats_service.h 2013-06-25 12:03:17 UTC (rev
27575)
@@ -87,7 +87,7 @@
/**
* ATS properties types as string array initializer
*/
-#define GNUNET_ATS_PropertyStrings {"Terminator", "Utilization up",
"Utilization down", "Network type", "Delay", "Distance", "Cost WAN", "Cost
LAN", "Cost WLAN"}
+#define GNUNET_ATS_PropertyStrings {"TERMINATOR", "UTILIZATION_UP",
"UTILIZATION_DOWN", "NETWORK_TYPE", "DELAY", "DISTANCE", "COST_WAN",
"COST_LAN", "COST_WLAN"}
/**
* Enum defining all known property types for ATS Enum values are used
@@ -611,7 +611,16 @@
GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh,
const struct GNUNET_PeerIdentity *peer);
+/**
+ * Convert a ATS property to a string
+ *
+ * @param type the atsi type
+ * @return a string or NULL if invalid
+ */
+const char *
+GNUNET_ATS_print_property_type (uint32_t type);
+
/**
* Convert a GNUNET_ATS_NetworkType to a string
*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27575 - gnunet/src/include,
gnunet <=