Astarte Device SDK ESP32
ESP32 device SDK for the Astarte platform
uuid.h
1 /*
2  * (C) Copyright 2018-2023, SECO Mind Srl
3  *
4  * SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
5  */
6 
7 #ifndef _UUID_H_
8 #define _UUID_H_
9 
10 #include <stddef.h>
11 #include <stdint.h>
12 
13 #include "astarte.h"
14 
15 #define UUID_LEN 16
16 
17 typedef uint8_t uuid_t[UUID_LEN];
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
34 astarte_err_t uuid_generate_v5(const uuid_t namespace, const void *data, size_t len, uuid_t out);
35 
45 astarte_err_t uuid_to_string(const uuid_t uuid, char *out);
46 
55 int uuid_from_string(const char *input, uuid_t out);
56 
63 void uuid_generate_v4(uuid_t out);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif // _UUID_H_
Astarte types and defines.
astarte_err_t
Astarte return codes.
Definition: astarte.h:28