diff options
| author | Karroffel <therzog@mail.de> | 2017-11-20 14:49:22 +0100 |
|---|---|---|
| committer | Karroffel <therzog@mail.de> | 2017-11-20 14:49:22 +0100 |
| commit | 5d666319e3f3ca784658b1d7f45f5f9a09929583 (patch) | |
| tree | e8f2579d0306e23f0019d53997dd84ba1593e5c5 /modules/gdnative/include | |
| parent | 89fc4536693a2b31ed1423998525cfd03fbfec16 (diff) | |
| download | redot-engine-5d666319e3f3ca784658b1d7f45f5f9a09929583.tar.gz | |
[GDNative] add a way to register call types
Diffstat (limited to 'modules/gdnative/include')
| -rw-r--r-- | modules/gdnative/include/gdnative/gdnative.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdnative/include/gdnative/gdnative.h b/modules/gdnative/include/gdnative/gdnative.h index e8d509508e..0a884e6106 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); |
