GATE
|
GUID structure and generation. More...
Data Structures | |
struct | gate_guid_class |
gate_guid_t structure More... | |
Typedefs | |
typedef struct gate_guid_class | gate_guid_t |
gate_guid_t structure | |
Functions | |
GATE_CORE_API gate_result_t | gate_guid_generate (gate_guid_t *guid) |
Generates a new globally unique identifier. | |
GATE_CORE_API gate_bool_t | gate_guid_equals (gate_guid_t const *g1, gate_guid_t const *g2) |
Compares two GUIDs and returns true if they are equal. | |
GATE_CORE_API gate_result_t | gate_guid_to_string (gate_guid_t const *srcguid, char dsttext[37]) |
Fills a 37 character buffer with a string representation of the GUID. | |
GATE_CORE_API gate_result_t | gate_guid_parse_string (char const *srctext, gate_size_t srctextlen, gate_guid_t *dstguid) |
Parses a text buffer content to build a GUID structure from it. | |
GUID structure and generation.
GATE_CORE_API gate_result_t gate_guid_generate | ( | gate_guid_t * | guid | ) |
Generates a new globally unique identifier.
[out] | guid | pointer to GUID structure |
GATE_CORE_API gate_bool_t gate_guid_equals | ( | gate_guid_t const * | g1, |
gate_guid_t const * | g2 ) |
Compares two GUIDs and returns true if they are equal.
[in] | g1 | Pointer to first guid to be compared with second |
[in] | g2 | Pointer to second guid to be compared with first |
GATE_CORE_API gate_result_t gate_guid_to_string | ( | gate_guid_t const * | srcguid, |
char | dsttext[37] ) |
Fills a 37 character buffer with a string representation of the GUID.
[in] | srcguid | Pointer to GUID that is going to be printed |
[out] | dsttext | buffer to at least 37 characters to receive the GUID's string representation |
GATE_CORE_API gate_result_t gate_guid_parse_string | ( | char const * | srctext, |
gate_size_t | srctextlen, | ||
gate_guid_t * | dstguid ) |
Parses a text buffer content to build a GUID structure from it.
[in] | srctext | Pointer to text to be parsed |
[in] | srctextlen | Amount of characters in srctext |
[out] | dstguid | Pointer to GUID that is set to parsed values |