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>
/// Define the name of the libraries to be passed to DllImport statements.
/// </summary>
public class Libs {
public static class Libs {
public const string Efl = "@EFL_DL_MONO@";
public const string Ecore = "@ECORE_DL_MONO@";
public const string Eina = "@EINA_DL_MONO@";

View File

@ -11,7 +11,7 @@ namespace Eina
/// Manage the initialization and cleanup for eina.
/// <para>Since EFL 1.23.</para>
/// </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_shutdown();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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