Skip to content

Commit 55618eb

Browse files
authored
Merge pull request #1264 from dsnopek/misc-gdextension-interface-changes
Miscellaneous updates to gdextension_interface.h
2 parents ef2f63a + 29248c3 commit 55618eb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

gdextension/gdextension_interface.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ typedef struct {
510510
GDExtensionScriptInstanceGet get_func;
511511
GDExtensionScriptInstanceGetPropertyList get_property_list_func;
512512
GDExtensionScriptInstanceFreePropertyList free_property_list_func;
513-
GDExtensionScriptInstanceGetClassCategory get_class_category_func;
513+
GDExtensionScriptInstanceGetClassCategory get_class_category_func; // Optional. Set to NULL for the default behavior.
514514

515515
GDExtensionScriptInstancePropertyCanRevert property_can_revert_func;
516516
GDExtensionScriptInstancePropertyGetRevert property_get_revert_func;
@@ -2147,6 +2147,17 @@ typedef void *(*GDExtensionInterfaceObjectGetInstanceBinding)(GDExtensionObjectP
21472147
*/
21482148
typedef void (*GDExtensionInterfaceObjectSetInstanceBinding)(GDExtensionObjectPtr p_o, void *p_token, void *p_binding, const GDExtensionInstanceBindingCallbacks *p_callbacks);
21492149

2150+
/**
2151+
* @name object_free_instance_binding
2152+
* @since 4.2
2153+
*
2154+
* Free an Object's instance binding.
2155+
*
2156+
* @param p_o A pointer to the Object.
2157+
* @param p_library A token the library received by the GDExtension's entry point function.
2158+
*/
2159+
typedef void (*GDExtensionInterfaceObjectFreeInstanceBinding)(GDExtensionObjectPtr p_o, void *p_token);
2160+
21502161
/**
21512162
* @name object_set_instance
21522163
* @since 4.1

0 commit comments

Comments
 (0)