diff --git a/raftstore-proxy/ffi/src/RaftStoreProxyFFI/ProxyFFI.h b/raftstore-proxy/ffi/src/RaftStoreProxyFFI/ProxyFFI.h index 326e9302c03..3dd1feba12a 100644 --- a/raftstore-proxy/ffi/src/RaftStoreProxyFFI/ProxyFFI.h +++ b/raftstore-proxy/ffi/src/RaftStoreProxyFFI/ProxyFFI.h @@ -394,8 +394,14 @@ struct EngineStoreServerHelper { ReportThreadAllocateInfoBatch data); }; +#ifdef __cplusplus +extern "C" { +#endif // Basically same as ffi_server_info, but no need to setup ProxyHelper, only // need to setup ServerHelper. Used when proxy not start. uint32_t ffi_get_server_info_from_proxy(intptr_t, BaseBuffView, RawVoidPtr); +#ifdef __cplusplus +} +#endif } // namespace DB