* SOFTWARE.
*/
-#include <config.h>
-
/* Includes final \0. */
#define BABELTRACE_UUID_STR_LEN 37
#define BABELTRACE_UUID_LEN 16
#include <uuid/uuid.h>
static inline
-int babeltrace_uuid_generate(unsigned char *uuid_out)
+int bt_uuid_generate(unsigned char *uuid_out)
{
uuid_generate(uuid_out);
return 0;
/* Sun's libuuid lacks const qualifiers */
#if defined(__sun__)
static inline
-int babeltrace_uuid_unparse(const unsigned char *uuid_in, char *str_out)
+int bt_uuid_unparse(const unsigned char *uuid_in, char *str_out)
{
uuid_unparse((unsigned char *) uuid_in, str_out);
return 0;
}
static inline
-int babeltrace_uuid_parse(const char *str_in, unsigned char *uuid_out)
+int bt_uuid_parse(const char *str_in, unsigned char *uuid_out)
{
return uuid_parse((char *) str_in, uuid_out);
}
static inline
-int babeltrace_uuid_compare(const unsigned char *uuid_a,
+int bt_uuid_compare(const unsigned char *uuid_a,
const unsigned char *uuid_b)
{
return uuid_compare((unsigned char *) uuid_a,
}
#else
static inline
-int babeltrace_uuid_unparse(const unsigned char *uuid_in, char *str_out)
+int bt_uuid_unparse(const unsigned char *uuid_in, char *str_out)
{
uuid_unparse(uuid_in, str_out);
return 0;
}
static inline
-int babeltrace_uuid_parse(const char *str_in, unsigned char *uuid_out)
+int bt_uuid_parse(const char *str_in, unsigned char *uuid_out)
{
return uuid_parse(str_in, uuid_out);
}
static inline
-int babeltrace_uuid_compare(const unsigned char *uuid_a,
+int bt_uuid_compare(const unsigned char *uuid_a,
const unsigned char *uuid_b)
{
return uuid_compare(uuid_a, uuid_b);
#include <stdlib.h>
static inline
-int babeltrace_uuid_generate(unsigned char *uuid_out)
+int bt_uuid_generate(unsigned char *uuid_out)
{
uint32_t status;
}
static inline
-int babeltrace_uuid_unparse(const unsigned char *uuid_in, char *str_out)
+int bt_uuid_unparse(const unsigned char *uuid_in, char *str_out)
{
uint32_t status;
char *alloc_str;
}
static inline
-int babeltrace_uuid_parse(const char *str_in, unsigned char *uuid_out)
+int bt_uuid_parse(const char *str_in, unsigned char *uuid_out)
{
uint32_t status;
}
static inline
-int babeltrace_uuid_compare(const unsigned char *uuid_a,
+int bt_uuid_compare(const unsigned char *uuid_a,
const unsigned char *uuid_b)
{
uint32_t status;
#elif defined(__MINGW32__)
-int babeltrace_uuid_generate(unsigned char *uuid_out);
-int babeltrace_uuid_unparse(const unsigned char *uuid_in, char *str_out);
-int babeltrace_uuid_parse(const char *str_in, unsigned char *uuid_out);
-int babeltrace_uuid_compare(const unsigned char *uuid_a,
+int bt_uuid_generate(unsigned char *uuid_out);
+int bt_uuid_unparse(const unsigned char *uuid_in, char *str_out);
+int bt_uuid_parse(const char *str_in, unsigned char *uuid_out);
+int bt_uuid_compare(const unsigned char *uuid_a,
const unsigned char *uuid_b);
#else