Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
luid.c File Reference

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

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_set_ptr (lumiera_uid *luid, void *ptr)
 Store a generic pointer in a luid.
 
void * lumiera_uid_ptr_get (const lumiera_uid *luid)
 Retrieve a generic pointer stored in a luid.
 
void lumiera_uid_gen (lumiera_uid *luid)
 Generate a new luid.
 
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.
 
size_t lumiera_uid_hash (const lumiera_uid *luid)
 Generate a hash sum over an luid.
 

Function Documentation

◆ lumiera_uid_set_ptr()

void lumiera_uid_set_ptr ( lumiera_uid luid,
void *  ptr 
)

Store a generic pointer in a luid.

Definition at line 33 of file luid.c.

Referenced by lib::idi::anonymous_namespace{entry-id.hpp}::buildHash(), and main().

+ Here is the caller graph for this function:

◆ lumiera_uid_ptr_get()

void * lumiera_uid_ptr_get ( const lumiera_uid luid)

Retrieve a generic pointer stored in a luid.

Definition at line 41 of file luid.c.

Referenced by main().

+ Here is the caller graph for this function:

◆ lumiera_uid_gen()

void lumiera_uid_gen ( lumiera_uid luid)

Generate a new luid.

Definition at line 48 of file luid.c.

References NULL.

Referenced by LuidH::LuidH(), and main().

+ Here is the caller graph for this function:

◆ lumiera_uid_copy()

void lumiera_uid_copy ( lumiera_uid dest,
lumiera_uid src 
)

Copy an luid.

Definition at line 90 of file luid.c.

Referenced by HashIndexed_test::checkLUID_passing(), and main().

+ Here is the caller graph for this function:

◆ lumiera_uid_eq()

int lumiera_uid_eq ( const lumiera_uid luida,
const lumiera_uid luidb 
)

Test 2 luid's for equality.

Definition at line 97 of file luid.c.

Referenced by lumiera_invokey_eq(), main(), and LuidH::operator==().

+ Here is the caller graph for this function:

◆ lumiera_uid_hash()

size_t lumiera_uid_hash ( const lumiera_uid luid)

Generate a hash sum over an luid.

Definition at line 103 of file luid.c.

Referenced by LuidH::LuidH(), and LuidH::operator HashVal().

+ Here is the caller graph for this function: