updated configuration files
[oweals/gnunet.git] / src / ats / test_ats_api_common.h
index 04dd11b57138053b3a9ee9d266997332e195d50e..1f9bd10c117fc9fa60666c3273e7f20851ffd982 100644 (file)
@@ -27,6 +27,7 @@
 #include "platform.h"
 #include "gnunet_common.h"
 #include "gnunet_ats_service.h"
+#include "gnunet-service-ats_addresses.h"
 
 #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
 
@@ -72,4 +73,25 @@ int
 compare_ats (const struct GNUNET_ATS_Information *ats_is, uint32_t ats_count_is,
              const struct GNUNET_ATS_Information *ats_should, uint32_t ats_count_should);
 
+struct ATS_Address *
+create_address (const struct GNUNET_PeerIdentity *peer,
+                const char *plugin_name,
+                const void *plugin_addr, size_t plugin_addr_len,
+                uint32_t session_id);
+
+/**
+ * Load quotas for networks from configuration
+ *
+ * @param cfg configuration handle
+ * @param out_dest where to write outbound quotas
+ * @param in_dest where to write inbound quotas
+ * @param dest_length length of inbound and outbound arrays
+ * @return number of networks loaded
+ */
+unsigned int
+load_quotas (const struct GNUNET_CONFIGURATION_Handle *cfg,
+                                                unsigned long long *out_dest,
+                                                unsigned long long *in_dest,
+                                                int dest_length);
+
 /* end of file test_ats_api_common.h */