2014-09-01 11:08:49 -07:00
|
|
|
enum Test.Enum_Ex {
|
|
|
|
first = 0,
|
|
|
|
second,
|
|
|
|
third,
|
|
|
|
fourth
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Test.Struct_Ex {
|
|
|
|
value_int: int;
|
|
|
|
value_enum: Test.Enum_Ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Test.Object (Eo.Base) {
|
|
|
|
legacy_prefix: null;
|
|
|
|
methods {
|
2016-03-14 09:14:37 -07:00
|
|
|
method_integral_in_a_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests integral in ]]
|
|
|
|
params { a: int; }
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_integral_out_a_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests integral out ]]
|
|
|
|
params { @out a: int; }
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_integral_inout_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests integral inout ]]
|
|
|
|
params { @inout a: int; }
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_integral_return_a_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests integral result ]]
|
|
|
|
return: int;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_div_mod_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests mixed in, outs and result ]]
|
|
|
|
params {
|
|
|
|
a: int;
|
|
|
|
b: int;
|
|
|
|
@out quotient: int;
|
|
|
|
@out remainder: int;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_and_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests boolean ]]
|
|
|
|
params {
|
|
|
|
a: bool;
|
|
|
|
b: bool;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_modf_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests floating point ]]
|
|
|
|
params {
|
|
|
|
a: double;
|
|
|
|
@out int_part: double;
|
|
|
|
}
|
|
|
|
return: double;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_uppercase_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests string ]]
|
|
|
|
params {
|
|
|
|
@inout str: char*;
|
|
|
|
}
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_in_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null input ]]
|
|
|
|
params {
|
|
|
|
a: char*;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_out_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null output ]]
|
|
|
|
params {
|
|
|
|
@out a: char*;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_inout_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null output ]]
|
|
|
|
params {
|
|
|
|
@inout a: char*;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_return_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null return ]]
|
|
|
|
return: char*;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null values ]]
|
|
|
|
params {
|
|
|
|
in: char*;
|
|
|
|
@out out: char*;
|
|
|
|
@inout inout: char*;
|
|
|
|
}
|
|
|
|
return: char*;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_at_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests array ]]
|
|
|
|
params {
|
|
|
|
array: array<int>*;
|
|
|
|
index: int;
|
|
|
|
}
|
|
|
|
return: int;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_with_42_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests parameters ]]
|
|
|
|
return: free(own(array<int> *), eina_array_free) @warn_unused;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_in_array_out_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests parameters ]]
|
|
|
|
params {
|
|
|
|
@in a_in: array<int> *;
|
|
|
|
@out a_out: array<int> *;
|
|
|
|
}
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_objects_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: array<Test.Object *> *;
|
|
|
|
}
|
|
|
|
return: array<Test.Object *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_strings_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: array<const(char) *> *;
|
|
|
|
}
|
|
|
|
return: array<const(char) *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: array<int> *;
|
|
|
|
}
|
|
|
|
return: array<int> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_bools_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: array<bool> *;
|
|
|
|
}
|
|
|
|
return: array<bool> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_doubles_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: array<double> *;
|
|
|
|
}
|
|
|
|
return: array<double> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_enums_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: array<Test.Enum_Ex> *;
|
|
|
|
}
|
|
|
|
return: array<Test.Enum_Ex> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_structs_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: array<Test.Struct_Ex> *;
|
|
|
|
}
|
|
|
|
return: array<Test.Struct_Ex> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_with_42_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests parameters ]]
|
|
|
|
return: free(own(list<int> *), eina_list_free) @warn_unused;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_in_list_out_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests parameters ]]
|
|
|
|
params {
|
|
|
|
@in l_in: list<int> *;
|
|
|
|
@out l_out: list<int> *;
|
|
|
|
}
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_objects_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in l_in: list<Test.Object *> *;
|
|
|
|
}
|
|
|
|
return: list<Test.Object *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_strings_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in l_in: list<const(char) *> *;
|
|
|
|
}
|
|
|
|
return: list<const(char) *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in l_in: list<int> *;
|
|
|
|
}
|
|
|
|
return: list<int> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_bools_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in l_in: list<bool> *;
|
|
|
|
}
|
|
|
|
return: list<bool> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_doubles_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in l_in: list<double> *;
|
|
|
|
}
|
|
|
|
return: list<double> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_enums_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in l_in: list<Test.Enum_Ex> *;
|
|
|
|
}
|
|
|
|
return: list<Test.Enum_Ex> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_structs_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in l_in: list<Test.Struct_Ex> *;
|
|
|
|
}
|
|
|
|
return: list<Test.Struct_Ex> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_objects_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: accessor<Test.Object *> *;
|
|
|
|
}
|
|
|
|
return: accessor<Test.Object *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_strings_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: accessor<const(char) *> *;
|
|
|
|
}
|
|
|
|
return: accessor<const(char) *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: accessor<int> *;
|
|
|
|
}
|
|
|
|
return: accessor<int> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_bools_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: accessor<bool> *;
|
|
|
|
}
|
|
|
|
return: accessor<bool> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_doubles_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: accessor<double> *;
|
|
|
|
}
|
|
|
|
return: accessor<double> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_enums_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: accessor<Test.Enum_Ex> *;
|
|
|
|
}
|
|
|
|
return: accessor<Test.Enum_Ex> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_structs_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: accessor<Test.Struct_Ex> *;
|
|
|
|
}
|
|
|
|
return: accessor<Test.Struct_Ex> *;
|
|
|
|
}
|
2016-03-16 12:08:45 -07:00
|
|
|
method_iterator_of_objects_check {
|
|
|
|
params {
|
|
|
|
@in i_in: iterator<Test.Object *> *;
|
|
|
|
}
|
|
|
|
return: iterator<Test.Object *> *;
|
|
|
|
}
|
|
|
|
method_iterator_of_strings_check {
|
|
|
|
params {
|
|
|
|
@in i_in: iterator<const(char) *> *;
|
|
|
|
}
|
|
|
|
return: iterator<const(char) *> *;
|
|
|
|
}
|
|
|
|
method_iterator_of_ints_check {
|
|
|
|
params {
|
|
|
|
@in i_in: iterator<int> *;
|
|
|
|
}
|
|
|
|
return: iterator<int> *;
|
|
|
|
}
|
|
|
|
method_iterator_of_bools_check {
|
|
|
|
params {
|
|
|
|
@in i_in: iterator<bool> *;
|
|
|
|
}
|
|
|
|
return: iterator<bool> *;
|
|
|
|
}
|
|
|
|
method_iterator_of_doubles_check {
|
|
|
|
params {
|
|
|
|
@in i_in: iterator<double> *;
|
|
|
|
}
|
|
|
|
return: iterator<double> *;
|
|
|
|
}
|
|
|
|
method_iterator_of_enums_check {
|
|
|
|
params {
|
|
|
|
@in i_in: iterator<Test.Enum_Ex> *;
|
|
|
|
}
|
|
|
|
return: iterator<Test.Enum_Ex> *;
|
|
|
|
}
|
|
|
|
method_iterator_of_structs_check {
|
|
|
|
params {
|
|
|
|
@in i_in: iterator<Test.Struct_Ex> *;
|
|
|
|
}
|
|
|
|
return: iterator<Test.Struct_Ex> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_arrays_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: array<array<int> *> *;
|
|
|
|
}
|
|
|
|
return: array<array<int> *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_lists_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in l_in: list<list<int> *> *;
|
|
|
|
}
|
|
|
|
return: list<list<int> *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_lists_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in a_in: array<list<int> *> *;
|
|
|
|
}
|
|
|
|
return: array<list<int> *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_arrays_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
|
|
|
@in l_in: list<array<int> *> *;
|
|
|
|
}
|
|
|
|
return: list<array<int> *> *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_with_opaque_elements_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
return: const(list<Elm.Calendar.Mark*>)*;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_in_enum_return_enum_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params { e: Test.Enum_Ex; }
|
|
|
|
return: Test.Enum_Ex;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_in_struct_return_struct_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params { e: Test.Struct_Ex *; }
|
|
|
|
return: Test.Struct_Ex *;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
event_emit {
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
event_repeated_event_name {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
|
|
|
Eo.Base.finalize;
|
|
|
|
Eo.Base.constructor;
|
|
|
|
Eo.Base.destructor;
|
|
|
|
}
|
|
|
|
events {
|
|
|
|
test;
|
|
|
|
test,structarg: Test.Struct_Ex;
|
|
|
|
test,stringarg: const(char)*;
|
|
|
|
repeated,event,name;
|
|
|
|
}
|
|
|
|
}
|