diff options
author | Thomas Herzog <thomas.herzog@mail.com> | 2018-04-05 15:09:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 15:09:35 +0200 |
commit | eaa5dfbdbd1217d62902f966496658770638c3d1 (patch) | |
tree | 9373e48a340eac9312c67131879f4aa7d8bdfc7f /modules/gdnative/include | |
parent | 43f298a783a119a98a2fe91f234870ad70620872 (diff) | |
parent | ad93d3e277e9cf8f9081b4a09d2832f0fbc95dcf (diff) |
Merge pull request #17980 from karroffel/nativescript-1.1-global-type-tags
[NativeScript] added global type tag system
Diffstat (limited to 'modules/gdnative/include')
-rw-r--r-- | modules/gdnative/include/nativescript/godot_nativescript.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gdnative/include/nativescript/godot_nativescript.h b/modules/gdnative/include/nativescript/godot_nativescript.h index de47ec55cc..cfbe16fa7d 100644 --- a/modules/gdnative/include/nativescript/godot_nativescript.h +++ b/modules/gdnative/include/nativescript/godot_nativescript.h @@ -214,13 +214,16 @@ void GDAPI godot_nativescript_set_signal_documentation(void *p_gdnative_handle, // type tag API +void GDAPI godot_nativescript_set_global_type_tag(int p_idx, const char *p_name, const void *p_type_tag); +const void GDAPI *godot_nativescript_get_global_type_tag(int p_idx, const char *p_name); + void GDAPI godot_nativescript_set_type_tag(void *p_gdnative_handle, const char *p_name, const void *p_type_tag); const void GDAPI *godot_nativescript_get_type_tag(const godot_object *p_object); // instance binding API typedef struct { - GDCALLINGCONV void *(*alloc_instance_binding_data)(void *, godot_object *); + GDCALLINGCONV void *(*alloc_instance_binding_data)(void *, const void *, godot_object *); GDCALLINGCONV void (*free_instance_binding_data)(void *, void *); void *data; GDCALLINGCONV void (*free_func)(void *); |