aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/efl_mono/libefl_mono_native_test.c
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-10 22:30:40 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-04-12 21:23:42 -0300
commit65f868786a59533a1cbf9d58b886cdc4f49ceb94 (patch)
treea0d2478b2f8504cb14d2e06ea78cb3c5b655764a /src/tests/efl_mono/libefl_mono_native_test.c
parentee_wayland: Stop using manual_render_set (diff)
downloadefl-65f868786a59533a1cbf9d58b886cdc4f49ceb94.tar.gz
efl_mono: Proper support for @class methods.
Previously, class methods were implemented as regular instance methods. This commits generates C# static methods for @class methods on the *Concrete classes (and their childs).
Diffstat (limited to 'src/tests/efl_mono/libefl_mono_native_test.c')
-rw-r--r--src/tests/efl_mono/libefl_mono_native_test.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tests/efl_mono/libefl_mono_native_test.c b/src/tests/efl_mono/libefl_mono_native_test.c
index b16c1625f9..b14fab86c7 100644
--- a/src/tests/efl_mono/libefl_mono_native_test.c
+++ b/src/tests/efl_mono/libefl_mono_native_test.c
@@ -3763,6 +3763,30 @@ void _test_testing_call_format_cb(EINA_UNUSED Eo *obj, EINA_UNUSED Test_Testing_
func_free_cb(func_data);
}
+/* Class Properties */
+static int _test_testing_klass_prop = 0;
+
+int _test_testing_klass_prop_get(Eo *klass, EINA_UNUSED void *pd)
+{
+ EINA_LOG_ERR("FAIL on GET");
+ if (klass != test_testing_class_get())
+ {
+ eina_error_set(EINVAL);
+ return -1;
+ }
+ return _test_testing_klass_prop;
+}
+
+void _test_testing_klass_prop_set(Eo *klass, EINA_UNUSED void *pd, int value)
+{
+ EINA_LOG_ERR("FAIL on SET");
+ if (klass != test_testing_class_get())
+ {
+ eina_error_set(EINVAL);
+ }
+ _test_testing_klass_prop = value;
+}
+
#include "test_testing.eo.c"
#include "test_numberwrapper.eo.c"