diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-16 08:38:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-16 08:38:55 +0000 |
commit | c345e101fd271feb03c311d0ec1837fc6cf179f3 (patch) | |
tree | e02cb4ca82dd9809caba2644c4ceb512329587fb /src/ats/gnunet-service-ats_scheduling.h | |
parent | acac80b2c2b5cf432e903350a0dc6bbaa5ee877c (diff) | |
download | gnunet-c345e101fd271feb03c311d0ec1837fc6cf179f3.tar.gz gnunet-c345e101fd271feb03c311d0ec1837fc6cf179f3.zip |
-doxygen, indentation, nicer stats
Diffstat (limited to 'src/ats/gnunet-service-ats_scheduling.h')
-rw-r--r-- | src/ats/gnunet-service-ats_scheduling.h | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/src/ats/gnunet-service-ats_scheduling.h b/src/ats/gnunet-service-ats_scheduling.h index 1603437b8..f8b7000bd 100644 --- a/src/ats/gnunet-service-ats_scheduling.h +++ b/src/ats/gnunet-service-ats_scheduling.h | |||
@@ -34,7 +34,7 @@ | |||
34 | * Register a new scheduling client. | 34 | * Register a new scheduling client. |
35 | * | 35 | * |
36 | * @param client handle of the new client | 36 | * @param client handle of the new client |
37 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 37 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
38 | */ | 38 | */ |
39 | int | 39 | int |
40 | GAS_scheduling_add_client (struct GNUNET_SERVER_Client *client); | 40 | GAS_scheduling_add_client (struct GNUNET_SERVER_Client *client); |
@@ -79,17 +79,16 @@ GAS_handle_reset_backoff (void *cls, | |||
79 | * @param bandwidth_in assigned inbound bandwidth | 79 | * @param bandwidth_in assigned inbound bandwidth |
80 | */ | 80 | */ |
81 | void | 81 | void |
82 | GAS_scheduling_transmit_address_suggestion (const struct GNUNET_PeerIdentity | 82 | GAS_scheduling_transmit_address_suggestion (const struct GNUNET_PeerIdentity *peer, |
83 | *peer, | 83 | const char *plugin_name, |
84 | const char *plugin_name, | 84 | const void *plugin_addr, |
85 | const void *plugin_addr, | 85 | size_t plugin_addr_len, |
86 | size_t plugin_addr_len, | 86 | uint32_t local_address_info, |
87 | uint32_t local_address_info, | 87 | uint32_t session_id, |
88 | uint32_t session_id, | 88 | const struct GNUNET_ATS_Information *atsi, |
89 | const struct GNUNET_ATS_Information *atsi, | 89 | uint32_t atsi_count, |
90 | uint32_t atsi_count, | 90 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
91 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 91 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in); |
92 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in); | ||
93 | 92 | ||
94 | 93 | ||
95 | /** | 94 | /** |
@@ -100,7 +99,8 @@ GAS_scheduling_transmit_address_suggestion (const struct GNUNET_PeerIdentity | |||
100 | * @param message the request message | 99 | * @param message the request message |
101 | */ | 100 | */ |
102 | void | 101 | void |
103 | GAS_handle_request_address (void *cls, struct GNUNET_SERVER_Client *client, | 102 | GAS_handle_request_address (void *cls, |
103 | struct GNUNET_SERVER_Client *client, | ||
104 | const struct GNUNET_MessageHeader *message); | 104 | const struct GNUNET_MessageHeader *message); |
105 | 105 | ||
106 | 106 | ||
@@ -125,9 +125,11 @@ GAS_handle_request_address_cancel (void *cls, | |||
125 | * @param message the request message | 125 | * @param message the request message |
126 | */ | 126 | */ |
127 | void | 127 | void |
128 | GAS_handle_address_add (void *cls, struct GNUNET_SERVER_Client *client, | 128 | GAS_handle_address_add (void *cls, |
129 | struct GNUNET_SERVER_Client *client, | ||
129 | const struct GNUNET_MessageHeader *message); | 130 | const struct GNUNET_MessageHeader *message); |
130 | 131 | ||
132 | |||
131 | /** | 133 | /** |
132 | * Handle 'address update' messages from clients. | 134 | * Handle 'address update' messages from clients. |
133 | * | 135 | * |
@@ -136,7 +138,8 @@ GAS_handle_address_add (void *cls, struct GNUNET_SERVER_Client *client, | |||
136 | * @param message the request message | 138 | * @param message the request message |
137 | */ | 139 | */ |
138 | void | 140 | void |
139 | GAS_handle_address_update (void *cls, struct GNUNET_SERVER_Client *client, | 141 | GAS_handle_address_update (void *cls, |
142 | struct GNUNET_SERVER_Client *client, | ||
140 | const struct GNUNET_MessageHeader *message); | 143 | const struct GNUNET_MessageHeader *message); |
141 | 144 | ||
142 | 145 | ||
@@ -148,7 +151,8 @@ GAS_handle_address_update (void *cls, struct GNUNET_SERVER_Client *client, | |||
148 | * @param message the request message | 151 | * @param message the request message |
149 | */ | 152 | */ |
150 | void | 153 | void |
151 | GAS_handle_address_in_use (void *cls, struct GNUNET_SERVER_Client *client, | 154 | GAS_handle_address_in_use (void *cls, |
155 | struct GNUNET_SERVER_Client *client, | ||
152 | const struct GNUNET_MessageHeader *message); | 156 | const struct GNUNET_MessageHeader *message); |
153 | 157 | ||
154 | 158 | ||
@@ -172,7 +176,8 @@ GAS_handle_address_destroyed (void *cls, | |||
172 | * @param ah the address handle to use | 176 | * @param ah the address handle to use |
173 | */ | 177 | */ |
174 | void | 178 | void |
175 | GAS_scheduling_init (struct GNUNET_SERVER_Handle *server, struct GAS_Addresses_Handle *ah); | 179 | GAS_scheduling_init (struct GNUNET_SERVER_Handle *server, |
180 | struct GAS_Addresses_Handle *ah); | ||
176 | 181 | ||
177 | 182 | ||
178 | /** | 183 | /** |