context_stream.h 789 B

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