aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_service.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-11-16 14:11:07 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-11-16 14:11:07 +0000
commitfefe7e30ec57df396375b0f6d26c6581a1916704 (patch)
tree9aae84196285465b5ba273bdee5902cd83125285 /src/include/gnunet_ats_service.h
parenta692bdacf59e0f6406428610fcb9af53864cc8a3 (diff)
downloadgnunet-fefe7e30ec57df396375b0f6d26c6581a1916704.tar.gz
gnunet-fefe7e30ec57df396375b0f6d26c6581a1916704.zip
print ats properties
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r--src/include/gnunet_ats_service.h34
1 files changed, 28 insertions, 6 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index e8e7abb5b..11d718158 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -30,6 +30,20 @@
30#include "gnunet_util_lib.h" 30#include "gnunet_util_lib.h"
31#include "gnunet_hello_lib.h" 31#include "gnunet_hello_lib.h"
32 32
33/**
34 * Number of network types supported by ATS
35 */
36#define GNUNET_ATS_NetworkTypeCount 5
37
38/**
39 * ATS network types as array initializer
40 */
41#define GNUNET_ATS_NetworkType {GNUNET_ATS_NET_UNSPECIFIED, GNUNET_ATS_NET_LOOPBACK, GNUNET_ATS_NET_LAN, GNUNET_ATS_NET_WAN, GNUNET_ATS_NET_WLAN}
42
43/**
44 * ATS network types as string array initializer
45 */
46#define GNUNET_ATS_NetworkTypeString {"UNSPECIFIED", "LOOPBACK", "LAN", "WAN", "WLAN"}
33 47
34enum GNUNET_ATS_Network_Type 48enum GNUNET_ATS_Network_Type
35{ 49{
@@ -40,6 +54,18 @@ enum GNUNET_ATS_Network_Type
40 GNUNET_ATS_NET_WLAN = 4, 54 GNUNET_ATS_NET_WLAN = 4,
41}; 55};
42 56
57
58
59/**
60 * Number of property types supported by ATS
61 */
62#define GNUNET_ATS_PropertyCount 9
63
64/**
65 * ATS properties types as string array initializer
66 */
67#define GNUNET_ATS_PropertyStrings {"Terminator", "Utilization up", "Utilization down", "Network type", "Delay", "Distance", "Cost WAN", "Cost LAN", "Cost WLAN"}
68
43/** 69/**
44 * Enum defining all known property types for ATS Enum values are used 70 * Enum defining all known property types for ATS Enum values are used
45 * in the GNUNET_ATS_Information struct as 71 * in the GNUNET_ATS_Information struct as
@@ -413,14 +439,10 @@ enum GNUNET_ATS_Property
413#define GNUNET_ATS_QualityProperties {GNUNET_ATS_QUALITY_NET_DELAY, GNUNET_ATS_QUALITY_NET_DISTANCE} 439#define GNUNET_ATS_QualityProperties {GNUNET_ATS_QUALITY_NET_DELAY, GNUNET_ATS_QUALITY_NET_DISTANCE}
414 440
415/** 441/**
416 * Number of ATS quality properties 442 * ATS quality properties as string array initializer
417 */ 443 */
418#define GNUNET_ATS_NetworkTypeCount 5 444#define GNUNET_ATS_QualityPropertiesString {"Delay", "Distance"}
419 445
420/**
421 * ATS quality properties as array initializer
422 */
423#define GNUNET_ATS_NetworkType {GNUNET_ATS_NET_UNSPECIFIED, GNUNET_ATS_NET_LOOPBACK, GNUNET_ATS_NET_LAN, GNUNET_ATS_NET_WAN, GNUNET_ATS_NET_WLAN}
424 446
425GNUNET_NETWORK_STRUCT_BEGIN 447GNUNET_NETWORK_STRUCT_BEGIN
426 448