From f2d1198d45bc3786d0164a5b6df928768022d1b7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 2 Feb 2015 23:31:25 +0000 Subject: dramatically simplify quota notification: avoid registration, simply always notify plugin --- src/include/gnunet_transport_plugin.h | 42 ----------------------------------- 1 file changed, 42 deletions(-) (limited to 'src/include/gnunet_transport_plugin.h') diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 8ebb3a92b..0e75cb454 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h @@ -192,38 +192,6 @@ typedef struct GNUNET_TIME_Relative size_t amount_recved); -/** - * Function to be called by the plugin to be notified about changes to the quota - * for a specific peer, plugin and session - * - * @param cls closure - * @param peer the peer to be notified about - * @param plugin the plugin to be notified about - * @param session the session for include in the notification - * - */ -typedef void -(*GNUNET_TRANSPORT_RegisterQuotaNotification) (void *cls, - const struct GNUNET_PeerIdentity *peer, - const char *plugin, - struct Session *session); - - -/** - * Function to be called by the plugin to stop notification about changes to the quota - * for a specific peer, plugin and session - * - * @param cls closure - * @param peer the peer to be notified about - * @param plugin the plugin to be notified about - * @param session the session for include in the notification - */ -typedef void -(*GNUNET_TRANSPORT_UnregisterQuotaNotification) (void *cls, - const struct GNUNET_PeerIdentity *peer, - const char *plugin, - struct Session *session); - /** * Function that returns a HELLO message. * @@ -306,16 +274,6 @@ struct GNUNET_TRANSPORT_PluginEnvironment */ GNUNET_TRANSPORT_UpdateAddressMetrics update_address_metrics; - /** - * FIXME: document! - */ - GNUNET_TRANSPORT_RegisterQuotaNotification register_quota_notification; - - /** - * FIXME: document! - */ - GNUNET_TRANSPORT_UnregisterQuotaNotification unregister_quota_notification; - /** * What is the maximum number of connections that this transport * should allow? Transports that do not have sessions (such as -- cgit v1.2.3