@@ -399,6 +399,8 @@ typedef struct {
399399 void *class_userdata; // Per-class user data, later accessible in instance bindings.
400400} GDExtensionClassCreationInfo4;
401401
402+ typedef GDExtensionClassCreationInfo4 GDExtensionClassCreationInfo5;
403+
402404typedef void *GDExtensionClassLibraryPtr;
403405
404406/* Passed a pointer to a PackedStringArray that should be filled with the classes that may be used by the GDExtension. */
@@ -2943,6 +2945,7 @@ typedef void (*GDExtensionInterfaceClassdbRegisterExtensionClass3)(GDExtensionCl
29432945/* *
29442946 * @name classdb_register_extension_class4
29452947 * @since 4.4
2948+ * @deprecated in Godot 4.5. Use `classdb_register_extension_class5` instead.
29462949 *
29472950 * Registers an extension class in the ClassDB.
29482951 *
@@ -2955,6 +2958,21 @@ typedef void (*GDExtensionInterfaceClassdbRegisterExtensionClass3)(GDExtensionCl
29552958 */
29562959typedef void (*GDExtensionInterfaceClassdbRegisterExtensionClass4)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstStringNamePtr p_parent_class_name, const GDExtensionClassCreationInfo4 *p_extension_funcs);
29572960
2961+ /* *
2962+ * @name classdb_register_extension_class5
2963+ * @since 4.5
2964+ *
2965+ * Registers an extension class in the ClassDB.
2966+ *
2967+ * Provided struct can be safely freed once the function returns.
2968+ *
2969+ * @param p_library A pointer the library received by the GDExtension's entry point function.
2970+ * @param p_class_name A pointer to a StringName with the class name.
2971+ * @param p_parent_class_name A pointer to a StringName with the parent class name.
2972+ * @param p_extension_funcs A pointer to a GDExtensionClassCreationInfo2 struct.
2973+ */
2974+ typedef void (*GDExtensionInterfaceClassdbRegisterExtensionClass5)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstStringNamePtr p_parent_class_name, const GDExtensionClassCreationInfo5 *p_extension_funcs);
2975+
29582976/* *
29592977 * @name classdb_register_extension_class_method
29602978 * @since 4.1
0 commit comments