diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-02 23:16:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-02 23:16:13 +0000 |
commit | 8727c5c69097aeb474ce6039bf31650400b6286a (patch) | |
tree | 7159a82133c6d5d411a02a513aa247df7031a263 /src/transport/gnunet-service-transport_neighbours.h | |
parent | fee260b50973a0e26eaa10a5736a3e16ee6201ae (diff) | |
download | gnunet-8727c5c69097aeb474ce6039bf31650400b6286a.tar.gz gnunet-8727c5c69097aeb474ce6039bf31650400b6286a.zip |
reduce callback insanity for callbacks that are always bound to only one value
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h index 0c07557d0..093bd06e1 100644 --- a/src/transport/gnunet-service-transport_neighbours.h +++ b/src/transport/gnunet-service-transport_neighbours.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | (C) 2010,2011 Christian Grothoff (and other contributing authors) | 3 | (C) 2010-2015 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -33,26 +33,14 @@ | |||
33 | #include "transport.h" | 33 | #include "transport.h" |
34 | #include "gnunet_util_lib.h" | 34 | #include "gnunet_util_lib.h" |
35 | 35 | ||
36 | // TODO: | ||
37 | // - ATS and similar info is a bit lacking in the API right now... | ||
38 | |||
39 | |||
40 | 36 | ||
41 | /** | 37 | /** |
42 | * Initialize the neighbours subsystem. | 38 | * Initialize the neighbours subsystem. |
43 | * | 39 | * |
44 | * @param cls closure for callbacks | ||
45 | * @param connect_cb function to call if we connect to a peer | ||
46 | * @param disconnect_cb function to call if we disconnect from a peer | ||
47 | * @param peer_address_cb function to call if a neighbour's active address changes | ||
48 | * @param max_fds maximum number of fds to use | 40 | * @param max_fds maximum number of fds to use |
49 | */ | 41 | */ |
50 | void | 42 | void |
51 | GST_neighbours_start (void *cls, | 43 | GST_neighbours_start (unsigned int max_fds); |
52 | NotifyConnect connect_cb, | ||
53 | GNUNET_TRANSPORT_NotifyDisconnect disconnect_cb, | ||
54 | GNUNET_TRANSPORT_NeighbourChangeCallback peer_address_cb, | ||
55 | unsigned int max_fds); | ||
56 | 44 | ||
57 | 45 | ||
58 | /** | 46 | /** |