summaryrefslogtreecommitdiffstats
path: root/aclk/schema-wrappers/node_creation.h
blob: 190ccb4d6eb9b6fbbaa6f004c82c6fca902e7d2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef ACLK_SCHEMA_WRAPPER_NODE_CREATION_H
#define ACLK_SCHEMA_WRAPPER_NODE_CREATION_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    char* claim_id;
    char* machine_guid;
    char* hostname;

    int32_t hops;
} node_instance_creation_t;

typedef struct {
    char *node_id;
    char *machine_guid;
} node_instance_creation_result_t;

char *generate_node_instance_creation(size_t *len, const node_instance_creation_t *data);
node_instance_creation_result_t parse_create_node_instance_result(const char *data, size_t len);


#ifdef __cplusplus
}
#endif

#endif /* ACLK_SCHEMA_WRAPPER_NODE_CREATION_H */