uuid.cpp File Reference
#include "copyrt.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <netinet/in.h>
#include "sysdep.h"
#include "uuid.h"
Go to the source code of this file.
|
Classes |
struct | uuid_state |
Defines |
#define | CHECK(f1, f2) if (f1 != f2) return f1 < f2 ? -1 : 1; |
Functions |
static int | read_state (unsigned16 *clockseq, uuid_time_t *timestamp, uuid_node_t *node) |
static void | write_state (unsigned16 clockseq, uuid_time_t timestamp, uuid_node_t node) |
static void | format_uuid_v1 (uuid__t *uuid, unsigned16 clockseq, uuid_time_t timestamp, uuid_node_t node) |
static void | format_uuid_v3 (uuid__t *uuid, unsigned char hash[16]) |
static void | get_current_time (uuid_time_t *timestamp) |
static unsigned16 | true_random (void) |
int | uuid_create (uuid__t *uuid) |
void | uuid_create_from_name (uuid__t *uuid, uuid__t nsid, void *name, int namelen) |
int | uuid_compare (uuid__t *u1, uuid__t *u2) |
Variables |
static uuid_state | st |
Define Documentation
#define CHECK |
( |
f1, |
|
|
f2 |
|
) |
if (f1 != f2) return f1 < f2 ? -1 : 1; |
Function Documentation
void format_uuid_v3 |
( |
uuid__t * |
uuid, |
|
|
unsigned char |
hash[16] | |
|
) |
| | [static] |
void get_current_time |
( |
uuid_time_t * |
timestamp |
) |
[static] |
void uuid_create_from_name |
( |
uuid__t * |
uuid, |
|
|
uuid__t |
nsid, |
|
|
void * |
name, |
|
|
int |
namelen | |
|
) |
| | |
Variable Documentation