Go to the source code of this file.
|
|
typedef struct xroad_uuid_gen_s | xroad_uuid_gen_t |
| |
◆ __xroad_uuid_gen_dtor__
| #define __xroad_uuid_gen_dtor__ __dtor__(xroad_uuid_gen_destructor) |
◆ xroad_uuid_gen_create()
| xroad_uuid_gen_t* xroad_uuid_gen_create |
( |
xroad_mem_pool_t * |
pool | ) |
|
create new uuid generator
- Parameters
-
| [in] | pool | - memory pool, if any. In case of mull malloc/free will be used |
- Returns
- pointer to generator
◆ xroad_uuid_gen_destroy()
| void xroad_uuid_gen_destroy |
( |
xroad_uuid_gen_t * |
gen | ) |
|
destroy generator
- Parameters
-
| [in] | gen | - generator to destroy |
◆ xroad_uuid_gen_hash()
generate new 128-bit hash
- Parameters
-
- Returns
- hash value
◆ xroad_uuid_gen_hash_to_buf()
convert hash to 26 char long string representation
- Parameters
-
| [in] | hash | - hash to convert |
| [in] | buf | - buf to fill |
| [in] | sz | - size of buffer |
◆ xroad_uuid_gen_hash_to_str()
convert hash to 26 char long string representation
- Parameters
-
| [in] | hash | - hash to convert |
- Returns
- string
◆ xroad_uuid_gen_new()
| xroad_str_t xroad_uuid_gen_new |
( |
xroad_uuid_gen_t * |
gen | ) |
|
generate new UUID of 36 char length
- Parameters
-
- Returns
- UUID