You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
367 B
22 lines
367 B
package main
|
|
|
|
/*
|
|
#include <stdio.h>
|
|
typedef void (*base_func)();
|
|
typedef void (*err_func)(int,void *);
|
|
typedef void (*success_func)(char *);
|
|
|
|
void c_base_caller(base_func func)
|
|
{
|
|
func();
|
|
}
|
|
void c_err_caller(err_func func,int errCode,void* errMsg)
|
|
{
|
|
func(errCode,errMsg);
|
|
}
|
|
void c_success_caller(success_func func,char* data)
|
|
{
|
|
func(data);
|
|
}
|
|
*/
|
|
import "C"
|
|
|