Skip to content

Commit

Permalink
Miscellaneous updates to gdextension_interface.h
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnopek committed Oct 12, 2023
1 parent ef2f63a commit 29248c3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion gdextension/gdextension_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -2147,6 +2147,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
Expand Down

0 comments on commit 29248c3

Please sign in to comment.