mono: add static modifier to static holder types.

Summary: This patch will fix CA1052 compiler warnings.

Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true

Reviewers: lauromoura, Jaehyun_Cho

Reviewed By: lauromoura

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10434
This commit is contained in:
Yeongjong Lee 2019-10-17 14:36:15 -03:00 committed by Lauro Moura
parent cfa8baa152
commit 0eb180b3ab
8 changed files with 25 additions and 25 deletions

View File

@ -5,7 +5,7 @@ namespace efl {
/// <summary> /// <summary>
/// Define the name of the libraries to be passed to DllImport statements. /// Define the name of the libraries to be passed to DllImport statements.
/// </summary> /// </summary>
public class Libs { public static class Libs {
public const string Efl = "@EFL_DL_MONO@"; public const string Efl = "@EFL_DL_MONO@";
public const string Ecore = "@ECORE_DL_MONO@"; public const string Ecore = "@ECORE_DL_MONO@";
public const string Eina = "@EINA_DL_MONO@"; public const string Eina = "@EINA_DL_MONO@";

View File

@ -11,7 +11,7 @@ namespace Eina
/// Manage the initialization and cleanup for eina. /// Manage the initialization and cleanup for eina.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class Config public static class Config
{ {
[DllImport(efl.Libs.Eina)] private static extern int eina_init(); [DllImport(efl.Libs.Eina)] private static extern int eina_init();
[DllImport(efl.Libs.Eina)] private static extern int eina_shutdown(); [DllImport(efl.Libs.Eina)] private static extern int eina_shutdown();

View File

@ -12,7 +12,7 @@ namespace Eina
/// <summary>EFL Logging facilities. /// <summary>EFL Logging facilities.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class Log public static class Log
{ {
[DllImport(efl.Libs.Eina)] private static extern void eina_log_print( [DllImport(efl.Libs.Eina)] private static extern void eina_log_print(
int domain, int domain,
@ -64,7 +64,7 @@ public class Log
/// <summary>The colors to be used by the logging system. /// <summary>The colors to be used by the logging system.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class Color public static class Color
{ {
/// <summary>Light red /// <summary>Light red
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>

View File

@ -163,7 +163,7 @@ public static class Argument
/// The type of a byte. /// The type of a byte.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class ByteType public static class ByteType
{ {
/// <summary> /// <summary>
/// The code of the byte. /// The code of the byte.
@ -181,7 +181,7 @@ public static class Argument
/// The type of a boolean /// The type of a boolean
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class BooleanType public static class BooleanType
{ {
/// <summary> /// <summary>
/// The code of the boolean. /// The code of the boolean.
@ -199,7 +199,7 @@ public static class Argument
/// The type of a Int16. /// The type of a Int16.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class Int16Type public static class Int16Type
{ {
/// <summary> /// <summary>
/// The code of the Int16. /// The code of the Int16.
@ -217,7 +217,7 @@ public static class Argument
/// The type of an unsigned Int16. /// The type of an unsigned Int16.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class UInt16Type public static class UInt16Type
{ {
/// <summary> /// <summary>
/// The code of the unsigned Int16. /// The code of the unsigned Int16.
@ -235,7 +235,7 @@ public static class Argument
/// The type of a Int32. /// The type of a Int32.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class Int32Type public static class Int32Type
{ {
/// <summary> /// <summary>
/// The code of the Int32. /// The code of the Int32.
@ -253,7 +253,7 @@ public static class Argument
/// The type of an unsigned Int32. /// The type of an unsigned Int32.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class UInt32Type public static class UInt32Type
{ {
/// <summary> /// <summary>
/// The code of the unsigned Int32. /// The code of the unsigned Int32.
@ -271,7 +271,7 @@ public static class Argument
/// The type of a Int64. /// The type of a Int64.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class Int64Type public static class Int64Type
{ {
/// <summary> /// <summary>
/// The code of the Int64. /// The code of the Int64.
@ -289,7 +289,7 @@ public static class Argument
/// The type of an unsigned Int64. /// The type of an unsigned Int64.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class UInt64Type public static class UInt64Type
{ {
/// <summary> /// <summary>
/// The code of the unsigned Int64. /// The code of the unsigned Int64.
@ -307,7 +307,7 @@ public static class Argument
/// The type of the double. /// The type of the double.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class DoubleType public static class DoubleType
{ {
/// <summary> /// <summary>
/// The code of the double. /// The code of the double.
@ -325,7 +325,7 @@ public static class Argument
/// The type of a string. /// The type of a string.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class StringType public static class StringType
{ {
/// <summary> /// <summary>
/// The code of the string. /// The code of the string.
@ -343,7 +343,7 @@ public static class Argument
/// The type of an object path. /// The type of an object path.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class ObjectPathType public static class ObjectPathType
{ {
/// <summary> /// <summary>
/// The code of the object path. /// The code of the object path.
@ -361,7 +361,7 @@ public static class Argument
/// The type of a signature. /// The type of a signature.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class SignatureType public static class SignatureType
{ {
/// <summary> /// <summary>
/// The code of the signature. /// The code of the signature.
@ -379,7 +379,7 @@ public static class Argument
/// The type of a array. /// The type of a array.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class ArrayType public static class ArrayType
{ {
/// <summary> /// <summary>
/// The code of the array. /// The code of the array.
@ -397,7 +397,7 @@ public static class Argument
/// The type of a struct. /// The type of a struct.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class StructType public static class StructType
{ {
/// <summary> /// <summary>
/// The code of the struct. /// The code of the struct.
@ -415,7 +415,7 @@ public static class Argument
/// The type of a variant. /// The type of a variant.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class VariantType public static class VariantType
{ {
/// <summary> /// <summary>
/// The code of the variant. /// The code of the variant.
@ -433,7 +433,7 @@ public static class Argument
/// The type of a dictionary. /// The type of a dictionary.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class DictEntryType public static class DictEntryType
{ {
/// <summary> /// <summary>
/// The code of the dictionary. /// The code of the dictionary.
@ -451,7 +451,7 @@ public static class Argument
/// The type of an unix file descriptor. /// The type of an unix file descriptor.
/// <para>Since EFL 1.23.</para> /// <para>Since EFL 1.23.</para>
/// </summary> /// </summary>
public class UnixFdType public static class UnixFdType
{ {
/// <summary> /// <summary>
/// The code of unix fd. /// The code of unix fd.

View File

@ -12,7 +12,7 @@ namespace Eo
///This class has a platform-dependent implementation on whether it ///This class has a platform-dependent implementation on whether it
///is compiled for Windows (using LoadLibrary/GetProcAddress) or Unix ///is compiled for Windows (using LoadLibrary/GetProcAddress) or Unix
///(dlopen/dlsym).</summary> ///(dlopen/dlsym).</summary>
public partial class FunctionInterop public static partial class FunctionInterop
{ {
///<summary>Loads a function pointer from the given module.</summary> ///<summary>Loads a function pointer from the given module.</summary>
///<param name="moduleName">The name of the module containing the function.</param> ///<param name="moduleName">The name of the module containing the function.</param>

View File

@ -7,7 +7,7 @@ namespace Efl
namespace Eo namespace Eo
{ {
public partial class FunctionInterop public static partial class FunctionInterop
{ {
[DllImport(efl.Libs.Libdl)] [DllImport(efl.Libs.Libdl)]
private static extern IntPtr dlsym(IntPtr handle, string symbol); private static extern IntPtr dlsym(IntPtr handle, string symbol);

View File

@ -7,7 +7,7 @@ namespace Efl
namespace Eo namespace Eo
{ {
public partial class FunctionInterop public static partial class FunctionInterop
{ {
[DllImport(efl.Libs.Libdl)] [DllImport(efl.Libs.Libdl)]
public static extern IntPtr GetProcAddress(IntPtr handle, string symbol); public static extern IntPtr GetProcAddress(IntPtr handle, string symbol);

View File

@ -17,7 +17,7 @@ namespace Efl
namespace Eo namespace Eo
{ {
public class Globals public static class Globals
{ {
/// <summary>Represents the type of the native Efl_Class.</summary> /// <summary>Represents the type of the native Efl_Class.</summary>
public enum EflClassType public enum EflClassType