aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-10 11:09:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-10 11:09:42 +0000
commit376b5f749c03e1ff149c2e8248eed9bec928872a (patch)
tree7c44864219de6d7d77bdaec34c9e4b7aaf199647 /src/include
parent9767d2478ccb8dcc3152cb617d84cd4cec2097c3 (diff)
downloadgnunet-376b5f749c03e1ff149c2e8248eed9bec928872a.tar.gz
gnunet-376b5f749c03e1ff149c2e8248eed9bec928872a.zip
dead code elimination
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_core_service.h70
-rw-r--r--src/include/gnunet_protocols.h5
2 files changed, 0 insertions, 75 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h
index 7419b44a2..366986b4b 100644
--- a/src/include/gnunet_core_service.h
+++ b/src/include/gnunet_core_service.h
@@ -240,76 +240,6 @@ GNUNET_CORE_disconnect (struct GNUNET_CORE_Handle *handle);
240 240
241 241
242/** 242/**
243 * Function called with perference change information about the given peer.
244 *
245 * @param cls closure
246 * @param peer identifies the peer
247 * @param amount set to the amount that was actually reserved or unreserved;
248 * either the full requested amount or zero (no partial reservations)
249 * @param res_delay if the reservation could not be satisfied (amount was 0), how
250 * long should the client wait until re-trying?
251 */
252typedef void (*GNUNET_CORE_PeerConfigurationInfoCallback) (void *cls,
253 const struct
254 GNUNET_PeerIdentity *
255 peer,
256 int32_t amount,
257 struct
258 GNUNET_TIME_Relative
259 res_delay);
260
261
262
263/**
264 * Context that can be used to cancel a peer information request.
265 */
266struct GNUNET_CORE_InformationRequestContext;
267
268
269/**
270 * Obtain statistics and/or change preferences for the given peer.
271 * You can only have one such pending request per peer.
272 *
273 * @param h core handle
274 * @param peer identifies the peer
275 * @param amount reserve N bytes for receiving, negative
276 * amounts can be used to undo a (recent) reservation;
277 * @param preference increase incoming traffic share preference by this amount;
278 * in the absence of "amount" reservations, we use this
279 * preference value to assign proportional bandwidth shares
280 * to all connected peers
281 * @param info function to call with the resulting configuration information
282 * @param info_cls closure for info
283 * @return NULL on error
284 * @deprecated will be replaced soon
285 */
286struct GNUNET_CORE_InformationRequestContext *
287GNUNET_CORE_peer_change_preference (struct GNUNET_CORE_Handle *h,
288 const struct GNUNET_PeerIdentity *peer,
289 int32_t amount, uint64_t preference,
290 GNUNET_CORE_PeerConfigurationInfoCallback
291 info, void *info_cls);
292
293
294/**
295 * Cancel request for getting information about a peer.
296 * Note that an eventual change in preference, trust or bandwidth
297 * assignment MAY have already been committed at the time,
298 * so cancelling a request is NOT sure to undo the original
299 * request. The original request may or may not still commit.
300 * The only thing cancellation ensures is that the callback
301 * from the original request will no longer be called.
302 *
303 * @param irc context returned by the original GNUNET_CORE_peer_get_info call
304 * @deprecated will be replaced soon
305 */
306void
307GNUNET_CORE_peer_change_preference_cancel (struct
308 GNUNET_CORE_InformationRequestContext
309 *irc);
310
311
312/**
313 * Iterate over all connected peers. Calls peer_cb with each 243 * Iterate over all connected peers. Calls peer_cb with each
314 * connected peer, and then once with NULL to indicate that all peers 244 * connected peer, and then once with NULL to indicate that all peers
315 * have been handled. 245 * have been handled.
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 78b3a5c94..1b95d847b 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -402,11 +402,6 @@ extern "C"
402#define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND 71 402#define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND 71
403 403
404/** 404/**
405 * Request from client to "configure" P2P connection.
406 */
407#define GNUNET_MESSAGE_TYPE_CORE_REQUEST_INFO 72
408
409/**
410 * Response from server about (possibly updated) P2P 405 * Response from server about (possibly updated) P2P
411 * connection configuration. 406 * connection configuration.
412 */ 407 */