uuid4.h 381 B

12345678910111213141516171819202122
  1. /**
  2. * Copyright (c) 2018 rxi
  3. *
  4. * This library is free software; you can redistribute it and/or modify it
  5. * under the terms of the MIT license. See LICENSE for details.
  6. */
  7. #ifndef UUID4_H
  8. #define UUID4_H
  9. #define UUID4_VERSION "1.0.0"
  10. #define UUID4_LEN 37
  11. enum {
  12. UUID4_ESUCCESS = 0,
  13. UUID4_EFAILURE = -1
  14. };
  15. int uuid4_init(void);
  16. void uuid4_generate(char *dst);
  17. #endif