master
h 36 lines 789 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef ACLK_SCHEMA_WRAPPER_CONTEXT_STREAM_H
4 #define ACLK_SCHEMA_WRAPPER_CONTEXT_STREAM_H
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 struct stop_streaming_ctxs {
11 char *claim_id;
12 char *node_id;
13 // we omit reason as there is only one defined at this point
14 // as soon as there is more than one defined in StopStreaminContextsReason
15 // we should add it
16 // 0 - RATE_LIMIT_EXCEEDED
17 };
18
19 struct stop_streaming_ctxs *parse_stop_streaming_ctxs(const char *data, size_t len);
20
21 struct ctxs_checkpoint {
22 char *claim_id;
23 char *node_id;
24
25 uint64_t version_hash;
26 };
27
28 struct ctxs_checkpoint *parse_ctxs_checkpoint(const char *data, size_t len);
29
30
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif /* ACLK_SCHEMA_WRAPPER_CONTEXT_STREAM_H */