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.
35 lines
544 B
35 lines
544 B
package main
|
|
|
|
/*
|
|
#include <stdio.h>
|
|
typedef void (*base_func)();
|
|
typedef void (*err_func)(int,void *);
|
|
|
|
base_func _onConnecting;
|
|
base_func _onConnectSuccess;
|
|
base_func _onKickedOffline;
|
|
base_func _onUserTokenExpired;
|
|
err_func _onConnectFailed;
|
|
|
|
void c_onConnecting()
|
|
{
|
|
_onConnecting();
|
|
}
|
|
void c_onConnectSuccess()
|
|
{
|
|
_onConnectSuccess();
|
|
}
|
|
void c_onKickedOffline()
|
|
{
|
|
_onKickedOffline();
|
|
}
|
|
void c_onUserTokenExpired()
|
|
{
|
|
_onUserTokenExpired();
|
|
}
|
|
void c_onConnectFailed(int errCode,void* errMsg)
|
|
{
|
|
_onConnectFailed(errCode,errMsg);
|
|
}
|
|
*/
|
|
import "C"
|
|
|