gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29615 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r29615 - gnunet/src/ats
Date: Thu, 26 Sep 2013 14:59:42 +0200

Author: wachs
Date: 2013-09-26 14:59:41 +0200 (Thu, 26 Sep 2013)
New Revision: 29615

Modified:
   gnunet/src/ats/gnunet-service-ats-solver_proportional.h
   gnunet/src/ats/gnunet-service-ats_addresses.h
Log:
indent


Modified: gnunet/src/ats/gnunet-service-ats-solver_proportional.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats-solver_proportional.h     2013-09-26 
12:50:40 UTC (rev 29614)
+++ gnunet/src/ats/gnunet-service-ats-solver_proportional.h     2013-09-26 
12:59:41 UTC (rev 29615)
@@ -1,22 +1,22 @@
 /*
-     This file is part of GNUnet.
-     (C) 2011 Christian Grothoff (and other contributing authors)
+ This file is part of GNUnet.
+ (C) 2011 Christian Grothoff (and other contributing authors)
 
-     GNUnet is free software; you can redistribute it and/or modify
-     it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 3, or (at your
-     option) any later version.
+ GNUnet is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 3, or (at your
+ option) any later version.
 
-     GNUnet is distributed in the hope that it will be useful, but
-     WITHOUT ANY WARRANTY; without even the implied warranty of
-     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-     General Public License for more details.
+ GNUnet is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ General Public License for more details.
 
-     You should have received a copy of the GNU General Public License
-     along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
-*/
+ You should have received a copy of the GNU General Public License
+ along with GNUnet; see the file COPYING.  If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+ */
 
 /**
  * @file ats/gnunet-service-ats-solver_proportional.h
@@ -44,11 +44,9 @@
  */
 void
 GAS_proportional_address_change_preference (void *solver,
-                                                                               
        const struct GNUNET_PeerIdentity *peer,
-                                                                               
        enum GNUNET_ATS_PreferenceKind kind,
-                                                                               
        double pref_rel);
+    const struct GNUNET_PeerIdentity *peer, enum GNUNET_ATS_PreferenceKind 
kind,
+    double pref_rel);
 
-
 /**
  * Get application feedback for a peer
  *
@@ -60,14 +58,11 @@
  * @param score the score
  */
 void
-GAS_proportional_address_preference_feedback (void *solver,
-                                                                               
        void *application,
-                                                                               
        const struct GNUNET_PeerIdentity *peer,
-                                                                               
  const struct GNUNET_TIME_Relative scope,
-                                                                               
        enum GNUNET_ATS_PreferenceKind kind,
-                                                                               
        double score);
+GAS_proportional_address_preference_feedback (void *solver, void *application,
+    const struct GNUNET_PeerIdentity *peer,
+    const struct GNUNET_TIME_Relative scope,
+    enum GNUNET_ATS_PreferenceKind kind, double score);
 
-
 /**
  * Init the proportional problem solver
  *
@@ -99,18 +94,13 @@
  */
 void *
 GAS_proportional_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
-                     const struct GNUNET_STATISTICS_Handle *stats,
-                     const struct GNUNET_CONTAINER_MultiHashMap *addresses,
-                     int *network,
-                     unsigned long long *out_quota,
-                     unsigned long long *in_quota,
-                     int dest_length,
-                     GAS_bandwidth_changed_cb bw_changed_cb,
-                     void *bw_changed_cb_cls,
-                     GAS_get_preferences get_preference,
-                     void *get_preference_cls,
-                     GAS_get_properties get_properties,
-                     void *get_properties_cls);
+    const struct GNUNET_STATISTICS_Handle *stats,
+    const struct GNUNET_CONTAINER_MultiHashMap *addresses, int *network,
+    unsigned long long *out_quota, unsigned long long *in_quota,
+    int dest_length, GAS_bandwidth_changed_cb bw_changed_cb,
+    void *bw_changed_cb_cls, GAS_get_preferences get_preference,
+    void *get_preference_cls, GAS_get_properties get_properties,
+    void *get_properties_cls);
 
 /**
  * Shutdown the proportional problem solver
@@ -120,7 +110,6 @@
 void
 GAS_proportional_done (void * solver);
 
-
 /**
  * Add a single address within a network to the solver
  *
@@ -129,11 +118,9 @@
  * @param network network type of this address
  */
 void
