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"

Include dependency graph for uuid.cpp:

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_v1 ( uuid__t uuid,
unsigned16  clockseq,
uuid_time_t  timestamp,
uuid_node_t  node 
) [static]

Definition at line 80 of file uuid.cpp.

void format_uuid_v3 ( uuid__t uuid,
unsigned char  hash[16] 
) [static]

Definition at line 239 of file uuid.cpp.

void get_current_time ( uuid_time_t timestamp  )  [static]

Definition at line 153 of file uuid.cpp.

int read_state ( unsigned16 clockseq,
uuid_time_t timestamp,
uuid_node_t node 
) [static]

Definition at line 105 of file uuid.cpp.

static unsigned16 true_random ( void   )  [static]

Definition at line 191 of file uuid.cpp.

int uuid_compare ( uuid__t u1,
uuid__t u2 
)

Definition at line 264 of file uuid.cpp.

int uuid_create ( uuid__t uuid  ) 

Definition at line 42 of file uuid.cpp.

void uuid_create_from_name ( uuid__t uuid,
uuid__t  nsid,
void *  name,
int  namelen 
)

Definition at line 209 of file uuid.cpp.

void write_state ( unsigned16  clockseq,
uuid_time_t  timestamp,
uuid_node_t  node 
) [static]

Definition at line 127 of file uuid.cpp.


Variable Documentation

uuid_state st [static]

Definition at line 102 of file uuid.cpp.


Generated on Tue Jul 7 16:22:08 2009 for CoreLibrary by  doxygen 1.5.6