6 #ifndef SKYWAY_FFI_BRIDGE_H 7 #define SKYWAY_FFI_BRIDGE_H 9 #include <fruit/fruit.h> 15 using fruit::Component;
16 using fruit::Injector;
20 std::function<void(int)> shutdown_handler;
21 std::function<void(char*, char*)> create_peer_callback_handler;
22 std::function<PluginLoadResult(char*, uint16_t, char*, char*)>
23 create_data_callback_handler;
24 std::function<void(uint16_t)> data_connection_close_event_callback_handler;
34 void delete_data_connection_callback(uint16_t);
46 #endif // SKYWAY_FFI_BRIDGE_H
std::shared_ptr< Router > router_
virtual ~CallbackFromRustImpl()
void create_peer_callback(char *peer_id, char *token)
Component< CallbackFromRust > getCallbackFromRustComponent()