incomplete code for finger and friend tables
[oweals/gnunet.git] / src / dht / gnunet-service-xdht_routing.h
1 /*
2      This file is part of GNUnet.
3      (C) 2011 Christian Grothoff (and other contributing authors)
4
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.
9
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.
14
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.
19 */
20
21 /**
22  * @file dht/gnunet-service-xdht_routing.h
23  * @brief GNUnet DHT tracking of requests for routing replies
24  * @author Christian Grothoff
25  */
26 #ifndef GNUNET_SERVICE_XDHT_ROUTING_H
27 #define GNUNET_SERVICE_XDHT_ROUTING_H
28
29 #include "gnunet_util_lib.h"
30 #include "gnunet_block_lib.h"
31 #include "gnunet_dht_service.h"
32
33
34 /**
35  * Add a new entry to our routing table.
36  *
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
45 */
46 void
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,
51                  size_t xquery_size,
52                  const struct GNUNET_CONTAINER_BloomFilter *reply_bf,
53                  uint32_t reply_bf_mutator);
54
55
56
57 /**
58  * Initialize routing subsystem.
59  */
60 void
61 GDS_ROUTING_init (void);
62
63
64 /**
65  * Shutdown routing subsystem.
66  */
67 void
68 GDS_ROUTING_done (void);
69
70 #endif