summaryrefslogtreecommitdiff
path: root/icespider/unittests/test-api.ice
blob: c89e0fcd9b60ec968d10690340b299ed12dbdd0a (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
module TestIceSpider {
	class SomeModel {
		string value;
	};

	struct Mash1 {
		SomeModel a;
		SomeModel b;
	};

	class Mash2 {
		SomeModel a;
		SomeModel b;
		string s;
	};

	["cpp:ice_print"]
	exception Ex {
		string message;
	};

	interface TestApi {
		int simple() throws Ex;
		string simplei(int i);
		SomeModel index();
		SomeModel withParams(string s, int i) throws Ex;
		void returnNothing(string s) throws Ex;
		void complexParam(optional(0) string s, SomeModel m);
	};
	interface DummyPlugin {
	};
};