From 03f873faf29960b3437cd3d3e14aa70d2bd40138 Mon Sep 17 00:00:00 2001 From: Lauro Moura Date: Tue, 29 Oct 2019 11:57:55 -0300 Subject: [PATCH] mono: encapsulate internal workaround members Summary: Depends on D10345 Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true Reviewers: segfaultxavi, Jaehyun_Cho, YOhoho Reviewed By: YOhoho Subscribers: cedric, #reviewers, woohyun, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10346 --- src/bindings/mono/eo_mono/workaround.cs | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/bindings/mono/eo_mono/workaround.cs b/src/bindings/mono/eo_mono/workaround.cs index 50226c0726..7730545092 100644 --- a/src/bindings/mono/eo_mono/workaround.cs +++ b/src/bindings/mono/eo_mono/workaround.cs @@ -21,42 +21,42 @@ using System.Collections.Generic; ///Eo class description, passed to efl_class_new. [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] -public struct ClassDescription +internal struct ClassDescription { ///Current Eo version. - public uint version; + internal uint version; ///Name of the class. - [MarshalAs(UnmanagedType.LPStr)] public String name; + [MarshalAs(UnmanagedType.LPStr)] internal String name; ///Class type. - public int class_type; + internal int class_type; ///Size of data (private + protected + public) per instance. - public UIntPtr data_size; + internal UIntPtr data_size; ///Initializer for the class. - public IntPtr class_initializer; + internal IntPtr class_initializer; ///Constructor of the class. - public IntPtr class_constructor; + internal IntPtr class_constructor; ///Destructor of the class. - public IntPtr class_destructor; + internal IntPtr class_destructor; } ///Description of an Eo API operation. [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] -public struct EflOpDescription +internal struct EflOpDescription { ///The EAPI function offering this op. (String with the name of the function on Windows) - public IntPtr api_func; + internal IntPtr api_func; ///The static function to be called for this op - public IntPtr func; + internal IntPtr func; } ///List of operations on a given Object. [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] -public struct EflObjectOps +internal struct EflObjectOps { ///The op descriptions array of size count. - public IntPtr descs; + internal IntPtr descs; ///Number of op descriptions. - public UIntPtr count; + internal UIntPtr count; }; namespace Efl @@ -195,7 +195,7 @@ public struct Event } public delegate void EventCb(System.IntPtr data, ref Event.NativeStruct evt); -public delegate void FreeWrapperSupervisorCb(System.IntPtr obj); +internal delegate void FreeWrapperSupervisorCb(System.IntPtr obj); [StructLayout(LayoutKind.Sequential)] public struct TextCursorCursor