dev_1
yejian 2 years ago committed by Gordon
parent 2ee9b33e11
commit 43d7d4ebe9
  1. 585
      c_wrapper/export.go
  2. 9
      c_wrapper/protocol.go

File diff suppressed because it is too large Load Diff

@ -3,10 +3,19 @@ package main
/* /*
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
typedef void (*CB_S)(char *);
typedef void (*CB_I_S)(int,char *); typedef void (*CB_I_S)(int,char *);
typedef void (*CB_S_I_S_S)(char *,int,char *,char *); typedef void (*CB_S_I_S_S)(char *,int,char *,char *);
typedef void (*CB_S_I_S_S_I)(char *,int,char *,char *,int); typedef void (*CB_S_I_S_S_I)(char *,int,char *,char *,int);
CB_S DebugPrint;
void Call_CB_S(CB_S func,char* data)
{
func(data);
}
void Call_CB_I_S(CB_I_S func,int event,char* data) void Call_CB_I_S(CB_I_S func,int event,char* data)
{ {
func(event,data); func(event,data);

Loading…
Cancel
Save