[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25232 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25232 - gnunet/src/ats |
Date: |
Tue, 4 Dec 2012 15:57:01 +0100 |
Author: wachs
Date: 2012-12-04 15:57:01 +0100 (Tue, 04 Dec 2012)
New Revision: 25232
Modified:
gnunet/src/ats/gnunet-service-ats_addresses.c
Log:
changes
Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c 2012-12-04 14:56:10 UTC
(rev 25231)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c 2012-12-04 14:57:01 UTC
(rev 25232)
@@ -577,18 +577,7 @@
}
/* Tell solver about update */
- switch (handle->ats_mode)
- {
- case MODE_MLP:
- GAS_mlp_address_update (handle->solver, handle->addresses, old);
- break;
- case MODE_SIMPLISTIC:
- GAS_simplistic_address_update (handle->solver, handle->addresses, old);
- break;
- default:
- GNUNET_break (0);
- break;
- }
+ handle->s_update (handle->solver, handle->addresses, old);
}
@@ -827,18 +816,8 @@
old->used = in_use;
/* Tell solver about update */
- switch (handle->ats_mode)
- {
- case MODE_MLP:
- GAS_mlp_address_update (handle->solver, handle->addresses, old);
- break;
- case MODE_SIMPLISTIC:
- GAS_simplistic_address_update (handle->solver, handle->addresses, old);
- break;
- default:
- GNUNET_break (0);
- break;
- }
+ handle->s_update (handle->solver, handle->addresses, old);
+
return GNUNET_OK;
}
@@ -978,20 +957,8 @@
if (GNUNET_NO == handle->running)
return;
-
/* Tell solver about update */
- switch (handle->ats_mode)
- {
- case MODE_MLP:
- GAS_mlp_address_change_preference (handle->solver, peer, kind, score);
- break;
- case MODE_SIMPLISTIC:
- GAS_simplistic_address_change_preference (handle->solver, peer, kind,
score);
- break;
- default:
- GNUNET_break (0);
- break;
- }
+ handle->s_pref (handle->solver, peer, kind, score);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25232 - gnunet/src/ats,
gnunet <=