DPDK
20.05.0
|
#include <stdbool.h>
Go to the source code of this file.
Macros | |
#define | RTE_UUID_INIT(a, b, c, d, e) |
#define | RTE_UUID_STRLEN (36 + 1) |
Typedefs | |
typedef unsigned char | rte_uuid_t[16] |
Functions | |
bool | rte_uuid_is_null (const rte_uuid_t uu) |
static void | rte_uuid_copy (rte_uuid_t dst, const rte_uuid_t src) |
int | rte_uuid_compare (const rte_uuid_t a, const rte_uuid_t b) |
int | rte_uuid_parse (const char *in, rte_uuid_t uu) |
UUID related functions originally from libuuid
Definition in file rte_uuid.h.
#define RTE_UUID_INIT | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) |
Helper for defining UUID values for id tables.
Definition at line 27 of file rte_uuid.h.
#define RTE_UUID_STRLEN (36 + 1) |
Convert UUID to string
uu | UUID to format |
out | Resulting string buffer |
len | Sizeof the available string buffer |
Definition at line 96 of file rte_uuid.h.
typedef unsigned char rte_uuid_t[16] |
Struct describing a Universal Unique Identifier
Definition at line 22 of file rte_uuid.h.
bool rte_uuid_is_null | ( | const rte_uuid_t | uu | ) |
Test if UUID is all zeros.
uu | The uuid to check. |
|
inlinestatic |
int rte_uuid_compare | ( | const rte_uuid_t | a, |
const rte_uuid_t | b | ||
) |
Compare two UUID's
a | A UUID to compare |
b | A UUID to compare |
int rte_uuid_parse | ( | const char * | in, |
rte_uuid_t | uu | ||
) |
Extract UUID from string
in | Pointer to string of characters to convert |
uu | Destination UUID |