| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef ACLK_SCHEMA_WRAPPER_NODE_CONNECTION_H |
| 4 | #define ACLK_SCHEMA_WRAPPER_NODE_CONNECTION_H |
| 5 | |
| 6 | #include "capability.h" |
| 7 | |
| 8 | #ifdef __cplusplus |
| 9 | extern "C" { |
| 10 | #endif |
| 11 | |
| 12 | typedef struct { |
| 13 | const char* claim_id; |
| 14 | const char* node_id; |
| 15 | |
| 16 | unsigned int live:1; |
| 17 | unsigned int queryable:1; |
| 18 | |
| 19 | int64_t session_id; |
| 20 | |
| 21 | int32_t hops; |
| 22 | const struct capability *capabilities; |
| 23 | } node_instance_connection_t; |
| 24 | |
| 25 | char *generate_node_instance_connection(size_t *len, const node_instance_connection_t *data); |
| 26 | |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | } |
| 30 | #endif |
| 31 | |
| 32 | #endif /* ACLK_SCHEMA_WRAPPER_NODE_CONNECTION_H */ |