-GAS_proportional_address_add (void *solver,
-                                                       struct ATS_Address 
*address,
-                                                       uint32_t network);
+GAS_proportional_address_add (void *solver, struct ATS_Address *address,
+    uint32_t network);
 
-
 /**
  * Transport properties for this address have changed
  *
@@ -145,12 +132,9 @@
  */
 void
 GAS_proportional_address_property_changed (void *solver,
-                                                                               
                                        struct ATS_Address *address,
-                                                                               
                                        uint32_t type,
-                                                                               
                                        uint32_t abs_value,
-                                                                               
                                        double rel_value);
+    struct ATS_Address *address, uint32_t type, uint32_t abs_value,
+    double rel_value);
 
-
 /**
  * Transport session for this address has changed
  *
@@ -163,11 +147,8 @@
  */
 void
 GAS_proportional_address_session_changed (void *solver,
-                                                                               
                                        struct ATS_Address *address,
-                                                                               
                                        uint32_t cur_session,
-                                                                               
                                        uint32_t new_session);
+    struct ATS_Address *address, uint32_t cur_session, uint32_t new_session);
 
-
 /**
  * Usage for this address has changed
  *
@@ -179,8 +160,7 @@
  */
 void
 GAS_proportional_address_inuse_changed (void *solver,
-                                                                               
                                        struct ATS_Address *address,
-                                                                               
                                        int in_use);
+    struct ATS_Address *address, int in_use);
 
 /**
  * Network scope for this address has changed
@@ -194,9 +174,7 @@
  */
 void
 GAS_proportional_address_change_network (void *solver,
-                                                                               
                                                           struct ATS_Address 
*address,
-                                                                               
                                                           uint32_t 
current_network,
-                                                                               
                                                           uint32_t 
new_network);
+    struct ATS_Address *address, uint32_t current_network, uint32_t 
new_network);
 
 /**
  * Remove an address from the solver
@@ -206,10 +184,9 @@
  * @param session_only delete only session not whole address
  */
 void
-GAS_proportional_address_delete (void *solver,
-    struct ATS_Address *address, int session_only);
+GAS_proportional_address_delete (void *solver, struct ATS_Address *address,
+    int session_only);
 
-
 /**
  * Start a bulk operation
  *
@@ -218,7 +195,6 @@
 void
 GAS_proportional_bulk_start (void *solver);
 
-
 /**
  * Bulk operation done
  */
@@ -233,9 +209,8 @@
  */
 void
 GAS_proportional_stop_get_preferred_address (void *solver,
-                                     const struct GNUNET_PeerIdentity *peer);
+    const struct GNUNET_PeerIdentity *peer);
 
-
 /**
  * Get the prefered address for a specific peer
  *
@@ -244,6 +219,6 @@
  */
 const struct ATS_Address *
 GAS_proportional_get_preferred_address (void *solver,
-                               const struct GNUNET_PeerIdentity *peer);
+    const struct GNUNET_PeerIdentity *peer);
 
 /* end of gnunet-service-ats-solver_proportional.c */

Modified: gnunet/src/ats/gnunet-service-ats_addresses.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.h       2013-09-26 12:50:40 UTC 
(rev 29614)
+++ gnunet/src/ats/gnunet-service-ats_addresses.h       2013-09-26 12:59:41 UTC 
(rev 29615)
@@ -1,22 +1,22 @@
 /*
-     This file is part of GNUnet.
-     (C) 2011 Christian Grothoff (and other contributing authors)
+ This file is part of GNUnet.
+ (C) 2011 Christian Grothoff (and other contributing authors)
 
-     GNUnet is free software; you can redistribute it and/or modify
-     it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 3, or (at your
-     option) any later version.
+ GNUnet is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 3, or (at your
+ option) any later version.
 
-     GNUnet is distributed in the hope that it will be useful, but
-     WITHOUT ANY WARRANTY; without even the implied warranty of
-     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-     General Public License for more details.
+ GNUnet is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ General Public License for more details.
 
-     You should have received a copy of the GNU General Public License
-     along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
-*/
+ You should have received a copy of the GNU General Public License
+ along with GNUnet; see the file COPYING.  If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+ */
 
 /**
  * @file ats/gnunet-service-ats_addresses.h
@@ -225,40 +225,37 @@
 
  */
 
-
 /*
  * How long will address suggestions blocked after a suggestion
  */
 #define ATS_BLOCKING_DELTA 
GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 100)
 
-
 /**
  * Information provided by ATS normalization
  */
 struct GAS_NormalizationInfo
 {
-               /**
-                * Next index to use in averaging queue
-                */
-               unsigned int avg_queue_index;
+  /**
+   * Next index to use in averaging queue
+   */
+  unsigned int avg_queue_index;
 
-               /**
-                * Averaging queue
-                */
-         uint32_t atsi_abs[GAS_normalization_queue_length];
+  /**
+   * Averaging queue
+   */
+  uint32_t atsi_abs[GAS_normalization_queue_length];
 
-               /**
-                * Averaged ATSI values from queue
-                */
-               uint32_t avg;
+  /**
+   * Averaged ATSI values from queue
+   */
+  uint32_t avg;
 
-               /**
-                * Normalized values from queue to a range of values [1.0...2.0]
-                */
-               double norm;
+  /**
+   * Normalized values from queue to a range of values [1.0...2.0]
+   */
+  double norm;
 };
 
-
 /**
  * Address with additional information
  */
@@ -351,16 +348,14 @@
   struct GAS_NormalizationInfo atsin[GNUNET_ATS_QualityPropertiesCount];
 };
 
-
 /**
  * Callback to call from solver when bandwidth for address has changed
  *
  * @param address the with changed bandwidth assigned
  */
 typedef void
- (*GAS_bandwidth_changed_cb) (void *cls, struct ATS_Address *address);
+(*GAS_bandwidth_changed_cb) (void *cls, struct ATS_Address *address);
 
-
 /**
  * Callback to call from solver to obtain application preference values for a
  * peer
@@ -371,9 +366,8 @@
  *     GNUNET_ATS_PreferenceCount elements
  */
 typedef const double *
- (*GAS_get_preferences) (void *cls, const struct GNUNET_PeerIdentity *id);
+(*GAS_get_preferences) (void *cls, const struct GNUNET_PeerIdentity *id);
 
-
 /**
  * Callback to call from solver to obtain transport properties for an
  * address
@@ -384,10 +378,8 @@
  *     GNUNET_ATS_PreferenceCount elements
  */
 typedef const double *
- (*GAS_get_properties) (void *cls, const struct ATS_Address *address);
+(*GAS_get_properties) (void *cls, const struct ATS_Address *address);
 
-
-
 /*
  * Solver API
  * ----------
@@ -417,21 +409,15 @@
  * @return handle for the solver on success, NULL on fail
  */
 typedef void *
- (*GAS_solver_init) (const struct GNUNET_CONFIGURATION_Handle *cfg,
-                     const struct GNUNET_STATISTICS_Handle *stats,
-                     const struct GNUNET_CONTAINER_MultiHashMap *addresses,
-                     int *network,
-                     unsigned long long *out_quota,
-                     unsigned long long *in_quota,
-                     int dest_length,
-                     GAS_bandwidth_changed_cb bw_changed_cb,
-                     void *bw_changed_cb_cls,
-                     GAS_get_preferences get_preference,
-                     void *get_preference_cls,
-                     GAS_get_properties get_properties,
-                     void *get_properties_cls);
+(*GAS_solver_init) (const struct GNUNET_CONFIGURATION_Handle *cfg,
+    const struct GNUNET_STATISTICS_Handle *stats,
+    const struct GNUNET_CONTAINER_MultiHashMap *addresses, int *network,
+    unsigned long long *out_quota, unsigned long long *in_quota,
+    int dest_length, GAS_bandwidth_changed_cb bw_changed_cb,
+    void *bw_changed_cb_cls, GAS_get_preferences get_preference,
+    void *get_preference_cls, GAS_get_properties get_properties,
+    void *get_properties_cls);
 
-
 /**
  * Change the preference for a peer
  *
@@ -444,11 +430,9 @@
  */
 typedef void
 (*GAS_solver_address_change_preference) (void *solver,
-                                                                               
                                                                                
 const struct GNUNET_PeerIdentity *peer,
-                                                                               
                                                                                
 enum GNUNET_ATS_PreferenceKind kind,
-                                                                               
                                                                                
 double pref_rel);
+    const struct GNUNET_PeerIdentity *peer, enum GNUNET_ATS_PreferenceKind 
kind,
+    double pref_rel);
 
