gnunet-service-cadet_hello.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. This file is part of GNUnet.
  3. Copyright (C) 2014, 2017 GNUnet e.V.
  4. GNUnet is free software: you can redistribute it and/or modify it
  5. under the terms of the GNU Affero General Public License as published
  6. by the Free Software Foundation, either version 3 of the License,
  7. or (at your 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. Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. SPDX-License-Identifier: AGPL3.0-or-later
  15. */
  16. /**
  17. * @file cadet/gnunet-service-cadet_hello.h
  18. * @brief cadet service; dealing with hello messages
  19. * @author Bartlomiej Polot
  20. * @author Christian Grothoff
  21. *
  22. * All functions in this file should use the prefix GCH (Gnunet Cadet Hello)
  23. */
  24. #ifndef GNUNET_SERVICE_CADET_HELLO_H
  25. #define GNUNET_SERVICE_CADET_HELLO_H
  26. #ifdef __cplusplus
  27. extern "C"
  28. {
  29. #if 0 /* keep Emacsens' auto-indent happy */
  30. }
  31. #endif
  32. #endif
  33. #include "platform.h"
  34. #include "gnunet_util_lib.h"
  35. #include "gnunet_hello_lib.h"
  36. /**
  37. * Initialize the hello subsystem.
  38. *
  39. * @param c Configuration.
  40. */
  41. void
  42. GCH_init(const struct GNUNET_CONFIGURATION_Handle *c);
  43. /**
  44. * Shut down the hello subsystem.
  45. */
  46. void
  47. GCH_shutdown(void);
  48. /**
  49. * Get own hello message.
  50. *
  51. * @return Own hello message.
  52. */
  53. const struct GNUNET_HELLO_Message *
  54. GCH_get_mine(void);
  55. #if 0 /* keep Emacsens' auto-indent happy */
  56. {
  57. #endif
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. /* ifndef GNUNET_CADET_SERVICE_HELLO_H */
  62. #endif
  63. /* end of gnunet-cadet-service_hello.h */