mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
setToGlobalObject
This commit is contained in:
13
cxx/ffi.h
13
cxx/ffi.h
@@ -8,7 +8,14 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
typedef void *JSChannel(JSContext *ctx, const char *method, void *argv);
|
||||
enum JSChannelType {
|
||||
JSChannelType_METHON = 0,
|
||||
JSChannelType_MODULE = 1,
|
||||
JSChannelType_PROMISE_TRACK = 2,
|
||||
JSChannelType_FREE_OBJECT = 3,
|
||||
};
|
||||
|
||||
typedef void *JSChannel(JSContext *ctx, size_t type, void *argv);
|
||||
|
||||
DLLEXPORT JSValue *jsThrowInternalError(JSContext *ctx, char *message);
|
||||
|
||||
@@ -30,6 +37,10 @@ extern "C"
|
||||
|
||||
DLLEXPORT void jsFreeRuntime(JSRuntime *rt);
|
||||
|
||||
DLLEXPORT JSValue *jsNewCFunction(JSContext *ctx, JSValue *funcData);
|
||||
|
||||
DLLEXPORT JSValue *jsGetGlobalObject(JSContext *ctx);
|
||||
|
||||
DLLEXPORT JSContext *jsNewContext(JSRuntime *rt);
|
||||
|
||||
DLLEXPORT void jsFreeContext(JSContext *ctx);
|
||||
|
Reference in New Issue
Block a user