master
h 31 lines 685 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef ACLK_SCHEMA_WRAPPER_NODE_CREATION_H
4 #define ACLK_SCHEMA_WRAPPER_NODE_CREATION_H
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 typedef struct {
11 const char *claim_id;
12 const char *machine_guid;
13 const char *hostname;
14
15 int32_t hops;
16 } node_instance_creation_t;
17
18 typedef struct {
19 char *node_id;
20 char *machine_guid;
21 } node_instance_creation_result_t;
22
23 char *generate_node_instance_creation(size_t *len, const node_instance_creation_t *data);
24 node_instance_creation_result_t parse_create_node_instance_result(const char *data, size_t len);
25
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif /* ACLK_SCHEMA_WRAPPER_NODE_CREATION_H */