gnunet-service-xdht_hello.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_hello.h
  19. * @brief GNUnet DHT integration with peerinfo
  20. * @author Christian Grothoff
  21. */
  22. #ifndef GNUNET_SERVICE_XDHT_HELLO_H
  23. #define GNUNET_SERVICE_XDHT_HELLO_H
  24. #include "gnunet_util_lib.h"
  25. #include "gnunet_hello_lib.h"
  26. /**
  27. * Obtain a peer's HELLO if available
  28. *
  29. * @param peer peer to look for a HELLO from
  30. * @return HELLO for the given peer
  31. */
  32. const struct GNUNET_HELLO_Message *
  33. GDS_HELLO_get (const struct GNUNET_PeerIdentity *peer);
  34. /**
  35. * Initialize HELLO subsystem.
  36. */
  37. void
  38. GDS_HELLO_init (void);
  39. /**
  40. * Shutdown HELLO subsystem.
  41. */
  42. void
  43. GDS_HELLO_done (void);
  44. #endif