Lumiera  0.pre.03
»edit your freedom«
luid.c File Reference

Go to the source code of this file.

Description

Implementation functions for Lumiera's unique object identifier (LUID).

Definition in file luid.c.

#include "lib/luid.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdint.h>

Functions

void lumiera_uid_copy (lumiera_uid *dest, lumiera_uid *src)
 Copy an luid.
 
int lumiera_uid_eq (const lumiera_uid *luida, const lumiera_uid *luidb)
 Test 2 luid's for equality.
 
void lumiera_uid_gen (lumiera_uid *luid)
 Generate a new luid.
 
size_t lumiera_uid_hash (const lumiera_uid *luid)
 Generate a hash sum over an luid.
 
void * lumiera_uid_ptr_get (const lumiera_uid *luid)
 Retrieve a generic pointer stored in a luid.
 
void lumiera_uid_set_ptr (lumiera_uid *luid, void *ptr)
 Store a generic pointer in a luid.