cctools
uuid.h
1/*
2Copyright (C) 2022 The University of Notre Dame
3This software is distributed under the GNU General Public License.
4See the file COPYING for details.
5*/
6
7#ifndef CCTOOLS_UUID_H
8#define CCTOOLS_UUID_H
9
10/* RFC 4122 V4 */
11#define UUID_LEN (sizeof "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" - 1)
12typedef struct {
13 char str[UUID_LEN + 1 /* for NUL */];
15
16void cctools_uuid_create (cctools_uuid_t *uuid);
17void cctools_uuid_loadhex (cctools_uuid_t *uuid, const char *hex);
18
19#endif
Definition uuid.h:12