diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-12-11 14:32:03 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-12-11 14:32:03 +0000 |
commit | eab4bfde4f32f1e72a28da8b60114c232273d7ba (patch) | |
tree | 8661f5368558863c588fa43b69f0ea247d07cf9a /src/ats/gnunet-service-ats_scheduling.c | |
parent | 29d7276369e846155f047a7b4e5f4b30487fd4ab (diff) | |
download | gnunet-eab4bfde4f32f1e72a28da8b60114c232273d7ba.tar.gz gnunet-eab4bfde4f32f1e72a28da8b60114c232273d7ba.zip |
changes
Diffstat (limited to 'src/ats/gnunet-service-ats_scheduling.c')
-rw-r--r-- | src/ats/gnunet-service-ats_scheduling.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats_scheduling.c b/src/ats/gnunet-service-ats_scheduling.c index ec7be9164..4526e1286 100644 --- a/src/ats/gnunet-service-ats_scheduling.c +++ b/src/ats/gnunet-service-ats_scheduling.c | |||
@@ -43,6 +43,11 @@ static struct GNUNET_SERVER_Client *my_client; | |||
43 | 43 | ||
44 | 44 | ||
45 | /** | 45 | /** |
46 | * Handle to address subsystem | ||
47 | */ | ||
48 | static struct GAS_Addresses_Handle *address_handle; | ||
49 | |||
50 | /** | ||
46 | * Register a new scheduling client. | 51 | * Register a new scheduling client. |
47 | * | 52 | * |
48 | * @param client handle of the new client | 53 | * @param client handle of the new client |
@@ -74,7 +79,7 @@ GAS_scheduling_remove_client (struct GNUNET_SERVER_Client *client) | |||
74 | { | 79 | { |
75 | if (my_client != client) | 80 | if (my_client != client) |
76 | return; | 81 | return; |
77 | GAS_addresses_destroy_all (); | 82 | GAS_addresses_destroy_all (address_handle); |
78 | my_client = NULL; | 83 | my_client = NULL; |
79 | } | 84 | } |
80 | 85 | ||
@@ -481,8 +486,9 @@ GAS_handle_address_destroyed (void *cls, struct GNUNET_SERVER_Client *client, | |||
481 | * @param server handle to our server | 486 | * @param server handle to our server |
482 | */ | 487 | */ |
483 | void | 488 | void |
484 | GAS_scheduling_init (struct GNUNET_SERVER_Handle *server) | 489 | GAS_scheduling_init (struct GNUNET_SERVER_Handle *server, struct GAS_Addresses_Handle *ah) |
485 | { | 490 | { |
491 | address_handle = ah; | ||
486 | nc = GNUNET_SERVER_notification_context_create (server, 128); | 492 | nc = GNUNET_SERVER_notification_context_create (server, 128); |
487 | } | 493 | } |
488 | 494 | ||