36 main (
int argc,
char** argv)
43 if (!strcmp(argv[1],
"luidgen_2"))
53 else if (!strcmp(argv[1],
"luidgen_copy"))
64 else if (!strcmp(argv[1],
"ptrs"))
int main(int argc, const char *argv[])
run all tests or any single test specified in the first command line argument.
void * lumiera_uid_ptr_get(const lumiera_uid *luid)
Retrieve a generic pointer stored in a luid.
Lumiera unique object identifier.
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.
unsigned char lumiera_uid[16]
storage for a Lumiera unique ID, based on a 128bit random number
void lumiera_uid_set_ptr(lumiera_uid *luid, void *ptr)
Store a generic pointer in a luid.