1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef __SPIR_FFI_H__
- #define __SPIR_FFI_H__
- #include <stdint.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct {
- const char *data;
- size_t len;
- size_t capacity;
- } VecData;
- typedef struct {
- void *client;
- VecData pub_params;
- } ClientNewRet;
- extern void spir_init(uint32_t num_threads);
- extern ClientNewRet spir_client_new(uint8_t r);
- extern void spir_client_free(void *client);
- extern void* spir_server_new(uint8_t r, const char *pub_params,
- size_t pub_params_len);
- extern void spir_server_free(void *server);
- extern void spir_vecdata_free(VecData vecdata);
- #ifdef __cplusplus
- }
- #endif
- #endif
|