From bfc095104cf286485672ea78049ca2677e6e5fea Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Tue, 17 Dec 2019 20:04:01 +0900 Subject: [PATCH] csharp: apply same form of "Since EFL" to all manual bindings .cs files The following form of "Since EFL" is applied to descriptions of all manual bindings .cs files. /// Since EFL 1.XX. --- .../mono/efl_mono/efl_csharp_application.cs | 2 +- .../mono/eina_mono/eina_environment.cs | 6 ++--- src/bindings/mono/eina_mono/eina_hash.cs | 2 +- src/bindings/mono/eina_mono/eina_slice.cs | 6 ++--- src/bindings/mono/eina_mono/eina_value.cs | 2 +- .../mono/eldbus_mono/eldbus_object.cs | 4 +-- src/bindings/mono/eo_mono/iwrapper.cs | 4 +-- src/bindings/mono/eo_mono/workaround.cs | 25 +++++++++++++------ 8 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/bindings/mono/efl_mono/efl_csharp_application.cs b/src/bindings/mono/efl_mono/efl_csharp_application.cs index 63d9aacae8..17a777ec42 100644 --- a/src/bindings/mono/efl_mono/efl_csharp_application.cs +++ b/src/bindings/mono/efl_mono/efl_csharp_application.cs @@ -43,7 +43,7 @@ public enum Components : Int32 /// /// Elementary Widget toolkit: Elm. /// it's depend of . - /// Since EFL 1.24 + /// Since EFL 1.24. /// Ui = Basic | 0x2, diff --git a/src/bindings/mono/eina_mono/eina_environment.cs b/src/bindings/mono/eina_mono/eina_environment.cs index 7cef31cbf1..e7f847b4e2 100644 --- a/src/bindings/mono/eina_mono/eina_environment.cs +++ b/src/bindings/mono/eina_mono/eina_environment.cs @@ -16,7 +16,7 @@ internal static class Environment /// /// Returns the value of the environment variable named name. /// - /// Since EFL 1.24 + /// Since EFL 1.24. /// /// The name of the variable to be retrieved /// The value of the variable. null if not set. @@ -28,7 +28,7 @@ internal static class Environment /// /// Sets a native environment variable. /// - /// Since EFL 1.24 + /// Since EFL 1.24. /// /// The name of the variable /// The value to be set. @@ -50,4 +50,4 @@ internal static partial class NativeCustomExportFunctions public static extern Eina.Error efl_mono_native_setenv(string name, string value, int overwrite); } -} \ No newline at end of file +} diff --git a/src/bindings/mono/eina_mono/eina_hash.cs b/src/bindings/mono/eina_mono/eina_hash.cs index c254d58ae5..5b6f4735c1 100644 --- a/src/bindings/mono/eina_mono/eina_hash.cs +++ b/src/bindings/mono/eina_mono/eina_hash.cs @@ -196,7 +196,7 @@ public static class HashNativeFunctions /// Wrapper around native dictionary mapping keys to values. /// -/// Since EFL 1.23. +/// Since EFL 1.23. /// public class Hash : IEnumerable>, IDisposable { diff --git a/src/bindings/mono/eina_mono/eina_slice.cs b/src/bindings/mono/eina_mono/eina_slice.cs index c7a1fd984f..e47da1071c 100644 --- a/src/bindings/mono/eina_mono/eina_slice.cs +++ b/src/bindings/mono/eina_mono/eina_slice.cs @@ -49,7 +49,7 @@ public interface ISliceBase /// Pointer to a slice of native memory. /// -/// Since EFL 1.23. +/// Since EFL 1.23. /// [StructLayout(LayoutKind.Sequential)] public struct Slice : ISliceBase, IEquatable @@ -114,7 +114,7 @@ public struct Slice : ISliceBase, IEquatable => (Length == other.Length) ^ (Mem == other.Mem); /// Returns whether lhs is equal to rhs. - /// Since EFL 1.24 + /// Since EFL 1.24. /// /// The left hand side of the operator. /// The right hand side of the operator. @@ -134,7 +134,7 @@ public struct Slice : ISliceBase, IEquatable /// Pointer to a slice of native memory. /// -/// Since EFL 1.23. +/// Since EFL 1.23. /// [StructLayout(LayoutKind.Sequential)] public struct RwSlice : ISliceBase, IEquatable diff --git a/src/bindings/mono/eina_mono/eina_value.cs b/src/bindings/mono/eina_mono/eina_value.cs index 2a2508e08b..5b203812da 100644 --- a/src/bindings/mono/eina_mono/eina_value.cs +++ b/src/bindings/mono/eina_mono/eina_value.cs @@ -927,7 +927,7 @@ static class ValueTypeMethods /// marshall_type_impl.hh in the generator). User-facing API still uses Eina.ValueType /// normally. /// -/// Since EFL 1.23. +/// Since EFL 1.23. /// [EditorBrowsable(EditorBrowsableState.Never)] public class ValueTypeBox diff --git a/src/bindings/mono/eldbus_mono/eldbus_object.cs b/src/bindings/mono/eldbus_mono/eldbus_object.cs index 3c77d258c4..ed78fc7a15 100644 --- a/src/bindings/mono/eldbus_mono/eldbus_object.cs +++ b/src/bindings/mono/eldbus_mono/eldbus_object.cs @@ -292,9 +292,7 @@ public class Object : System.IDisposable /// /// Decrease object reference. /// If reference == 0 object will be freed and all its children. - /// - /// Since EFL 1.23. - /// + /// Since EFL 1.23. /// public void Unref() { diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs index c84433c23e..ed61634328 100644 --- a/src/bindings/mono/eo_mono/iwrapper.cs +++ b/src/bindings/mono/eo_mono/iwrapper.cs @@ -1034,7 +1034,7 @@ internal static class ClassRegister /// /// For internal usage by generated code. /// -/// Since EFL 1.24 +/// Since EFL 1.24. /// class MarshalEoNoMove : ICustomMarshaler { @@ -1117,7 +1117,7 @@ class MarshalEoNoMove : ICustomMarshaler /// /// For internal usage by generated code. /// -/// Since EFL 1.24 +/// Since EFL 1.24. /// class MarshalEoMove : ICustomMarshaler { diff --git a/src/bindings/mono/eo_mono/workaround.cs b/src/bindings/mono/eo_mono/workaround.cs index de8ab97efd..7b0ceab056 100644 --- a/src/bindings/mono/eo_mono/workaround.cs +++ b/src/bindings/mono/eo_mono/workaround.cs @@ -111,7 +111,10 @@ internal struct EflObjectOps namespace Efl { -///This struct holds the description of a specific event (Since EFL 1.22). +/// +/// This struct holds the description of a specific event. +/// Since EFL 1.22. +/// [StructLayout(LayoutKind.Sequential)] internal struct EventDescription { @@ -164,25 +167,31 @@ internal struct EventDescription /// /// A parameter passed in event callbacks holding extra event parameters. /// This is the full event information passed to callbacks in C. -/// (Since EFL 1.22) +/// Since EFL 1.22. /// [StructLayout(LayoutKind.Sequential)] [Efl.Eo.BindingEntity] internal struct Event { - /// The object the callback was called on. - /// (Since EFL 1.22) + /// + /// The object the callback was called on. + /// Since EFL 1.22. + /// public Efl.Object Object; - /// The event description. - /// (Since EFL 1.22) + /// + /// The event description. + /// Since EFL 1.22. + /// public Efl.EventDescription Desc; - /// Extra event information passed by the event caller. + /// + /// Extra event information passed by the event caller. /// Must be cast to the event type declared in the EO file. Keep in mind that: /// 1) Objects are passed as a normal Eo*. Event subscribers can call functions on these objects. /// 2) Structs, built-in types and containers are passed as const pointers, with one level of indirection. - /// (Since EFL 1.22) + /// Since EFL 1.22. + /// public System.IntPtr Info; /// Constructor for Event.