core.h 419 B

12345678910111213141516171819202122232425262728
  1. #ifndef sodium_core_H
  2. #define sodium_core_H
  3. #include "export.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. SODIUM_EXPORT
  8. int sodium_init(void)
  9. __attribute__ ((warn_unused_result));
  10. /* ---- */
  11. SODIUM_EXPORT
  12. int sodium_set_misuse_handler(void (*handler)(void));
  13. SODIUM_EXPORT
  14. void sodium_misuse(void)
  15. __attribute__ ((noreturn));
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif