decl_space.add_type_declaration (new CCodeTypeDefinition ("struct _%s".printf (get_ccode_name (iface)), new CCodeVariableDeclarator (get_ccode_name (iface))));
decl_space.add_type_declaration (new CCodeTypeDefinition ("struct %s".printf (type_struct.name), new CCodeVariableDeclarator (get_ccode_type_name (iface))));
+ unowned Class? prereq_cl = null;
foreach (DataType prerequisite in iface.get_prerequisites ()) {
- unowned Class? prereq_cl = prerequisite.type_symbol as Class;
+ prereq_cl = prerequisite.type_symbol as Class;
unowned Interface? prereq_iface = prerequisite.type_symbol as Interface;
if (prereq_cl != null) {
generate_class_declaration (prereq_cl, decl_space);
decl_space.add_type_member_declaration (type_fun.get_declaration ());
requires_vala_extern = true;
+
+ if (prereq_cl != null) {
+ var base_class = prereq_cl;
+ while (base_class.base_class != null) {
+ base_class = base_class.base_class;
+ }
+ // Custom unref-methods need to be emitted before G_DEFINE_AUTOPTR_CLEANUP_FUNC,
+ // so we guard against that special case and handle it in generate_method_declaration.
+ generate_autoptr_cleanup (iface, base_class, decl_space);
+ }
}
public override void visit_interface (Interface iface) {
VALA_EXTERN AFoo* afoo_construct (GType object_type);
static GType afoo_get_type_once (void);
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN gint ifoo_foo (IFoo* self) G_GNUC_DEPRECATED ;
VALA_EXTERN void ifoo_fooa (IFoo* self) G_GNUC_DEPRECATED ;
static GType ifoo_get_type_once (void);
static gpointer sub_baz_parent_class = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN void ifoo_foo_async (IFoo* self,
GAsyncReadyCallback _callback_,
gpointer _user_data_);
VALA_EXTERN Foo* foo_construct (GType object_type);
static GType foo_get_type_once (void);
VALA_EXTERN GType bar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Bar, g_object_unref)
static void bar_real_method2_data_free (gpointer _data);
static void bar_real_method2 (Bar* self,
GAsyncReadyCallback _callback_,
static FooIface * bar_foo_parent_iface = NULL;
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
static void foo_real_foo_data_free (gpointer _data);
static void foo_real_foo (Foo* self,
GAsyncReadyCallback _callback_,
GMainLoop* loop = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
static GType ifoo_get_type_once (void);
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN gint* test_test_int (Test* self,
gint* i,
gint i_length1,
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN gint test_get_test (Test* self,
GError** error);
static GType test_get_type_once (void);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN gint test_get_test (Test* self,
GError** error);
static GType test_get_type_once (void);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_test_void (Test* self,
GAsyncReadyCallback _callback_,
gpointer _user_data_);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_list_messages (Test* self,
GAsyncReadyCallback _callback_,
gpointer _user_data_);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_test_void (Test* self,
GAsyncReadyCallback _callback_,
gpointer _user_data_);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_test_void (Test* self,
GError** error);
VALA_EXTERN gint test_test_int (Test* self,
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN GVariant* test_test_string (Test* self,
GError** error);
static GType test_get_type_once (void);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN gdouble* test_array (Test* self,
gint* result_length1,
GError** error);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN GHashTable* test_test_nested_dict (Test* self,
GError** error);
static GType test_get_type_once (void);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_test_array_lifetime (Test* self,
gchar** items,
gint items_length1,
const gchar* path,
GError** error);
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN void ifoo_method0 (IFoo* self,
GError** error);
VALA_EXTERN void ifoo_method1 (IFoo* self,
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN gint test_get_test (Test* self,
GError** error);
static GType test_get_type_once (void);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN GHashTable* test_test_dict (Test* self,
GError** error);
static GType test_get_type_once (void);
const gchar* path,
GError** error);
VALA_EXTERN GType test_interface_bar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (TestInterfaceBar, g_object_unref)
VALA_EXTERN GHashTable* test_interface_bar_foo (TestInterfaceBar* self,
GError** error);
static GType test_interface_bar_get_type_once (void);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_test1 (Test* self,
FooEnum e,
GAsyncReadyCallback _callback_,
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_test_void (Test* self,
GError** error);
VALA_EXTERN gint test_test_int (Test* self,
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_test_in (Test* self,
GUnixInputStream* i,
GAsyncReadyCallback _callback_,
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN gchar* test_test (Test* self,
GUnixOutputStream* output_stream,
GError** error);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN GUnixInputStream* test_test_in (Test* self,
GUnixInputStream* i,
GUnixInputStream** j,
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN gint test_get_test (Test* self,
GError** error);
static GType test_get_type_once (void);
GMainLoop* main_loop = NULL;
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN GType test_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint test_register_object (void* object,
GDBusConnection* connection,
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN gchar** test_list_messages (Test* self,
gint* result_length1,
GError** error);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN gint test_test_method (Test* self,
gint j,
gint k,
const gchar* path,
GError** error);
VALA_EXTERN GType test_raw_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (TestRaw, g_object_unref)
VALA_EXTERN GVariant* test_raw_test_method (TestRaw* self,
GVariant* j,
GVariant* k,
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_do_foo (Test* self,
gint i,
GError** error);
const gchar* path,
GError** error);
VALA_EXTERN GType test_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Test, g_object_unref)
VALA_EXTERN void test_test_struct (Test* self,
FooStruct* f,
FooStruct* g,
static FooIface * bar_foo_parent_iface = NULL;
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
VALA_EXTERN void foo_foo (Foo* self,
Func func,
gpointer func_target);
VALA_EXTERN MamanDelegateStruct* maman_delegate_struct_dup (const MamanDelegateStruct* self);
VALA_EXTERN void maman_delegate_struct_free (MamanDelegateStruct* self);
VALA_EXTERN GType maman_foo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (MamanFoo, g_object_unref)
VALA_EXTERN void maman_foo_foo_method (MamanFoo* self,
gint i);
static GType maman_foo_get_type_once (void);
static FooIface * bar_foo_parent_iface = NULL;
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
VALA_EXTERN gpointer foo_get_foo (Foo* self,
gconstpointer g);
static gpointer foo_real_get_foo (Foo* self,
VALA_EXTERN Test* test_new (void);
VALA_EXTERN Test* test_construct (GType object_type);
VALA_EXTERN GType itest_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (ITest, g_object_unref)
VALA_EXTERN gboolean itest_test (ITest* self,
gint a);
static GType itest_get_type_once (void);
};
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
VALA_EXTERN void foo_foo (Foo* self);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static IfaceIface * concrete_iface_parent_iface = NULL;
VALA_EXTERN GType iface1_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Iface1, g_object_unref)
VALA_EXTERN gint iface1_foo (Iface1* self);
static GType iface1_get_type_once (void);
VALA_EXTERN GType iface2_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Iface2, g_object_unref)
VALA_EXTERN gint iface2_foo (Iface2* self);
static GType iface2_get_type_once (void);
VALA_EXTERN GType obj1_get_type (void) G_GNUC_CONST ;
VALA_EXTERN Base* base_construct (GType object_type);
static GType base_get_type_once (void);
VALA_EXTERN GType iface_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Iface, g_object_unref)
VALA_EXTERN gint iface_foo (Iface* self);
static GType iface_get_type_once (void);
VALA_EXTERN GType concrete_get_type (void) G_GNUC_CONST ;
static FooIface * baz_foo_parent_iface = NULL;
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
VALA_EXTERN void foo_foo (Foo* self,
GType t_type,
GBoxedCopyFunc t_dup_func,
static IFooIface * foo_ifoo_parent_iface = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
static GType ifoo_get_type_once (void);
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
static BarIface * foo_bar_parent_iface = NULL;
VALA_EXTERN GType bar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Bar, g_object_unref)
static void g_cclosure_user_marshal_INT__INT (GClosure * closure,
GValue * return_value,
guint n_param_values,
static FooIface * manam_foo_parent_iface = NULL;
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
static void foo_real_virtual_signal (Foo* self);
static GType foo_get_type_once (void);
VALA_EXTERN GType bar_get_type (void) G_GNUC_CONST ;
static gpointer bar_parent_class = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN gint ifoo_get_foo (IFoo* self);
static GType ifoo_get_type_once (void);
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
static IFooIface * bar_ifoo_parent_iface = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN void ifoo_foo (IFoo* self,
gint i);
static void ifoo_real_foo (IFoo* self,
static IBarIface * faz_ibar_parent_iface = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN gint ifoo_foo (IFoo* self);
static GType ifoo_get_type_once (void);
VALA_EXTERN GType ibar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IBar, g_object_unref)
static GType ibar_get_type_once (void);
VALA_EXTERN GType bar_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Bar, g_object_unref)
static gpointer bar_parent_class = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN gint ifoo_foo (IFoo* self);
static GType ifoo_get_type_once (void);
VALA_EXTERN GType ibar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IBar, g_object_unref)
VALA_EXTERN gchar* ibar_foo (IBar* self);
static GType ibar_get_type_once (void);
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
VALA_EXTERN Base* base_construct (GType object_type);
static GType base_get_type_once (void);
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN gchar* ifoo_foo (IFoo* self);
static GType ifoo_get_type_once (void);
VALA_EXTERN GType ibar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IBar, g_object_unref)
VALA_EXTERN gint ibar_foo (IBar* self);
static GType ibar_get_type_once (void);
VALA_EXTERN GType manam_get_type (void) G_GNUC_CONST ;
static IFazIface * baz_ifaz_parent_iface = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
static GType ifoo_get_type_once (void);
VALA_EXTERN GType bar_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Bar, g_object_unref)
GMainLoop* loop = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN void ifoo_foo (IFoo* self,
GAsyncReadyCallback _callback_,
gpointer _user_data_);
static IFooIface * foo_ifoo_parent_iface = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
static void ifoo_bar_data_free (gpointer _data);
VALA_EXTERN void ifoo_bar (IFoo* self,
gpointer g,
static IFooIface * foo_ifoo_parent_iface = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN gpointer ifoo_get (IFoo* self);
static GType ifoo_get_type_once (void);
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
static IFooIface * bar_ifoo_parent_iface = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN gint ifoo_get_prop (IFoo* self);
VALA_EXTERN void ifoo_set_prop (IFoo* self,
gint value);
static void foo_finalize (Foo * obj);
static GType foo_get_type_once (void);
VALA_EXTERN GType ibar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IBar, g_object_unref)
VALA_EXTERN gint ibar_get_foo (IBar* self);
VALA_EXTERN void ibar_set_foo (IBar* self,
gint value);
GMainLoop* loop = NULL;
VALA_EXTERN GType ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IFoo, g_object_unref)
VALA_EXTERN gint ifoo_foo (IFoo* self);
static gint ifoo_real_foo (IFoo* self);
static void ifoo_real_bar_data_free (gpointer _data);
static gpointer maman_sub_baz_parent_class = NULL;
VALA_EXTERN GType maman_ibaz_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (MamanIbaz, g_object_unref)
VALA_EXTERN void maman_ibaz_do_action (MamanIbaz* self);
VALA_EXTERN void maman_ibaz_do_virtual_action (MamanIbaz* self);
VALA_EXTERN void maman_ibaz_protected_mixin_1 (MamanIbaz* self);
VALA_EXTERN MamanDeepDerived* maman_deep_derived_construct (GType object_type);
static GType maman_deep_derived_get_type_once (void);
VALA_EXTERN GType maman_base_access_ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (MamanBaseAccessIFoo, g_object_unref)
VALA_EXTERN gint maman_base_access_ifoo_interface_method (MamanBaseAccessIFoo* self);
VALA_EXTERN gint maman_base_access_ifoo_virtual_interface_method (MamanBaseAccessIFoo* self);
static GType maman_base_access_ifoo_get_type_once (void);
static gint sample_main (void);
VALA_EXTERN void maman_bar_run (void);
VALA_EXTERN GType maman_ibaz_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (MamanIbaz, g_object_unref)
VALA_EXTERN MamanBaz* maman_baz_new (void);
VALA_EXTERN MamanBaz* maman_baz_construct (GType object_type);
VALA_EXTERN GType maman_baz_get_type (void) G_GNUC_CONST ;
GValue * value,
GParamSpec * pspec);
VALA_EXTERN GType maman_ibiz_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (MamanIBiz, g_object_unref)
VALA_EXTERN gint maman_ibiz_get_number (MamanIBiz* self);
VALA_EXTERN void maman_ibiz_set_number (MamanIBiz* self,
gint value);
GValue * value,
GParamSpec * pspec);
VALA_EXTERN GType ibaz_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IBaz, g_object_unref)
VALA_EXTERN gint ibaz_get_read_only (IBaz* self);
static GType ibaz_get_type_once (void);
VALA_EXTERN GType baz_get_type (void) G_GNUC_CONST ;
static void maman_finalize (Maman * obj);
static GType maman_get_type_once (void);
VALA_EXTERN GType ibar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IBar, maman_unref)
static GType ibar_get_type_once (void);
VALA_EXTERN GType bar_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Bar, maman_unref)
static IBarIface * foo_ibar_parent_iface = NULL;
VALA_EXTERN GType ibar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IBar, g_object_unref)
static GType ibar_get_type_once (void);
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
static FooIface * manam_foo_parent_iface = NULL;
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)
VALA_EXTERN gint foo_get_foo (Foo* self);
static GType foo_get_type_once (void);
VALA_EXTERN GType bar_get_type (void) G_GNUC_CONST ;
static void baz_foo_bar1_finalize (BazFooBar1 * obj);
static GType baz_foo_bar1_get_type_once (void);
VALA_EXTERN GType baz_foo_ibar1_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (BazFooIBar1, baz_foo_bar1_unref)
static GType baz_foo_ibar1_get_type_once (void);
static void baz_foo_finalize (BazFoo * obj);
static GType baz_foo_get_type_once (void);
VALA_EXTERN GType baz_ifoo_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (BazIFoo, baz_foo_unref)
VALA_EXTERN gpointer baz_ifoo_bar2_ref (gpointer instance);
VALA_EXTERN void baz_ifoo_bar2_unref (gpointer instance);
VALA_EXTERN GParamSpec* baz_ifoo_param_spec_bar2 (const gchar* name,
static void baz_ifoo_bar2_finalize (BazIFooBar2 * obj);
static GType baz_ifoo_bar2_get_type_once (void);
VALA_EXTERN GType baz_ifoo_ibar2_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (BazIFooIBar2, baz_ifoo_bar2_unref)
static GType baz_ifoo_ibar2_get_type_once (void);
static GType baz_ifoo_get_type_once (void);
VALA_EXTERN GType manam_get_type (void) G_GNUC_CONST ;
};
VALA_EXTERN GType bar_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Bar, g_object_unref)
VALA_EXTERN Foo bar_bar (Bar* self);
static GType bar_get_type_once (void);
static void _vala_main (void);
static void bar_finalize (Bar * obj);
static GType bar_get_type_once (void);
VALA_EXTERN GType manam_get_type (void) G_GNUC_CONST ;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (Manam, g_object_unref)
static GType manam_get_type_once (void);
VALA_EXTERN GType foo_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Foo, g_object_unref)