q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c4572d3f791b3ae634c63f21ed05b17a1754a894

commit c4572d3f791b3ae634c63f21ed05b17a1754a894
Author: Lauro Moura <lauromo...@expertisesolutions.com.br>
Date:   Wed May 23 10:07:05 2018 -0300

    efl_mono: Fix events after Event_Description rename.
---
 src/bin/eolian_mono/eolian/mono/blacklist.hh         | 2 +-
 src/bin/eolian_mono/eolian/mono/klass.hh             | 2 +-
 src/bin/eolian_mono/eolian/mono/struct_definition.hh | 2 +-
 src/bindings/mono/eo_mono/iwrapper.cs                | 5 +----
 src/bindings/mono/eo_mono/workaround.cs              | 8 +++-----
 5 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/src/bin/eolian_mono/eolian/mono/blacklist.hh 
b/src/bin/eolian_mono/eolian/mono/blacklist.hh
index 1db4c6108a..a436bcc203 100644
--- a/src/bin/eolian_mono/eolian/mono/blacklist.hh
+++ b/src/bin/eolian_mono/eolian/mono/blacklist.hh
@@ -56,7 +56,7 @@ inline bool is_function_blacklisted(std::string const& c_name)
 // Blacklist structs that require some kind of manual binding.
 inline bool is_struct_blacklisted(std::string const& full_name)
 {
-   return full_name == "Efl.Event.Description"
+   return full_name == "Efl.Event_Description"
        || full_name == "Eina.Binbuf"
        || full_name == "Eina.Strbuf"
        || full_name == "Eina.Slice"
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh 
b/src/bin/eolian_mono/eolian/mono/klass.hh
index e85654756d..c25b1d8e34 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -500,7 +500,7 @@ struct klass
             << scope_tab << scope_tab << "if (!event_cb_count.TryGetValue(key, 
out event_count))\n"
             << scope_tab << scope_tab << scope_tab << "event_cb_count[key] = 
event_count;\n"
             << scope_tab << scope_tab << "if (event_count == 1) {\n"
-            << scope_tab << scope_tab << scope_tab << 
"efl.kw_event.Description desc = new efl.kw_event.Description(key);\n"
+            << scope_tab << scope_tab << scope_tab << "efl.Event_Description 
desc = new efl.Event_Description(key);\n"
             << scope_tab << scope_tab << scope_tab << "bool result = 
efl.eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, 
System.IntPtr.Zero);\n"
             << scope_tab << scope_tab << scope_tab << "if (!result) {\n"
             << scope_tab << scope_tab << scope_tab << scope_tab << 
"eina.Log.Error($\"Failed to remove event proxy for event {key}\");\n"
diff --git a/src/bin/eolian_mono/eolian/mono/struct_definition.hh 
b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
index 618b433213..42d2f0d711 100644
--- a/src/bin/eolian_mono/eolian/mono/struct_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
@@ -368,7 +368,7 @@ struct struct_binding_conversion_functions_generator
      // Open conversion class
      if (!as_generator
          (
-          "internal static class " << string << "_StructConversion\n{\n"
+          "public static class " << string << "_StructConversion\n{\n"
          )
          .generate(sink, struct_.cxx_name, context))
        return false;
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs 
b/src/bindings/mono/eo_mono/iwrapper.cs
index bb7a45b291..d25ffec625 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -53,16 +53,13 @@ public class Globals {
 
    [DllImport(efl.Libs.Eo)] public static extern bool 
efl_event_callback_priority_add(
               System.IntPtr obj,
-              // FIXME commented to allow passing null stuff during test
-              //ref efl.kw_event.Description desc,
-              //efl.kw_event.Description desc,
               IntPtr desc,
               short priority,
               efl.Event_Cb cb,
               System.IntPtr data);
    [DllImport(efl.Libs.Eo)] public static extern bool efl_event_callback_del(
               System.IntPtr obj,
-              efl.kw_event.Description desc,
+              efl.Event_Description desc,
               efl.Event_Cb cb,
               System.IntPtr data);
     [DllImport(efl.Libs.Eo)] public static extern IntPtr
diff --git a/src/bindings/mono/eo_mono/workaround.cs 
b/src/bindings/mono/eo_mono/workaround.cs
index 925e437908..207f5cab52 100644
--- a/src/bindings/mono/eo_mono/workaround.cs
+++ b/src/bindings/mono/eo_mono/workaround.cs
@@ -70,10 +70,10 @@ public struct Evas_Object_Box_Option {
 };
 #pragma warning restore 0169
 
-namespace efl { namespace kw_event {
+namespace efl {
 
 [StructLayout(LayoutKind.Sequential)]
-public struct Description {
+public struct Event_Description {
     public IntPtr Name;
     [MarshalAs(UnmanagedType.U1)] public bool Unfreezable;
     [MarshalAs(UnmanagedType.U1)] public bool Legacy_is;
@@ -81,7 +81,7 @@ public struct Description {
 
     private static Dictionary<string, IntPtr> descriptions = new 
Dictionary<string, IntPtr>();
 
-    public Description(string name)
+    public Event_Description(string name)
     {
         if (!descriptions.ContainsKey(name))
         {
@@ -101,8 +101,6 @@ public struct Description {
     }
 };
 
-} // namespace kw_event
-
 
 public delegate void Event_Cb(System.IntPtr data, ref Event evt);
 #pragma warning disable 0169

-- 


Reply via email to