summaryrefslogtreecommitdiff
path: root/src/lib/efl_mono
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-06-25 19:11:23 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-06-25 19:11:23 +0900
commit907bdad065aac9676613ed49e5aedfd7f9052b27 (patch)
tree749b3009f1048860be52c3375b2147aff7f90061 /src/lib/efl_mono
parent0a0f3d5bfe167d1cb31127f066e1e4af3ef0a563 (diff)
efl-mono: Add object type support for Eina.Value
Summary: C# `Eina.Value` now has builtin support for `EINA_VALUE_TYPE_OBJECT`. To avoid ambiguity with the `Set` method overloads, explicit casting operators were used for wrapping/unwrapping `Efl.Object` instead of implicit ones like for other value types. Thus, to initialize an `Eina.Value` from an object, you can use the following: `var v = (Eina.Value)myObj;` Reviewers: felipealmeida, vitor.sousa, segfaultxavi, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9164
Diffstat (limited to 'src/lib/efl_mono')
-rw-r--r--src/lib/efl_mono/efl_custom_exports_mono.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/efl_mono/efl_custom_exports_mono.c b/src/lib/efl_mono/efl_custom_exports_mono.c
index 55f0054da0..ad74babe52 100644
--- a/src/lib/efl_mono/efl_custom_exports_mono.c
+++ b/src/lib/efl_mono/efl_custom_exports_mono.c
@@ -403,6 +403,9 @@ EAPI const Eina_Value_Type *type_list() {
403EAPI const Eina_Value_Type *type_error() { 403EAPI const Eina_Value_Type *type_error() {
404 return EINA_VALUE_TYPE_ERROR; 404 return EINA_VALUE_TYPE_ERROR;
405} 405}
406EAPI const Eina_Value_Type *type_object() {
407 return EINA_VALUE_TYPE_OBJECT;
408}
406 409
407EAPI const Eina_Value_Type *type_optional() { 410EAPI const Eina_Value_Type *type_optional() {
408 return EINA_VALUE_TYPE_OPTIONAL; 411 return EINA_VALUE_TYPE_OPTIONAL;