修复函数mk_rtc_send_datachannel声明、定义没对应的错误 (#3508)

This commit is contained in:
gongluck 2024-05-06 11:07:23 +08:00 committed by GitHub
parent 046aaa3498
commit 64fdd78330
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -528,7 +528,7 @@ API_EXPORT void API_CALL mk_auth_invoker_clone_release(const mk_auth_invoker ctx
} }
///////////////////////////////////////////WebRtcTransport///////////////////////////////////////////// ///////////////////////////////////////////WebRtcTransport/////////////////////////////////////////////
API_EXPORT void API_CALL mk_rtc_sendDatachannel(const mk_rtc_transport ctx, uint16_t streamId, uint32_t ppid, const char *msg, size_t len) { API_EXPORT void API_CALL mk_rtc_send_datachannel(const mk_rtc_transport ctx, uint16_t streamId, uint32_t ppid, const char *msg, size_t len) {
#ifdef ENABLE_WEBRTC #ifdef ENABLE_WEBRTC
assert(ctx && msg); assert(ctx && msg);
WebRtcTransport *transport = (WebRtcTransport *)ctx; WebRtcTransport *transport = (WebRtcTransport *)ctx;