2 This file is part of GNUnet.
3 Copyright (C) 2013, 2017 GNUnet e.V.
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your 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 Affero General Public License for more details.
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 * @file cadet/gnunet-service-cadet_dht.h
21 * @brief cadet service; dealing with DHT requests and results
22 * @author Bartlomiej Polot
23 * @author Christian Grothoff
25 * All functions in this file should use the prefix GCD (Gnunet Cadet Dht)
27 #ifndef GNUNET_SERVICE_CADET_DHT_H
28 #define GNUNET_SERVICE_CADET_DHT_H
33 #if 0 /* keep Emacsens' auto-indent happy */
39 #include "gnunet_util_lib.h"
42 * Handle for DHT search operation.
44 struct GCD_search_handle;
48 * Initialize the DHT subsystem.
50 * @param c Configuration.
53 GCD_init (const struct GNUNET_CONFIGURATION_Handle *c);
57 * Shut down the DHT subsystem.
64 * Function called by the HELLO subsystem whenever OUR hello
65 * changes. Re-triggers the DHT PUT immediately.
68 GCD_hello_update (void);
71 * Search DHT for paths to @a peeR_id
73 * @param peer_id peer to search for
74 * @return handle to abort search
76 struct GCD_search_handle *
77 GCD_search (const struct GNUNET_PeerIdentity *peer_id);
81 * Stop DHT search started with #GCD_search().
83 * @param h handle to search to stop
86 GCD_search_stop (struct GCD_search_handle *h);
89 #if 0 /* keep Emacsens' auto-indent happy */
96 /* ifndef GNUNET_CADET_SERVICE_DHT_H */
98 /* end of gnunet-service-cadet_dht.h */