summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-12 09:19:23 +0200
committerGitHub <noreply@github.com>2023-10-12 09:19:23 +0200
commit55618ebf58ebcde5b1b8d7f93f5098d87c067fa1 (patch)
tree70fdc6cbc09492671adfecf2310bdba0d7ae1d5d
parentef2f63a00c5496cc325e8546acd743787e87a83d (diff)
parent29248c31ae02550633fad54582c5c5607caca4c5 (diff)
downloadredot-cpp-55618ebf58ebcde5b1b8d7f93f5098d87c067fa1.tar.gz
Merge pull request #1264 from dsnopek/misc-gdextension-interface-changes
Miscellaneous updates to gdextension_interface.h
-rw-r--r--gdextension/gdextension_interface.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/gdextension/gdextension_interface.h b/gdextension/gdextension_interface.h
index 05eb332..7e9e4ea 100644
--- a/gdextension/gdextension_interface.h
+++ b/gdextension/gdextension_interface.h
@@ -510,7 +510,7 @@ typedef struct {
GDExtensionScriptInstanceGet get_func;
GDExtensionScriptInstanceGetPropertyList get_property_list_func;
GDExtensionScriptInstanceFreePropertyList free_property_list_func;
- GDExtensionScriptInstanceGetClassCategory get_class_category_func;
+ GDExtensionScriptInstanceGetClassCategory get_class_category_func; // Optional. Set to NULL for the default behavior.
GDExtensionScriptInstancePropertyCanRevert property_can_revert_func;
GDExtensionScriptInstancePropertyGetRevert property_get_revert_func;
@@ -2148,6 +2148,17 @@ typedef void *(*GDExtensionInterfaceObjectGetInstanceBinding)(GDExtensionObjectP
typedef void (*GDExtensionInterfaceObjectSetInstanceBinding)(GDExtensionObjectPtr p_o, void *p_token, void *p_binding, const GDExtensionInstanceBindingCallbacks *p_callbacks);
/**
+ * @name object_free_instance_binding
+ * @since 4.2
+ *
+ * Free an Object's instance binding.
+ *
+ * @param p_o A pointer to the Object.
+ * @param p_library A token the library received by the GDExtension's entry point function.
+ */
+typedef void (*GDExtensionInterfaceObjectFreeInstanceBinding)(GDExtensionObjectPtr p_o, void *p_token);
+
+/**
* @name object_set_instance
* @since 4.1
*