2 This file is part of GNUnet.
3 (C) 2011 Christian Grothoff (and other contributing authors)
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
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file dht/gnunet-service-xdht_routing.h
23 * @brief GNUnet DHT tracking of requests for routing replies
24 * @author Christian Grothoff
26 #ifndef GNUNET_SERVICE_XDHT_ROUTING_H
27 #define GNUNET_SERVICE_XDHT_ROUTING_H
29 #include "gnunet_util_lib.h"
30 #include "gnunet_block_lib.h"
31 #include "gnunet_dht_service.h"
35 * Add a new entry to our routing table.
37 * @param sender peer that originated the request
38 * @param type type of the block
39 * @param options options for processing
40 * @param key key for the content
41 * @param xquery extended query
42 * @param xquery_size number of bytes in @a xquery
43 * @param reply_bf bloomfilter to filter duplicates
44 * @param reply_bf_mutator mutator for @a reply_bf
47 GDS_ROUTING_add (const struct GNUNET_PeerIdentity *sender,
48 enum GNUNET_BLOCK_Type type,
49 enum GNUNET_DHT_RouteOption options,
50 const struct GNUNET_HashCode * key, const void *xquery,
52 const struct GNUNET_CONTAINER_BloomFilter *reply_bf,
53 uint32_t reply_bf_mutator);
58 * Initialize routing subsystem.
61 GDS_ROUTING_init (void);
65 * Shutdown routing subsystem.
68 GDS_ROUTING_done (void);