spir_ffi.h 452 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __SPIR_FFI_H__
  2. #define __SPIR_FFI_H__
  3. #include <stdint.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct {
  8. const char *data;
  9. size_t len;
  10. size_t capacity;
  11. } VecData;
  12. typedef struct {
  13. void *client;
  14. VecData pub_params;
  15. } ClientNewRet;
  16. extern void spir_init(uint32_t num_threads);
  17. extern ClientNewRet spir_client_new(uint8_t r);
  18. extern void spir_vecdata_free(VecData vecdata);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif