Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
luid.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Freie Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
53
#ifndef LUID_H
54
#define LUID_H
55
56
#include <stddef.h>
57
58
#ifdef __cplusplus
59
extern
"C"
{
60
#endif
61
66
#ifndef LUID_BACKUP_SEED
67
#define LUID_BACKUP_SEED 0x23
68
#endif
69
83
void
luid_get
(
void
*buf,
size_t
len);
84
99
void
luid_custom
(
void
*buf,
size_t
len,
int
gen);
100
112
void
luid_base
(
void
*buf,
size_t
len);
113
114
#ifdef __cplusplus
115
}
116
#endif
117
118
#endif
/* LUID_H */
119
luid_get
void luid_get(void *buf, size_t len)
Get a unique ID.
luid_custom
void luid_custom(void *buf, size_t len, int gen)
Get a custom unique ID based on a user given generator value.
luid_base
void luid_base(void *buf, size_t len)
Get a LUID base value.
Generated on Thu Apr 19 2018 21:00:16 by
1.8.13