dolphin.h 597 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "helpers/dolphin_deed.h"
  3. typedef struct Dolphin Dolphin;
  4. typedef struct {
  5. uint32_t icounter;
  6. uint32_t butthurt;
  7. } DolphinStats;
  8. /** Deed complete notification. Call it on deed completion.
  9. * See dolphin_deed.h for available deeds. In futures it will become part of assets.
  10. * Thread safe, async
  11. */
  12. void dolphin_deed(Dolphin* dolphin, DolphinDeed deed);
  13. /** Retrieve dolphin stats
  14. * Thread safe, blocking
  15. */
  16. DolphinStats dolphin_stats(Dolphin* dolphin);
  17. /** Flush dolphin queue and save state
  18. * Thread safe, blocking
  19. */
  20. void dolphin_flush(Dolphin* dolphin);