-
 /**
  * Give feedback about the current assignment
  *
@@ -460,12 +444,10 @@
  * @param score the feedback score
  */
 typedef void
-(*GAS_solver_address_feedback_preference) (void *solver,
-                                                                               
                                                                                
 void *application,
-                                                                               
                                                                                
 const struct GNUNET_PeerIdentity *peer,
-                                                                               
                                                                                
 const struct GNUNET_TIME_Relative scope,
-                                                                               
                                                                                
 enum GNUNET_ATS_PreferenceKind kind,
-                                                                               
                                                                                
 double score);
+(*GAS_solver_address_feedback_preference) (void *solver, void *application,
+    const struct GNUNET_PeerIdentity *peer,
+    const struct GNUNET_TIME_Relative scope,
+    enum GNUNET_ATS_PreferenceKind kind, double score);
 
 /**
  * Notify the solver about a bulk operation changing possibly a lot of values
@@ -476,7 +458,6 @@
 typedef void
 (*GAS_solver_bulk_start) (void *solver);
 
-
 /**
  * Mark a bulk operation as done
  * Solver will resolve if values have changed
@@ -486,7 +467,6 @@
 typedef void
 (*GAS_solver_bulk_stop) (void *solver);
 
-
 /**
  * Add a single address within a network to the solver
  *
@@ -496,11 +476,9 @@
  * @param network network type of this address
  */
 typedef void
-(*GAS_solver_address_add) (void *solver,
-                                                                               
                         struct ATS_Address *address,
-                                                                               
                         uint32_t network);
+(*GAS_solver_address_add) (void *solver, struct ATS_Address *address,
+    uint32_t network);
 
-
 /**
  * Delete an address or just the session from the solver
  *
@@ -510,11 +488,9 @@
  * @param session_only remove address or just session
  */
 typedef void
- (*GAS_solver_address_delete) (void *solver,
-                               struct ATS_Address *address,
-                               int session_only);
+(*GAS_solver_address_delete) (void *solver, struct ATS_Address *address,
+    int session_only);
 
-
 /**
  * Transport properties for this address have changed
  *
@@ -526,12 +502,9 @@
  */
 typedef void
 (*GAS_solver_address_property_changed) (void *solver,
-                                                                               
                                                                                
struct ATS_Address *address,
-                                                                               
                                                                                
uint32_t type,
-                                                                               
                                                                                
uint32_t abs_value,
-                                                                               
                                                                                
double rel_value);
+    struct ATS_Address *address, uint32_t type, uint32_t abs_value,
+    double rel_value);
 
-
 /**
  * Transport session for this address has changed
  *
@@ -544,9 +517,7 @@
  */
 typedef void
 (*GAS_solver_address_session_changed) (void *solver,
-                                                                               
                                                                        struct 
ATS_Address *address,
-                                                                               
                                                                        
uint32_t cur_session,
-                                                                               
                                                                        
uint32_t new_session);
+    struct ATS_Address *address, uint32_t cur_session, uint32_t new_session);
 
 /**
  * Transport session for this address has changed
@@ -558,9 +529,8 @@
  * @param in_use usage state
  */
 typedef void
-(*GAS_solver_address_inuse_changed) (void *solver,
-                                                                               
                                                           struct ATS_Address 
*address,
-                                                                               
                                                           int in_use);
+(*GAS_solver_address_inuse_changed) (void *solver, struct ATS_Address *address,
+    int in_use);
 
 /**
  * Network scope for this address has changed
@@ -574,11 +544,8 @@
  */
 typedef void
 (*GAS_solver_address_network_changed) (void *solver,
-                                                                               
                                                           struct ATS_Address 
*address,
-                                                                               
                                                           uint32_t 
current_network,
-                                                                               
                                                           uint32_t 
new_network);
+    struct ATS_Address *address, uint32_t current_network, uint32_t 
new_network);
 
-
 /**
  * Get the prefered address for a peer from solver
  *
@@ -588,9 +555,8 @@
  */
 typedef const struct ATS_Address *
 (*GAS_solver_get_preferred_address) (void *solver,
-                                     const struct GNUNET_PeerIdentity *peer);
+    const struct GNUNET_PeerIdentity *peer);
 
