};
GAS_reservations_init ();
GAS_performance_init (server);
- GAS_scheduling_init (server);
+ GAS_scheduling_init (server, cfg);
GAS_addresses_init ();
GNUNET_SERVER_disconnect_notify (server,
&client_disconnect_handler,
*/
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)
+GAS_scheduling_init (struct GNUNET_SERVER_Handle *server,
+ 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));
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);
+GAS_scheduling_init (struct GNUNET_SERVER_Handle *server,
+ const struct GNUNET_CONFIGURATION_Handle *cfg);
/**