summaryrefslogtreecommitdiff
path: root/valadoc/tests/drivers/api-test.data.vapi
blob: 37871f0129c31ebd06dda1e520ab1b4a154b3b0f (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151


using GLib;

/*
	Todo:
		- private / protected / internal
		- comments
		- parent
		- inheritance, interface impl
			- virtual, abstract, override
		- generics
*/


// global tests:
public delegate void test_delegate_global ();
public void test_function_global ();
public int test_field_global;
public const int test_const_global;


// Checked
public errordomain TestErrDomGlobal {
	ERROR1,
	ERROR2;

	public static void static_method ();
}


// Checked
public enum TestEnumGlobal {
	ENVAL1 = 100,
	ENVAL2;

	public void method ();
	public static void static_method ();
}


// Checked
public class TestClassGlobal {
	public class InnerClass {
	}

	public struct InnerStruct {
	}

	public const int constant;
	public static int field1;
	public int field2;
	public TestClassGlobal ();
	public TestClassGlobal.named ();
	public void method ();
	public static void static_method ();
	public int property_1 { get; set; }
	public int property_2 { get; }
	public int property_3 { owned get; set; }
	public delegate int Foo ();
	public signal int sig_1 ();
}


// Checked
public interface TestInterfaceGlobal {
	public const int constant;
	public void method ();
	public static void static_method ();
	public int property_1 { get; set; }
	public int property_2 { get; }
	public int property_3 { owned get; set; }
	public delegate int Foo ();
	public signal int sig_1 ();
}


// Checked
public struct TestStructGlobal {
	public static int field1;
	public int field2;
	public TestStructGlobal ();
	public TestStructGlobal.named ();
	public void method ();
	public static void static_method ();
	public const int constant;
	public int property_1 { get; set; }
	public int property_2 { get; }
	public int property_3 { owned get; set; }
}


namespace ParamTest {
	public void test_function_param_1 ();
	public void test_function_param_2 (int a);
	public void test_function_param_3 (ref int a);
	public void test_function_param_4 (out int a);
	public void test_function_param_5 (owned Object o);
	public void test_function_param_6 (int? a);
	public void test_function_param_7 (...);
	public void test_function_param_8 (int a = 1);
	public void test_function_param_9 (int a, ref int b, out int c, owned Object d, int? e, int f = 1, ...);

	public void test_function_param_10 (int* a);
	public void test_function_param_11 (int** a);

	public void test_function_param_12 (int[] a);
	public void test_function_param_13 (int[,,] a);
	//public void test_function_param_14 (int[][] a);
}


namespace ReturnTest {
	public void test_function_1 ();
	public int test_function_2 ();
	public int? test_function_3 ();
	public unowned string test_function_4 ();

	public int* test_function_5 ();
	public int** test_function_6 ();

	public int[] test_function_7 ();
	public int[,,] test_function_8 ();
	//public int[][] test_function_9 ();
}


namespace VersionTest {
	[Deprecated]
	public void test_function_1 ();
	[Deprecated (since = "1.0", replacement = "test_function_4")]
	public void test_function_2 ();

	[Experimental]
	public void test_function_3 ();

	[Version (since = "2.0")]
	public void test_function_4 ();
	[Version (deprecated = true)]
	public void test_function_5 ();
	[Version (deprecated = true, deprecated_since = "2.0", replacement = "test_function_4", since = "1.0")]
	public void test_function_6 ();
	[Version (deprecated_since = "2.0")]
	public void test_function_7 ();
	[Version (deprecated = false)]
	public void test_function_8 ();
	[Version (experimental = true)]
	public void test_function_9 ();
}