};
GAS_reservations_init ();
GAS_performance_init (server);
- GAS_scheduling_init (server, cfg);
- GAS_addresses_init ();
+ GAS_scheduling_init (server);
+ GAS_addresses_init (cfg);
GNUNET_SERVER_disconnect_notify (server,
&client_disconnect_handler,
NULL);
static struct GNUNET_CONTAINER_MultiHashMap * addresses;
+static unsigned long long total_quota_in;
+
+static unsigned long long total_quota_out;
+
+
struct CompareAddressContext
{
struct ATS_Address * search;
/**
* Initialize address subsystem.
+ *
+ * @param cfg configuration to use
*/
void
-GAS_addresses_init ()
+GAS_addresses_init (const struct GNUNET_CONFIGURATION_Handle *cfg)
{
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_CONFIGURATION_get_value_number (cfg,
+ "core",
+ "TOTAL_QUOTA_IN",
+ &total_quota_in));
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_CONFIGURATION_get_value_number (cfg,
+ "core",
+ "TOTAL_QUOTA_OUT",
+ &total_quota_out));
addresses = GNUNET_CONTAINER_multihashmap_create(128);
}
/**
* Initialize address subsystem.
+ * @param cfg configuration to use
*/
void
-GAS_addresses_init (void);
+GAS_addresses_init (const struct GNUNET_CONFIGURATION_Handle *cfg);
/**
*/
static struct GNUNET_SERVER_NotificationContext *nc;
-static unsigned long long total_quota_in;
-
-static unsigned long long total_quota_out;
-
/**
* Find the scheduling client associated with the given
* Initialize scheduling subsystem.
*
* @param server handle to our server
- * @param cfg configuration to use
*/
void
-GAS_scheduling_init (struct GNUNET_SERVER_Handle *server,
- const struct GNUNET_CONFIGURATION_Handle *cfg)
+GAS_scheduling_init (struct GNUNET_SERVER_Handle *server)
{
- GNUNET_assert (GNUNET_OK ==
- GNUNET_CONFIGURATION_get_value_number (cfg,
- "core",
- "TOTAL_QUOTA_IN",
- &total_quota_in));
- GNUNET_assert (GNUNET_OK ==
- GNUNET_CONFIGURATION_get_value_number (cfg,
- "core",
- "TOTAL_QUOTA_OUT",
- &total_quota_out));
nc = GNUNET_SERVER_notification_context_create (server, 128);
}
* Initialize scheduling subsystem.
*
* @param server handle to our server
- * @param cfg configuration to use
*/
void
-GAS_scheduling_init (struct GNUNET_SERVER_Handle *server,
- const struct GNUNET_CONFIGURATION_Handle *cfg);
+GAS_scheduling_init (struct GNUNET_SERVER_Handle *server);
/**