refactor DHT for new service API
[oweals/gnunet.git] / src / cadet / gnunet-service-cadet_dht.h
index 6cac531ff699a281be253c6c43e5f9d0e0270d04..b70dfe975f016f64cf896cb689f1ea6aaca4290c 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2013 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2013 GNUnet e.V.
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
      You should have received a copy of the GNU General Public License
      along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
 */
 
 /**
@@ -40,7 +40,7 @@ extern "C"
 #include "platform.h"
 #include "gnunet_util_lib.h"
 
-struct GMD_search_handle;
+struct GCD_search_handle;
 
 
 /**
@@ -50,8 +50,9 @@ struct GMD_search_handle;
  * @param path An unchecked, unoptimized path to the target node.
  *             After callback will no longer be valid!
  */
-typedef void (*GMD_search_callback) (void *cls,
-                                     const struct CadetPeerPath *path);
+typedef void
+(*GCD_search_callback) (void *cls,
+                        const struct CadetPeerPath *path);
 
 /******************************************************************************/
 /********************************    API    ***********************************/
@@ -63,22 +64,22 @@ typedef void (*GMD_search_callback) (void *cls,
  * @param c Configuration.
  */
 void
-GMD_init (const struct GNUNET_CONFIGURATION_Handle *c);
+GCD_init (const struct GNUNET_CONFIGURATION_Handle *c);
 
 /**
  * Shut down the DHT subsystem.
  */
 void
-GMD_shutdown (void);
+GCD_shutdown (void);
 
 
-struct GMD_search_handle *
-GMD_search (const struct GNUNET_PeerIdentity *peer_id,
-            GMD_search_callback callback, void *cls);
+struct GCD_search_handle *
+GCD_search (const struct GNUNET_PeerIdentity *peer_id,
+            GCD_search_callback callback, void *cls);
 
 
 void
-GMD_search_stop (struct GMD_search_handle *h);
+GCD_search_stop (struct GCD_search_handle *h);
 
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
@@ -89,4 +90,4 @@ GMD_search_stop (struct GMD_search_handle *h);
 
 /* ifndef GNUNET_CADET_SERVICE_LOCAL_H */
 #endif
-/* end of gnunet-cadet-service_LOCAL.h */
\ No newline at end of file
+/* end of gnunet-cadet-service_LOCAL.h */