binding.h 465 B

12345678910111213141516171819202122
  1. #include <stdarg.h>
  2. #include <stdbool.h>
  3. #include <stdint.h>
  4. #include <stdlib.h>
  5. int64_t init_logger();
  6. int64_t init_sdk(char *path);
  7. int32_t init_stream(int64_t port);
  8. void async_command(int64_t port, const uint8_t *input, uintptr_t len);
  9. void async_query(int64_t port, const uint8_t *input, uintptr_t len);
  10. const uint8_t *sync_command(const uint8_t *input, uintptr_t len);
  11. void free_rust(
  12. uint8_t *ptr,
  13. uint32_t length);
  14. void link_me_please(void);