summaryrefslogtreecommitdiff
path: root/gi/function.h
diff options
context:
space:
mode:
authorEvan Welsh <contact@evanwelsh.com>2021-08-06 22:27:14 -0700
committerEvan Welsh <contact@evanwelsh.com>2021-08-06 22:27:14 -0700
commit8c585c9706b19c213682af9319789642cdcb15c6 (patch)
tree279c195012b63f744a01cb71f5b5f0809c0589f2 /gi/function.h
parent469b38f367ed9707f2c17a1bdeb810d9c193e462 (diff)
downloadgjs-ewlsh/fix-function-pointers.tar.gz
Some really rough work on fixing function pointer supportewlsh/fix-function-pointers
Not sure if we should go this route or wrap in a callback, I'd prefer if we can go this route to avoid adding JS wrapping
Diffstat (limited to 'gi/function.h')
-rw-r--r--gi/function.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gi/function.h b/gi/function.h
index 498b5481..c173b316 100644
--- a/gi/function.h
+++ b/gi/function.h
@@ -157,4 +157,7 @@ bool gjs_invoke_constructor_from_c(JSContext* cx, GIFunctionInfo* info,
const JS::CallArgs& args,
GIArgument* rvalue);
+bool gjs_is_function(JSContext* cx, JS::HandleObject function_object);
+bool gjs_function_to_callback(JSContext* cx, JS::HandleObject function_object,
+ GICallbackInfo* info, GCallback* func_pointer);
#endif // GI_FUNCTION_H_