summaryrefslogtreecommitdiff
path: root/tests/girwriter/class-final.test
blob: e92739ebe8f9aa34f8525c63690f4bd63d5c29f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
GIRWriter

Input:

public class Test.Foo {
}
public sealed class Test.Bar : Test.Foo {
}

Output:

<include name="GObject" version="2.0"/>
<package name="test"/>
<c:include name="test.h"/>
<namespace name="Test" version="1.2" c:prefix="Test" c:identifier-prefixes="Test" c:symbol-prefixes="test">
	<class name="TestFoo" c:type="TestTestFoo" c:symbol-prefix="foo" glib:type-name="TestTestFoo" glib:get-type="test_test_foo_get_type" glib:type-struct="TestFooClass" glib:fundamental="1" glib:ref-func="test_test_foo_ref" glib:unref-func="test_test_foo_unref" glib:set-value-func="test_test_value_set_foo" glib:get-value-func="test_test_value_get_foo">
		<field name="parent_instance" readable="0" private="1">
			<type name="GObject.TypeInstance" c:type="GTypeInstance"/>
		</field>
		<field name="ref_count">
			<type name="gint" c:type="volatile int"/>
		</field>
		<field name="priv" readable="0" private="1">
			<type name="TestFooPrivate" c:type="TestTestFooPrivate*"/>
		</field>
		<constructor name="new" c:identifier="test_test_foo_new">
			<return-value transfer-ownership="full">
				<type name="Test.Foo" c:type="TestTestFoo*"/>
			</return-value>
		</constructor>
	</class>
	<record name="TestFooClass" c:type="TestTestFooClass" glib:is-gtype-struct-for="TestFoo">
		<field name="parent_class" readable="0" private="1">
			<type name="GObject.TypeClass" c:type="GTypeClass"/>
		</field>
	</record>
	<record name="TestFooPrivate" c:type="TestTestFooPrivate" disguised="1"/>
	<class name="TestBar" c:type="TestTestBar" c:symbol-prefix="bar" glib:type-name="TestTestBar" glib:get-type="test_test_bar_get_type" glib:type-struct="TestBarClass" parent="Test.Foo" final="1">
		<field name="parent_instance" readable="0" private="1">
			<type name="Test.Foo" c:type="TestTestFoo"/>
		</field>
		<field name="priv" readable="0" private="1">
			<type name="TestBarPrivate" c:type="TestTestBarPrivate*"/>
		</field>
		<constructor name="new" c:identifier="test_test_bar_new">
			<return-value transfer-ownership="full">
				<type name="Test.Bar" c:type="TestTestBar*"/>
			</return-value>
		</constructor>
	</class>
	<record name="TestBarClass" c:type="TestTestBarClass" glib:is-gtype-struct-for="TestBar">
		<field name="parent_class" readable="0" private="1">
			<type name="Test.FooClass" c:type="TestTestFooClass"/>
		</field>
	</record>
	<record name="TestBarPrivate" c:type="TestTestBarPrivate" disguised="1"/>
</namespace>