Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Files | Typedefs | Functions

Files

file  afw_uuid.h
 Adaptive Framework UUID header.
 

Typedefs

typedef apr_uuid_t afw_uuid_t
 

Functions

void afw_uuid_generate (afw_uuid_t *uuid, afw_xctx_t *xctx)
 Generate a new UUID. More...
 
const afw_uuid_t * afw_uuid_create (const afw_pool_t *p, afw_xctx_t *xctx)
 Create a UUID. More...
 
const afw_value_tafw_uuid_create_string (const afw_pool_t *p, afw_xctx_t *xctx)
 Create a UUID as a standard format UUID utf-8 string value. More...
 
const afw_utf8_tafw_uuid_create_utf8 (const afw_pool_t *p, afw_xctx_t *xctx)
 Create a UUID as a standard format UUID utf-8 string. More...
 
const afw_utf8_tafw_uuid_to_utf8 (const afw_uuid_t *uuid, const afw_pool_t *p, afw_xctx_t *xctx)
 Convert uuid to a standard format UUID utf-8 string. More...
 
void afw_uuid_parse (afw_uuid_t *uuid, const afw_utf8_t *s, afw_xctx_t *xctx)
 Parse a standard format UUID string to a uuid. More...
 
const afw_uuid_t * afw_uuid_from_utf8 (const afw_utf8_t *s, const afw_pool_t *p, afw_xctx_t *xctx)
 Convert standard format UUID utf-8 string to uuid. More...
 

Detailed Description

UUID functions

Function Documentation

◆ afw_uuid_create()

const afw_uuid_t* afw_uuid_create ( const afw_pool_t p,
afw_xctx_t xctx 
)

Create a UUID.

Parameters
xctxof caller.
pPool for result.
Returns
uuid

Definition at line 30 of file afw_uuid.c.

◆ afw_uuid_create_string()

const afw_value_t* afw_uuid_create_string ( const afw_pool_t p,
afw_xctx_t xctx 
)

Create a UUID as a standard format UUID utf-8 string value.

Parameters
xctxof caller.
pPool for result.
Returns
uuid as string value

Definition at line 43 of file afw_uuid.c.

◆ afw_uuid_create_utf8()

const afw_utf8_t* afw_uuid_create_utf8 ( const afw_pool_t p,
afw_xctx_t xctx 
)

Create a UUID as a standard format UUID utf-8 string.

Parameters
xctxof caller.
pPool for result.
Returns
uuid as string

Definition at line 62 of file afw_uuid.c.

◆ afw_uuid_from_utf8()

const afw_uuid_t* afw_uuid_from_utf8 ( const afw_utf8_t s,
const afw_pool_t p,
afw_xctx_t xctx 
)

Convert standard format UUID utf-8 string to uuid.

Parameters
sstandard format UUID utf-8 string.
pPool for result.
xctxof caller.
Returns
uuid

Definition at line 117 of file afw_uuid.c.

◆ afw_uuid_generate()

void afw_uuid_generate ( afw_uuid_t *  uuid,
afw_xctx_t xctx 
)

Generate a new UUID.

Parameters
uuidPlace to put generated UUID.
xctxof caller.

Definition at line 21 of file afw_uuid.c.

◆ afw_uuid_parse()

void afw_uuid_parse ( afw_uuid_t *  uuid,
const afw_utf8_t s,
afw_xctx_t xctx 
)

Parse a standard format UUID string to a uuid.

Parameters
uuidPlace to put parsed UUID.
sstandard format UUID utf-8 string to parse.
xctxof caller.

Definition at line 95 of file afw_uuid.c.

◆ afw_uuid_to_utf8()

const afw_utf8_t* afw_uuid_to_utf8 ( const afw_uuid_t *  uuid,
const afw_pool_t p,
afw_xctx_t xctx 
)

Convert uuid to a standard format UUID utf-8 string.

Parameters
uuid
pPool for result.
xctxof caller.
Returns
uuid as string

Definition at line 79 of file afw_uuid.c.