aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_service.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-06-25 12:03:17 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-06-25 12:03:17 +0000
commit3c81af35766848fc29e9e63233b531453d7d235a (patch)
treecdc46013e15873b58a72fd9d743e4880ba13194f /src/include/gnunet_ats_service.h
parent146296888ebb90e6b0d14fd05a077b55091f9b0f (diff)
downloadgnunet-3c81af35766848fc29e9e63233b531453d7d235a.tar.gz
gnunet-3c81af35766848fc29e9e63233b531453d7d235a.zip
renaming properties and adding function to print properties
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r--src/include/gnunet_ats_service.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index e71c73e1c..3ab623264 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -87,7 +87,7 @@ enum GNUNET_ATS_Network_Type
87/** 87/**
88 * ATS properties types as string array initializer 88 * ATS properties types as string array initializer
89 */ 89 */
90#define GNUNET_ATS_PropertyStrings {"Terminator", "Utilization up", "Utilization down", "Network type", "Delay", "Distance", "Cost WAN", "Cost LAN", "Cost WLAN"} 90#define GNUNET_ATS_PropertyStrings {"TERMINATOR", "UTILIZATION_UP", "UTILIZATION_DOWN", "NETWORK_TYPE", "DELAY", "DISTANCE", "COST_WAN", "COST_LAN", "COST_WLAN"}
91 91
92/** 92/**
93 * Enum defining all known property types for ATS Enum values are used 93 * Enum defining all known property types for ATS Enum values are used
@@ -611,6 +611,15 @@ void
611GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh, 611GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh,
612 const struct GNUNET_PeerIdentity *peer); 612 const struct GNUNET_PeerIdentity *peer);
613 613
614/**
615 * Convert a ATS property to a string
616 *
617 * @param type the atsi type
618 * @return a string or NULL if invalid
619 */
620const char *
621GNUNET_ATS_print_property_type (uint32_t type);
622
614 623
615/** 624/**
616 * Convert a GNUNET_ATS_NetworkType to a string 625 * Convert a GNUNET_ATS_NetworkType to a string