#ifndef __UUID_H__
#define __UUID_H__
#include "msystem.h"

typedef uint8_t uuid16_t[16];

// UUID structure defined as mentioned in RFC4122
struct uuid_RFC4122 {
    uint32_t     time_low;
    uint16_t     time_mid;
    uint16_t     time_hi_and_version;
    uint16_t     clock_seq;
    uint8_t      node[6];
};

void uuid_unpack(const uuid16_t uuid, struct uuid_RFC4122 *rfc);
void uuid_packet(uuid16_t uuid, const struct uuid_RFC4122 *rfc);
char* makeUUID(uint8_t* uuid);

#endif//__UUID_H__
