From ba502b29c666dbdeeda9be1e0c1384b1e497b1df Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Sun, 3 Sep 2023 18:08:08 +0800 Subject: [PATCH] fix: modify the way of communication from C to Go. --- c_wrapper/protocol.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/c_wrapper/protocol.go b/c_wrapper/protocol.go index 018f72d..e666a8d 100644 --- a/c_wrapper/protocol.go +++ b/c_wrapper/protocol.go @@ -6,17 +6,14 @@ typedef void (*CB_I_S)(int,char *); typedef void (*CB_I_S_S)(int,char *,char *); typedef void (*CB_I_S_S_I)(int,char *,char *,int); -__attribute__((weak)) void Call_CB_I_S(CB_I_S func,int event,char* data) { func(event,data); } -__attribute__((weak)) void Call_CB_I_S_S(CB_I_S_S func,int errCode,char* errMsg,char* data) { func(errCode,errMsg,data); } -__attribute__((weak)) void Call_CB_I_S_S_I(CB_I_S_S_I func,int errCode,char* errMsg,char* data,int progress) { func(errCode,errMsg,data,progress);