diff options
-rw-r--r-- | src/bin/eolian_mono/eolian/mono/events.hh | 2 | ||||
-rw-r--r-- | src/bin/eolian_mono/eolian/mono/struct_definition.hh | 12 | ||||
-rw-r--r-- | src/bindings/mono/eo_mono/workaround.cs | 2 |
3 files changed, 9 insertions, 7 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/events.hh b/src/bin/eolian_mono/eolian/mono/events.hh index 2da287b8e7..a5fe8ec788 100644 --- a/src/bin/eolian_mono/eolian/mono/events.hh +++ b/src/bin/eolian_mono/eolian/mono/events.hh @@ -211,7 +211,7 @@ struct event_definition_generator << scope_tab << scope_tab << "}\n" << scope_tab << scope_tab << "if (evt != null) { evt(this, e); }\n" << scope_tab << "}\n" - << scope_tab << "private void on_" << wrapper_evt_name << "_NativeCallback(System.IntPtr data, ref efl.Event evt)\n" + << scope_tab << "private void on_" << wrapper_evt_name << "_NativeCallback(System.IntPtr data, ref efl.Event_StructInternal evt)\n" << scope_tab << "{\n" << scope_tab << scope_tab << event_args << scope_tab << scope_tab << "try {\n" diff --git a/src/bin/eolian_mono/eolian/mono/struct_definition.hh b/src/bin/eolian_mono/eolian/mono/struct_definition.hh index 42d2f0d711..58007a2cdd 100644 --- a/src/bin/eolian_mono/eolian/mono/struct_definition.hh +++ b/src/bin/eolian_mono/eolian/mono/struct_definition.hh @@ -115,11 +115,12 @@ struct struct_internal_definition_generator || regular->base_type == "stringshare" || regular->base_type == "any_value_ptr"))) { - if (!as_generator(" internal System.IntPtr " << string << ";\n") - .generate(sink, field_name, context)) + if (!as_generator("///<summary>Internal wrapper for field " << field_name << "</summary>\n" + << "public System.IntPtr " << field_name << ";\n") + .generate(sink, nullptr, context)) return false; } - else if (!as_generator(eolian_mono::marshall_annotation(false) << " internal " << eolian_mono::marshall_type(false) << " " << string << ";\n") + else if (!as_generator(eolian_mono::marshall_annotation(false) << " public " << eolian_mono::marshall_type(false) << " " << string << ";\n") .generate(sink, std::make_tuple(field.type, field.type, field_name), context)) return false; } @@ -368,9 +369,10 @@ struct struct_binding_conversion_functions_generator // Open conversion class if (!as_generator ( - "public static class " << string << "_StructConversion\n{\n" + "/// <summary>Conversion class for struct " << struct_.cxx_name << "</summary>\n" + "public static class " << struct_.cxx_name << "_StructConversion\n{\n" ) - .generate(sink, struct_.cxx_name, context)) + .generate(sink, nullptr, context)) return false; // to internal diff --git a/src/bindings/mono/eo_mono/workaround.cs b/src/bindings/mono/eo_mono/workaround.cs index 26afcefcb6..253e3758f3 100644 --- a/src/bindings/mono/eo_mono/workaround.cs +++ b/src/bindings/mono/eo_mono/workaround.cs @@ -106,7 +106,7 @@ public struct Event_Description { }; -public delegate void Event_Cb(System.IntPtr data, ref Event evt); +public delegate void Event_Cb(System.IntPtr data, ref Event_StructInternal evt); #pragma warning disable 0169 public struct Dbg_Info { IntPtr name; |