-
 /**
  * Stop getting the prefered address for a peer from solver
  *
@@ -600,7 +566,7 @@
  */
 typedef void
 (*GAS_solver_stop_get_preferred_address) (void *solver,
-                                     const struct GNUNET_PeerIdentity *peer);
+    const struct GNUNET_PeerIdentity *peer);
 
 /**
  * Shutdown solver
@@ -609,9 +575,8 @@
  */
 
 typedef void
- (*GAS_solver_done) (void *solver);
+(*GAS_solver_done) (void *solver);
 
-
 /**
  * Initialize address subsystem. The addresses subsystem manages the addresses
  * known and current performance information. It has a solver component
@@ -624,9 +589,8 @@
  */
 struct GAS_Addresses_Handle *
 GAS_addresses_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
-                    const struct GNUNET_STATISTICS_Handle *stats);
+    const struct GNUNET_STATISTICS_Handle *stats);
 
-
 /**
  * Shutdown address subsystem.
  *
@@ -635,7 +599,6 @@
 void
 GAS_addresses_done (struct GAS_Addresses_Handle *handle);
 
-
 /**
  * Add a new address for a peer.
  *
@@ -650,15 +613,10 @@
  */
 void
 GAS_addresses_add (struct GAS_Addresses_Handle *handle,
-                   const struct GNUNET_PeerIdentity *peer,
-                   const char *plugin_name,
-                   const void *plugin_addr,
-                   size_t plugin_addr_len,
-                   uint32_t session_id,
-                   const struct GNUNET_ATS_Information *atsi,
-                   uint32_t atsi_count);
+    const struct GNUNET_PeerIdentity *peer, const char *plugin_name,
+    const void *plugin_addr, size_t plugin_addr_len, uint32_t session_id,
+    const struct GNUNET_ATS_Information *atsi, uint32_t atsi_count);
 
-
 /**
  * Notification about active use of an address.
  * in_use == GNUNET_YES:
@@ -680,14 +638,10 @@
  */
 int
 GAS_addresses_in_use (struct GAS_Addresses_Handle *handle,
-                      const struct GNUNET_PeerIdentity *peer,
-                      const char *plugin_name,
-                      const void *plugin_addr,
-                      size_t plugin_addr_len,
-                      uint32_t session_id,
-                      int in_use);
+    const struct GNUNET_PeerIdentity *peer, const char *plugin_name,
+    const void *plugin_addr, size_t plugin_addr_len, uint32_t session_id,
+    int in_use);
 
-
 /**
  * Update an address with a session or performance information for a peer.
  *
@@ -705,15 +659,10 @@
  */
 void
 GAS_addresses_update (struct GAS_Addresses_Handle *handle,
-                      const struct GNUNET_PeerIdentity *peer,
-                      const char *plugin_name,
-                      const void *plugin_addr,
-                      size_t plugin_addr_len,
-                      uint32_t session_id,
-                      const struct GNUNET_ATS_Information *atsi,
-                      uint32_t atsi_count);
+    const struct GNUNET_PeerIdentity *peer, const char *plugin_name,
+    const void *plugin_addr, size_t plugin_addr_len, uint32_t session_id,
+    const struct GNUNET_ATS_Information *atsi, uint32_t atsi_count);
 
-
 /**
  * Remove an address or just a session for a peer.
  *
@@ -726,13 +675,9 @@
  */
 void
 GAS_addresses_destroy (struct GAS_Addresses_Handle *handle,
-                       const struct GNUNET_PeerIdentity *peer,
-                       const char *plugin_name,
-                       const void *plugin_addr,
-                       size_t plugin_addr_len,
-                       uint32_t session_id);
+    const struct GNUNET_PeerIdentity *peer, const char *plugin_name,
+    const void *plugin_addr, size_t plugin_addr_len, uint32_t session_id);
 
-
 /**
  * Remove all addresses
  *
@@ -741,7 +686,6 @@
 void
 GAS_addresses_destroy_all (struct GAS_Addresses_Handle *handle);
 
-
 /**
  * Request address suggestions for a peer
  *
@@ -750,7 +694,7 @@
  */
 void
 GAS_addresses_request_address (struct GAS_Addresses_Handle *handle,
-                               const struct GNUNET_PeerIdentity *peer);
+    const struct GNUNET_PeerIdentity *peer);
 
 /**
  * Cancel address suggestions for a peer
@@ -760,9 +704,8 @@
  */
 void
 GAS_addresses_request_address_cancel (struct GAS_Addresses_Handle *handle,
-                                      const struct GNUNET_PeerIdentity *peer);
+    const struct GNUNET_PeerIdentity *peer);
 
