Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

UUID Handling
[Brought To You By APR]


Data Structures

struct  switch_uuid_t

Defines

#define SWITCH_UUID_FORMATTED_LENGTH   36

Functions

void switch_uuid_format (char *buffer, const switch_uuid_t *uuid)
void switch_uuid_get (switch_uuid_t *uuid)
switch_status_t switch_uuid_parse (switch_uuid_t *uuid, const char *uuid_str)


Define Documentation

#define SWITCH_UUID_FORMATTED_LENGTH   36
 

UUIDs are formatted as: 00112233-4455-6677-8899-AABBCCDDEEFF


Function Documentation

void switch_uuid_format char *  buffer,
const switch_uuid_t uuid
 

Format a UUID into a string, following the standard format

Parameters:
buffer The buffer to place the formatted UUID string into. It must be at least APR_UUID_FORMATTED_LENGTH + 1 bytes long to hold the formatted UUID and a null terminator
uuid The UUID to format
00745 {
00746         apr_uuid_format(buffer, (const apr_uuid_t *) uuid);
00747 }

void switch_uuid_get switch_uuid_t uuid  ) 
 

Generate and return a (new) UUID

Parameters:
uuid The resulting UUID
00750 {
00751         apr_uuid_get((apr_uuid_t *) uuid);
00752 }

switch_status_t switch_uuid_parse switch_uuid_t uuid,
const char *  uuid_str
 

Parse a standard-format string into a UUID

Parameters:
uuid The resulting UUID
uuid_str The formatted UUID
00755 {
00756         return apr_uuid_parse((apr_uuid_t *) uuid, uuid_str);
00757 }


Generated on Fri Oct 10 11:24:22 2008 for FreeSWITCH by  doxygen 1.3.9.1