summaryrefslogtreecommitdiffstats
path: root/aclk/schema-wrappers/node_connection.h
blob: c27729d15ca54fac4937a702093f97c084360e67 (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
32
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef ACLK_SCHEMA_WRAPPER_NODE_CONNECTION_H
#define ACLK_SCHEMA_WRAPPER_NODE_CONNECTION_H

#include "capability.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    const char* claim_id;
    const char* node_id;

    unsigned int live:1;
    unsigned int queryable:1;

    int64_t session_id;

    int32_t hops;
    struct capability *capabilities;
} node_instance_connection_t;

char *generate_node_instance_connection(size_t *len, const node_instance_connection_t *data);


#ifdef __cplusplus
}
#endif

#endif /* ACLK_SCHEMA_WRAPPER_NODE_CONNECTION_H */