Update WUUID macros
This commit is contained in:
@@ -13,7 +13,7 @@ BEGIN_C_LINKAGE
|
|||||||
|
|
||||||
#define UUID_BUF_LENGTH 48
|
#define UUID_BUF_LENGTH 48
|
||||||
#define WAPP_UUID_SPEC WAPP_STR8_SPEC
|
#define WAPP_UUID_SPEC WAPP_STR8_SPEC
|
||||||
#define wapp_uuid_varg(UUID) wapp_str8_varg((UUID).uuid)
|
#define wapp_uuid_varg(WUUID) wapp_str8_varg((WUUID).uuid)
|
||||||
|
|
||||||
typedef struct wapp_uuid WUUID;
|
typedef struct wapp_uuid WUUID;
|
||||||
struct wapp_uuid {
|
struct wapp_uuid {
|
||||||
@@ -24,7 +24,7 @@ struct wapp_uuid {
|
|||||||
|
|
||||||
/* Low level UUID API */
|
/* Low level UUID API */
|
||||||
|
|
||||||
#define wapp_uuid_create() ((UUID){.uuid = wapp_str8_buf(UUID_BUF_LENGTH)})
|
#define wapp_uuid_create() ((WUUID){.uuid = wapp_str8_buf(UUID_BUF_LENGTH)})
|
||||||
|
|
||||||
// Just returns the same pointer that was passed in with the UUID initialised.
|
// Just returns the same pointer that was passed in with the UUID initialised.
|
||||||
// Fails when passed a NULL pointer.
|
// Fails when passed a NULL pointer.
|
||||||
|
|||||||
Reference in New Issue
Block a user