#pragma warning disable CS1591
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.ComponentModel;
namespace Efl {
/// This type is a alias for struct tm. It is intended to be a standard way to reference it in .eo files.
/// (Since EFL 1.18)
[StructLayout(LayoutKind.Sequential)]
[Efl.Eo.BindingEntity]
public struct Time
{
/// Seconds. [0-60] (1 leap second)
public int Tm_sec;
/// Minutes. [0-59]
public int Tm_min;
/// Hours. [0-23]
public int Tm_hour;
/// Day. [1-31]
public int Tm_mday;
/// Month. [0-11]
public int Tm_mon;
/// Year - 1900.
public int Tm_year;
/// Day of week. [0-6]
public int Tm_wday;
/// Days in year.[0-365]
public int Tm_yday;
/// DST. [-1/0/1]
public int Tm_isdst;
/// Constructor for Time.
/// Seconds. [0-60] (1 leap second);
/// Minutes. [0-59];
/// Hours. [0-23];
/// Day. [1-31];
/// Month. [0-11];
/// Year - 1900.;
/// Day of week. [0-6];
/// Days in year.[0-365];
/// DST. [-1/0/1];
public Time(
int Tm_sec = default(int),
int Tm_min = default(int),
int Tm_hour = default(int),
int Tm_mday = default(int),
int Tm_mon = default(int),
int Tm_year = default(int),
int Tm_wday = default(int),
int Tm_yday = default(int),
int Tm_isdst = default(int) )
{
this.Tm_sec = Tm_sec;
this.Tm_min = Tm_min;
this.Tm_hour = Tm_hour;
this.Tm_mday = Tm_mday;
this.Tm_mon = Tm_mon;
this.Tm_year = Tm_year;
this.Tm_wday = Tm_wday;
this.Tm_yday = Tm_yday;
this.Tm_isdst = Tm_isdst;
}
/// Implicit conversion to the managed representation from a native pointer.
/// Native pointer to be converted.
public static implicit operator Time(IntPtr ptr)
{
var tmp = (Time.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Time.NativeStruct));
return tmp;
}
#pragma warning disable CS1591
/// Internal wrapper for struct Time.
[StructLayout(LayoutKind.Sequential)]
public struct NativeStruct
{
public int Tm_sec;
public int Tm_min;
public int Tm_hour;
public int Tm_mday;
public int Tm_mon;
public int Tm_year;
public int Tm_wday;
public int Tm_yday;
public int Tm_isdst;
/// Implicit conversion to the internal/marshalling representation.
public static implicit operator Time.NativeStruct(Time _external_struct)
{
var _internal_struct = new Time.NativeStruct();
_internal_struct.Tm_sec = _external_struct.Tm_sec;
_internal_struct.Tm_min = _external_struct.Tm_min;
_internal_struct.Tm_hour = _external_struct.Tm_hour;
_internal_struct.Tm_mday = _external_struct.Tm_mday;
_internal_struct.Tm_mon = _external_struct.Tm_mon;
_internal_struct.Tm_year = _external_struct.Tm_year;
_internal_struct.Tm_wday = _external_struct.Tm_wday;
_internal_struct.Tm_yday = _external_struct.Tm_yday;
_internal_struct.Tm_isdst = _external_struct.Tm_isdst;
return _internal_struct;
}
/// Implicit conversion to the managed representation.
public static implicit operator Time(Time.NativeStruct _internal_struct)
{
var _external_struct = new Time();
_external_struct.Tm_sec = _internal_struct.Tm_sec;
_external_struct.Tm_min = _internal_struct.Tm_min;
_external_struct.Tm_hour = _internal_struct.Tm_hour;
_external_struct.Tm_mday = _internal_struct.Tm_mday;
_external_struct.Tm_mon = _internal_struct.Tm_mon;
_external_struct.Tm_year = _internal_struct.Tm_year;
_external_struct.Tm_wday = _internal_struct.Tm_wday;
_external_struct.Tm_yday = _internal_struct.Tm_yday;
_external_struct.Tm_isdst = _internal_struct.Tm_isdst;
return _external_struct;
}
}
#pragma warning restore CS1591
}
}
namespace Efl {
/// This type describes the version of EFL with an optional variant.
/// This may be used to query the current running version of EFL. Or it can be passed by applications at startup time to inform EFL of the version a certain application was built for.
/// (Since EFL 1.18)
[StructLayout(LayoutKind.Sequential)]
[Efl.Eo.BindingEntity]
public struct Version
{
/// Major component of the version (>= 1).
public int Major;
/// Minor component of the version (>= 0).
public int Minor;
/// Micro component of the version (>= 0).
public int Micro;
/// Revision component of the version (>= 0).
public int Revision;
/// Special version string for this build of EFL, null for vanilla (upstream) EFL. Contains EFL_VERSION_FLAVOR.
public System.String Flavor;
/// Contains EFL_BUILD_ID.
public System.String Build_id;
/// Constructor for Version.
/// Major component of the version (>= 1).;
/// Minor component of the version (>= 0).;
/// Micro component of the version (>= 0).;
/// Revision component of the version (>= 0).;
/// Special version string for this build of EFL, null for vanilla (upstream) EFL. Contains EFL_VERSION_FLAVOR.;
/// Contains EFL_BUILD_ID.;
public Version(
int Major = default(int),
int Minor = default(int),
int Micro = default(int),
int Revision = default(int),
System.String Flavor = default(System.String),
System.String Build_id = default(System.String) )
{
this.Major = Major;
this.Minor = Minor;
this.Micro = Micro;
this.Revision = Revision;
this.Flavor = Flavor;
this.Build_id = Build_id;
}
/// Implicit conversion to the managed representation from a native pointer.
/// Native pointer to be converted.
public static implicit operator Version(IntPtr ptr)
{
var tmp = (Version.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Version.NativeStruct));
return tmp;
}
#pragma warning disable CS1591
/// Internal wrapper for struct Version.
[StructLayout(LayoutKind.Sequential)]
public struct NativeStruct
{
public int Major;
public int Minor;
public int Micro;
public int Revision;
/// Internal wrapper for field Flavor
public System.IntPtr Flavor;
/// Internal wrapper for field Build_id
public System.IntPtr Build_id;
/// Implicit conversion to the internal/marshalling representation.
public static implicit operator Version.NativeStruct(Version _external_struct)
{
var _internal_struct = new Version.NativeStruct();
_internal_struct.Major = _external_struct.Major;
_internal_struct.Minor = _external_struct.Minor;
_internal_struct.Micro = _external_struct.Micro;
_internal_struct.Revision = _external_struct.Revision;
_internal_struct.Flavor = Eina.MemoryNative.StrDup(_external_struct.Flavor);
_internal_struct.Build_id = Eina.MemoryNative.StrDup(_external_struct.Build_id);
return _internal_struct;
}
/// Implicit conversion to the managed representation.
public static implicit operator Version(Version.NativeStruct _internal_struct)
{
var _external_struct = new Version();
_external_struct.Major = _internal_struct.Major;
_external_struct.Minor = _internal_struct.Minor;
_external_struct.Micro = _internal_struct.Micro;
_external_struct.Revision = _internal_struct.Revision;
_external_struct.Flavor = Eina.StringConversion.NativeUtf8ToManagedString(_internal_struct.Flavor);
_external_struct.Build_id = Eina.StringConversion.NativeUtf8ToManagedString(_internal_struct.Build_id);
return _external_struct;
}
}
#pragma warning restore CS1591
}
}