From a66e59be840e00ef57161c07c9c197f030cc90d6 Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Thu, 7 Oct 2021 11:59:18 +0100 Subject: [PATCH] Add typedef to GDNativeInstanceBindingCallbacks --- core/extension/gdnative_interface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/extension/gdnative_interface.h b/core/extension/gdnative_interface.h index 73f78bde549..8f8cb5a3e09 100644 --- a/core/extension/gdnative_interface.h +++ b/core/extension/gdnative_interface.h @@ -182,11 +182,11 @@ typedef void *(*GDNativeInstanceBindingCreateCallback)(void *p_token, void *p_in typedef void (*GDNativeInstanceBindingFreeCallback)(void *p_token, void *p_instance, void *p_binding); typedef GDNativeBool (*GDNativeInstanceBindingReferenceCallback)(void *p_token, void *p_binding, GDNativeBool p_reference); -struct GDNativeInstanceBindingCallbacks { +typedef struct { GDNativeInstanceBindingCreateCallback create_callback; GDNativeInstanceBindingFreeCallback free_callback; GDNativeInstanceBindingReferenceCallback reference_callback; -}; +} GDNativeInstanceBindingCallbacks; /* EXTENSION CLASSES */