117 uuid_generate_random(uuid->
uu);
137 uuid_unparse(uuid->
uu,
buf);
157 res = uuid_parse(
str, uuid->
uu);
173 uuid_copy(dst->
uu, src->
uu);
179 return uuid_compare(left->
uu, right->
uu);
184 uuid_clear(uuid->
uu);
189 return uuid_is_null(uuid->
uu);
216 ast_log(
LOG_WARNING,
"It appears your system does not have /dev/urandom on it. This\n"
217 "means that UUID generation will use a pseudorandom number generator. Since\n"
218 "the thread-safety of your system's random number generator cannot\n"
219 "be guaranteed, we have to synchronize UUID generation. This may result\n"
220 "in decreased performance. It is highly recommended that you set up your\n"
221 "system to have /dev/urandom\n");
226 uuid_generate_random(
uu);
Asterisk main include file. File version handling, generic pbx functions.
#define ast_malloc(len)
A wrapper for malloc()
Support for logging to various files, console and syslog Configuration in file logger....
#define ast_debug(level,...)
Log a DEBUG message.
Asterisk locking-related definitions:
#define ast_mutex_unlock(a)
#define ast_mutex_lock(a)
#define AST_MUTEX_DEFINE_STATIC(mutex)
String manipulation functions.
static force_inline char * ast_str_to_lower(char *str)
Convert a string to all lower-case.
static int dev_urandom_fd
int ast_uuid_compare(struct ast_uuid *left, struct ast_uuid *right)
Compare two UUIDs.
void ast_uuid_init(void)
Initialize the UUID system.
static ast_mutex_t uuid_lock
static void generate_uuid(struct ast_uuid *uuid)
static int has_dev_urandom
struct ast_uuid * ast_uuid_generate(void)
Generate a UUID.
void ast_uuid_clear(struct ast_uuid *uuid)
Clear a UUID by setting it to be a nil UUID (all 0s)
struct ast_uuid * ast_str_to_uuid(char *str)
Convert a string to a UUID.
struct ast_uuid * ast_uuid_copy(struct ast_uuid *src)
Make a copy of a UUID.
int ast_uuid_is_nil(struct ast_uuid *uuid)
Check if a UUID is a nil UUID (all 0s)
char * ast_uuid_generate_str(char *buf, size_t size)
Generate a UUID string.
char * ast_uuid_to_str(struct ast_uuid *uuid, char *buf, size_t size)
Convert a UUID to a string.
Universally unique identifier support.