summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eo_mono/iwrapper.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-07-11 15:50:33 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-07-11 15:51:38 -0300
commita19bb21edf75256e8dfe043d591d05bbf23a29a3 (patch)
tree789cd6ca9f52637b1fd1889a15a58998c70c7cb3 /src/bindings/mono/eo_mono/iwrapper.cs
parent89399672b7a90451071d03b9403d8c8b698d67e1 (diff)
csharp: Tag exported API items.
Summary: Attributes to be used by the API export tool. For end users, no changes in the public API (except for a new attribute in generated classes). Also simplifies constructor forwarding by not needing to pass the type of the first "generated" class to compare. Currently only automatically generated items are tagged. Depends: D9259 Reviewers: vitor.sousa, felipealmeida Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9270
Diffstat (limited to 'src/bindings/mono/eo_mono/iwrapper.cs')
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index 833ae78302..09c82a7e81 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -775,6 +775,22 @@ public class PrivateNativeClass : NativeClass
775 } 775 }
776} 776}
777 777
778[System.AttributeUsage(System.AttributeTargets.Class |
779 System.AttributeTargets.Interface |
780 System.AttributeTargets.Enum |
781 System.AttributeTargets.Delegate |
782 System.AttributeTargets.Struct,
783 AllowMultiple = false,
784 Inherited = false)
785]
786public class BindingEntity: System.Attribute
787{
788 public static bool IsBindingEntity(System.Type t)
789 {
790 return Attribute.GetCustomAttribute(t, typeof(BindingEntity), false) != null;
791 }
792}
793
778public interface IWrapper 794public interface IWrapper
779{ 795{
780 /// <summary>Pointer to internal Eo instance.</summary> 796 /// <summary>Pointer to internal Eo instance.</summary>