NUGU SDK Linux  1.7.6
nugu_uuid.h File Reference
#include <time.h>
#include <nugu.h>
#include <glib.h>
+ Include dependency graph for nugu_uuid.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NUGU_BASE_TIMESTAMP_MSEC   1546300800000
 Milliseconds for base timestamp: 2019/1/1 00:00:00.000 (GMT) More...
 
#define NUGU_BASE_TIMESTAMP_SEC   1546300800
 Seconds for base timestamp: 2019/1/1 00:00:00 (GMT)
 
#define NUGU_MAX_UUID_SIZE   16
 Maximum byte array UUID size.
 
#define NUGU_MAX_UUID_STRING_SIZE   (NUGU_MAX_UUID_SIZE * 2)
 Maximum base16 encoded UUID string size.
 

Functions

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. More...
 
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. More...
 
NUGU_API int nugu_uuid_convert_msec (const unsigned char *bytes, size_t bytes_len, gint64 *msec)
 Convert byte array to base16-encoded string. More...
 
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. More...
 
NUGU_API int nugu_uuid_fill_random (unsigned char *dest, size_t dest_len)
 Generate random bytes and fill to destination buffer. More...
 
NUGU_API char * nugu_uuid_generate_time (void)
 Generate time based UUID. More...