aboutsummaryrefslogtreecommitdiff
path: root/modules/gdnative/include
diff options
context:
space:
mode:
authorThomas Herzog2017-11-20 15:43:36 +0100
committerGitHub2017-11-20 15:43:36 +0100
commit30a82e5e007dfa6eca0bc2021381beae57293b91 (patch)
tree33327035eff99dc07aaf7418054e5905241ea1d3 /modules/gdnative/include
parent14ff5aa6ee19ba00237c57ec177ba67075644600 (diff)
parent5d666319e3f3ca784658b1d7f45f5f9a09929583 (diff)
downloadgodot-30a82e5e007dfa6eca0bc2021381beae57293b91.tar.gz
godot-30a82e5e007dfa6eca0bc2021381beae57293b91.tar.zst
godot-30a82e5e007dfa6eca0bc2021381beae57293b91.zip
Merge pull request #13094 from karroffel/gdnative-api-register-nativecall
[GDNative] add a way to register call types
Diffstat (limited to '')
-rw-r--r--modules/gdnative/include/gdnative/gdnative.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdnative/include/gdnative/gdnative.h b/modules/gdnative/include/gdnative/gdnative.h
index e8d509508..0a884e610 100644
--- a/modules/gdnative/include/gdnative/gdnative.h
+++ b/modules/gdnative/include/gdnative/gdnative.h
@@ -274,6 +274,9 @@ typedef godot_variant (*godot_gdnative_procedure_fn)(godot_array *);
////// System Functions
+typedef godot_variant (*native_call_cb)(void *, godot_array *);
+void GDAPI godot_register_native_call_type(const char *p_call_type, native_call_cb p_callback);
+
//using these will help Godot track how much memory is in use in debug mode
void GDAPI *godot_alloc(int p_bytes);
void GDAPI *godot_realloc(void *p_ptr, int p_bytes);