* @param plugin_addr_len number of bytes in addr
* @param bandwidth assigned outbound bandwidth for the connection
*/
-typedef void (*GNUNET_TRANSPORT_ATS_AllocationNotification)(void *cls,
- const struct GNUNET_PeerIdentity *peer,
- const char *plugin_name,
- struct Session *session,
- const void *plugin_addr,
- size_t plugin_addr_len,
- struct GNUNET_BANDWIDTH_Value32NBO bandwidth);
+typedef void (*GNUNET_TRANSPORT_ATS_AllocationNotification) (void *cls,
+ const struct
+ GNUNET_PeerIdentity
+ * peer,
+ const char
+ *plugin_name,
+ struct Session *
+ session,
+ const void
+ *plugin_addr,
+ size_t
+ plugin_addr_len,
+ struct
+ GNUNET_BANDWIDTH_Value32NBO
+ bandwidth);
/**
* @param alloc_cb_cls closure for 'alloc_cb'
* @return ats context
*/
-struct GNUNET_ATS_Handle *
-GNUNET_ATS_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
- GNUNET_TRANSPORT_ATS_AllocationNotification alloc_cb,
- void *alloc_cb_cls);
+struct GNUNET_ATS_Handle *GNUNET_ATS_init (const struct
+ GNUNET_CONFIGURATION_Handle *cfg,
+ GNUNET_TRANSPORT_ATS_AllocationNotification
+ alloc_cb, void *alloc_cb_cls);
/**
*
* @param atc handle
*/
-void
-GNUNET_ATS_shutdown (struct GNUNET_ATS_Handle *atc);
+void GNUNET_ATS_shutdown (struct GNUNET_ATS_Handle *atc);
/**
* Signature of a function that takes an address suggestion
*
* @param cls closure
- * @param public_key public key of the peer
* @param peer identity of the new peer
* @param plugin_name name of the plugin, NULL if we have no suggestion
* @param plugin_addr suggested address, NULL if we have no suggestion
* @param ats performance data for the address (as far as known)
* @param ats_count number of performance records in 'ats'
*/
-typedef void (*GNUNET_ATS_AddressSuggestionCallback)(void *cls,
- const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *public_key,
- const struct GNUNET_PeerIdentity *peer,
- const char *plugin_name,
- const void *plugin_addr,
- size_t plugin_addr_len,
- struct GNUNET_BANDWIDTH_Value32NBO bandwidth,
- const struct GNUNET_TRANSPORT_ATS_Information *ats,
- uint32_t ats_count);
+typedef void (*GNUNET_ATS_AddressSuggestionCallback) (void *cls,
+ const struct
+ GNUNET_PeerIdentity *
+ peer,
+ const char *plugin_name,
+ const void *plugin_addr,
+ size_t plugin_addr_len,
+ struct
+ GNUNET_BANDWIDTH_Value32NBO
+ bandwidth,
+ const struct
+ GNUNET_TRANSPORT_ATS_Information
+ * ats,
+ uint32_t ats_count);
/**
* @param cb function to call with the address
* @param cb_cls closure for cb
*/
-struct GNUNET_ATS_SuggestionContext *
-GNUNET_ATS_suggest_address (struct GNUNET_ATS_Handle *atc,
- const struct GNUNET_PeerIdentity *peer,
- GNUNET_ATS_AddressSuggestionCallback cb,
- void *cb_cls);
+struct GNUNET_ATS_SuggestionContext *GNUNET_ATS_suggest_address (struct
+ GNUNET_ATS_Handle
+ *atc,
+ const struct
+ GNUNET_PeerIdentity
+ *peer,
+ GNUNET_ATS_AddressSuggestionCallback
+ cb,
+ void *cb_cls);
/**
* Calculate bandwidth assignments including the new peer.
*
* @param atc handle
- * @param public_key public key of the peer
* @param peer identity of the new peer
* @param plugin_name name of the currently used transport plugin
* @param session session in use (if available)
*/
void
GNUNET_ATS_peer_connect (struct GNUNET_ATS_Handle *atc,
- const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *public_key,
- const struct GNUNET_PeerIdentity *peer,
- const char *plugin_name,
- struct Session *session,
- const void *plugin_addr,
- size_t plugin_addr_len,
- const struct GNUNET_TRANSPORT_ATS_Information *ats,
- uint32_t ats_count);
+ const struct GNUNET_PeerIdentity *peer,
+ const char *plugin_name,
+ struct Session *session,
+ const void *plugin_addr,
+ size_t plugin_addr_len,
+ const struct GNUNET_TRANSPORT_ATS_Information *ats,
+ uint32_t ats_count);
/**
*/
void
GNUNET_ATS_peer_disconnect (struct GNUNET_ATS_Handle *atc,
- const struct GNUNET_PeerIdentity *peer);
+ const struct GNUNET_PeerIdentity *peer);
/**
*/
void
GNUNET_ATS_session_destroyed (struct GNUNET_ATS_Handle *atc,
- const struct GNUNET_PeerIdentity *peer,
- const struct Session *session);
+ const struct GNUNET_PeerIdentity *peer,
+ const struct Session *session);
/**
* for later use). Update bandwidth assignments.
*
* @param atc handle
- * @param public_key public key of the peer
* @param peer identity of the new peer
* @param valid_until how long is the address valid?
* @param plugin_name name of the transport plugin
*/
void
GNUNET_ATS_address_update (struct GNUNET_ATS_Handle *atc,
- const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *public_key,
- const struct GNUNET_PeerIdentity *peer,
- struct GNUNET_TIME_Absolute valid_until,
- const char *plugin_name,
- struct Session *session,
- const void *plugin_addr,
- size_t plugin_addr_len,
- const struct GNUNET_TRANSPORT_ATS_Information *ats,
- uint32_t ats_count);
+ const struct GNUNET_PeerIdentity *peer,
+ struct GNUNET_TIME_Absolute valid_until,
+ const char *plugin_name,
+ struct Session *session,
+ const void *plugin_addr,
+ size_t plugin_addr_len,
+ const struct GNUNET_TRANSPORT_ATS_Information *ats,
+ uint32_t ats_count);
#endif