feat: add dll interface.
Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
This commit is contained in:
parent
4653f35b8b
commit
4bc14a9983
@ -26,8 +26,8 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
//export InitSDK
|
||||
func InitSDK(onConnecting C.base_func,
|
||||
//export init_sdk
|
||||
func init_sdk(onConnecting C.base_func,
|
||||
onConnectSuccess C.base_func,
|
||||
onKickedOffline C.base_func,
|
||||
onUserTokenExpired C.base_func,
|
||||
|
@ -96,7 +96,7 @@ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern __declspec(dllexport) GoUint8 InitSDK(base_func onConnecting, base_func onConnectSuccess, base_func onKickedOffline, base_func onUserTokenExpired, err_func onConnectFailed, char* operationID, char* config);
|
||||
extern __declspec(dllexport) GoUint8 init_sdk(base_func onConnecting, base_func onConnectSuccess, base_func onKickedOffline, base_func onUserTokenExpired, err_func onConnectFailed, char* operationID, char* config);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user