fix: modify the way of communication from C to Go.
This commit is contained in:
parent
1c41cd0f5d
commit
ba502b29c6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user