struct ATS_Address *tail;
};
-struct ATS_PreferedAddress
-{
- uint32_t bandwidth_out;
- uint32_t bandwidth_in;
- struct ATS_Address *address;
-};
-
struct GAS_MLP_SolutionContext
{
int lp_result;
/**
* GLPK LP control parameter
*/
+#if HAVE_LIBGLPK
glp_smcp control_param_lp;
+#else
+ void *control_param_lp;
+#endif
/**
* GLPK LP control parameter
*/
+#if HAVE_LIBGLPK
glp_iocp control_param_mlp;
+#else
+ void *control_param_mlp;
+#endif
/**
* Solves the task in an regular interval
*/
void *
GAS_mlp_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const struct GNUNET_STATISTICS_Handle *stats);
+ const struct GNUNET_STATISTICS_Handle *stats,
+ int *network,
+ unsigned long long *out_dest, unsigned long long *in_dest, int dest_length);
/**
* @param peer the peer
* @return suggested address
*/
-struct ATS_PreferedAddress *
+const struct ATS_Address *
GAS_mlp_get_preferred_address (void *solver,
struct GNUNET_CONTAINER_MultiHashMap * addresses,
const struct GNUNET_PeerIdentity *peer);