From: Matthias Wachs Date: Tue, 25 Jun 2013 12:03:17 +0000 (+0000) Subject: renaming properties and adding function to print properties X-Git-Tag: initial-import-from-subversion-38251~8656 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c81af35766848fc29e9e63233b531453d7d235a;p=oweals%2Fgnunet.git renaming properties and adding function to print properties --- 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 /** * 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,6 +611,15 @@ void 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