aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-02 23:31:25 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-02 23:31:25 +0000
commitf2d1198d45bc3786d0164a5b6df928768022d1b7 (patch)
treebcce1d8e39bbcddda171c3637bf418f4fbd41824 /src/include
parent8727c5c69097aeb474ce6039bf31650400b6286a (diff)
downloadgnunet-f2d1198d45bc3786d0164a5b6df928768022d1b7.tar.gz
gnunet-f2d1198d45bc3786d0164a5b6df928768022d1b7.zip
dramatically simplify quota notification: avoid registration, simply always notify plugin
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_transport_plugin.h42
1 files changed, 0 insertions, 42 deletions
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
@@ -193,38 +193,6 @@ typedef struct GNUNET_TIME_Relative
193 193
194 194
195/** 195/**
196 * Function to be called by the plugin to be notified about changes to the quota
197 * for a specific peer, plugin and session
198 *
199 * @param cls closure
200 * @param peer the peer to be notified about
201 * @param plugin the plugin to be notified about
202 * @param session the session for include in the notification
203 *
204 */
205typedef void
206(*GNUNET_TRANSPORT_RegisterQuotaNotification) (void *cls,
207 const struct GNUNET_PeerIdentity *peer,
208 const char *plugin,
209 struct Session *session);
210
211
212/**
213 * Function to be called by the plugin to stop notification about changes to the quota
214 * for a specific peer, plugin and session
215 *
216 * @param cls closure
217 * @param peer the peer to be notified about
218 * @param plugin the plugin to be notified about
219 * @param session the session for include in the notification
220 */
221typedef void
222(*GNUNET_TRANSPORT_UnregisterQuotaNotification) (void *cls,
223 const struct GNUNET_PeerIdentity *peer,
224 const char *plugin,
225 struct Session *session);
226
227/**
228 * Function that returns a HELLO message. 196 * Function that returns a HELLO message.
229 * 197 *
230 * @return HELLO message (FIXME with what?) 198 * @return HELLO message (FIXME with what?)
@@ -307,16 +275,6 @@ struct GNUNET_TRANSPORT_PluginEnvironment
307 GNUNET_TRANSPORT_UpdateAddressMetrics update_address_metrics; 275 GNUNET_TRANSPORT_UpdateAddressMetrics update_address_metrics;
308 276
309 /** 277 /**
310 * FIXME: document!
311 */
312 GNUNET_TRANSPORT_RegisterQuotaNotification register_quota_notification;
313
314 /**
315 * FIXME: document!
316 */
317 GNUNET_TRANSPORT_UnregisterQuotaNotification unregister_quota_notification;
318
319 /**
320 * What is the maximum number of connections that this transport 278 * What is the maximum number of connections that this transport
321 * should allow? Transports that do not have sessions (such as 279 * should allow? Transports that do not have sessions (such as
322 * UDP) can ignore this value. 280 * UDP) can ignore this value.