17 #ifndef __NUGU_UUID_H__
18 #define __NUGU_UUID_H__
40 #define NUGU_BASE_TIMESTAMP_SEC 1546300800
47 #define NUGU_BASE_TIMESTAMP_MSEC 1546300800000
52 #define NUGU_MAX_UUID_SIZE 16
57 #define NUGU_MAX_UUID_STRING_SIZE (NUGU_MAX_UUID_SIZE * 2)
76 unsigned char *out,
size_t out_len);
89 size_t bytes_len,
char *out,
102 size_t bytes_len, gint64 *msec);
126 size_t hash_len,
unsigned char *out,
NUGU_API int nugu_uuid_convert_base16(const unsigned char *bytes, size_t bytes_len, char *out, size_t out_len)
Convert byte array to base16-encoded string.
NUGU_API char * nugu_uuid_generate_time(void)
Generate time based UUID.
NUGU_API int nugu_uuid_convert_msec(const unsigned char *bytes, size_t bytes_len, gint64 *msec)
Convert byte array to base16-encoded string.
NUGU_API int nugu_uuid_convert_bytes(const char *base16, size_t base16_len, unsigned char *out, size_t out_len)
Convert base16-encoded string to byte array.
NUGU_API int nugu_uuid_fill_random(unsigned char *dest, size_t dest_len)
Generate random bytes and fill to destination buffer.
NUGU_API int nugu_uuid_fill(gint64 msec, const unsigned char *hash, size_t hash_len, unsigned char *out, size_t out_len)
Fill to output buffer with NUGU UUID format using parameters.