AppFlowy/frontend/rust-lib/dart-ffi/binding.h

21 lines
455 B
C
Raw Permalink Normal View History

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
int64_t init_sdk(int64_t port, char *data);
2021-12-04 02:27:08 +00:00
void async_event(int64_t port, const uint8_t *input, uintptr_t len);
2021-12-04 02:27:08 +00:00
const uint8_t *sync_event(const uint8_t *input, uintptr_t len);
int32_t set_stream_port(int64_t port);
int32_t set_log_stream_port(int64_t port);
void link_me_please(void);
void rust_log(int64_t level, const char *data);
void set_env(const char *data);