Update WUUID macros

This commit is contained in:
2025-12-15 15:16:17 +00:00
parent 50b6a0b0f7
commit b55a3ff5d8

View File

@@ -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.