gnunet-service-xdht.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. This file is part of GNUnet.
  3. (C) 2011 Christian Grothoff (and other contributing authors)
  4. GNUnet is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published
  6. by the Free Software Foundation; either version 3, or (at your
  7. option) any later version.
  8. GNUnet is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNUnet; see the file COPYING. If not, write to the
  14. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA.
  16. */
  17. /**
  18. * @file dht/gnunet-service-xdht.h
  19. * @brief GNUnet DHT globals
  20. * @author Christian Grothoff
  21. */
  22. #ifndef GNUNET_SERVICE_XDHT_H
  23. #define GNUNET_SERVICE_XDHT_H
  24. #include "gnunet_util_lib.h"
  25. #include "gnunet_statistics_service.h"
  26. #include "gnunet_transport_service.h"
  27. #define DEBUG_DHT GNUNET_EXTRA_LOGGING
  28. /**
  29. * Configuration we use.
  30. */
  31. extern const struct GNUNET_CONFIGURATION_Handle *GDS_cfg;
  32. /**
  33. * Our handle to the BLOCK library.
  34. */
  35. extern struct GNUNET_BLOCK_Context *GDS_block_context;
  36. /**
  37. * Handle for the statistics service.
  38. */
  39. extern struct GNUNET_STATISTICS_Handle *GDS_stats;
  40. /**
  41. * Our HELLO
  42. */
  43. extern struct GNUNET_MessageHeader *GDS_my_hello;
  44. /**
  45. * Handle to the transport service, for getting our hello
  46. */
  47. extern struct GNUNET_TRANSPORT_Handle *GDS_transport_handle;
  48. #endif