-
 /**
  * Reset suggestion backoff for a peer
  *
@@ -774,9 +717,8 @@
  */
 void
 GAS_addresses_handle_backoff_reset (struct GAS_Addresses_Handle *handle,
-                                    const struct GNUNET_PeerIdentity *peer);
+    const struct GNUNET_PeerIdentity *peer);
 
-
 /**
  * Change the preference for a peer
  *
@@ -788,12 +730,9 @@
  */
 void
 GAS_addresses_change_preference (struct GAS_Addresses_Handle *handle,
-                                 void *client,
-                                 const struct GNUNET_PeerIdentity *peer,
-                                 enum GNUNET_ATS_PreferenceKind kind,
-                                 float score_abs);
+    void *client, const struct GNUNET_PeerIdentity *peer,
+    enum GNUNET_ATS_PreferenceKind kind, float score_abs);
 
-
 /**
  * Change the preference for a peer
  *
@@ -806,23 +745,20 @@
  */
 void
 GAS_addresses_preference_feedback (struct GAS_Addresses_Handle *handle,
-                                                                               
                                                                void 
*application,
-                                                                               
                                                                const struct 
GNUNET_PeerIdentity *peer,
-                                                                               
                                                                const struct 
GNUNET_TIME_Relative scope,
-                                                                               
                                                                enum 
GNUNET_ATS_PreferenceKind kind,
-                                                                               
                                                                float 
score_abs);
+    void *application, const struct GNUNET_PeerIdentity *peer,
+    const struct GNUNET_TIME_Relative scope,
+    enum GNUNET_ATS_PreferenceKind kind, float score_abs);
 
-
 /**
  * Iterator for GAS_addresses_iterate_peers
  *
  * @param p_it_cls closure
  * @param id the peer id
  */
-typedef void (*GNUNET_ATS_Peer_Iterator) (void *p_it_cls,
-                                          const struct GNUNET_PeerIdentity 
*id);
+typedef void
+(*GNUNET_ATS_Peer_Iterator) (void *p_it_cls,
+    const struct GNUNET_PeerIdentity *id);
 
-
 /**
  * Return all peers currently known to ATS
  *
@@ -832,10 +768,8 @@
  */
 void
 GAS_addresses_iterate_peers (struct GAS_Addresses_Handle *handle,
-                             GNUNET_ATS_Peer_Iterator p_it,
-                             void *p_it_cls);
+    GNUNET_ATS_Peer_Iterator p_it, void *p_it_cls);
 
-
 /**
  * Iterator for GAS_addresses_get_peer_info
  *
@@ -850,18 +784,14 @@
  * @param bandwidth_out current outbound bandwidth assigned to address
  * @param bandwidth_in current inbound bandwidth assigned to address
  */
-typedef void (*GNUNET_ATS_PeerInfo_Iterator) (void *p_it_cls,
-    const struct GNUNET_PeerIdentity *id,
-    const char *plugin_name,
-    const void *plugin_addr,
-    size_t plugin_addr_len,
-    const int address_active,
-    const struct GNUNET_ATS_Information *atsi,
-    uint32_t atsi_count,
+typedef void
+(*GNUNET_ATS_PeerInfo_Iterator) (void *p_it_cls,
+    const struct GNUNET_PeerIdentity *id, const char *plugin_name,
+    const void *plugin_addr, size_t plugin_addr_len, const int address_active,
+    const struct GNUNET_ATS_Information *atsi, uint32_t atsi_count,
     struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
     struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in);
 
-
 /**
  * Return information all peers currently known to ATS
  *
@@ -872,9 +802,8 @@
  */
 void
 GAS_addresses_get_peer_info (struct GAS_Addresses_Handle *handle,
-                             const struct GNUNET_PeerIdentity *peer,
-                             GNUNET_ATS_PeerInfo_Iterator pi_it,
-                             void *pi_it_cls);
+    const struct GNUNET_PeerIdentity *peer, GNUNET_ATS_PeerInfo_Iterator pi_it,
+    void *pi_it_cls);
 
 #endif
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]