forked from enlightenment/efl
csharp: More updated docs to 1.23.
Summary: eina_config and eina_common updated to 1.23. Reviewers: lauromoura, felipealmeida, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8293 Differential Revision: https://phab.enlightenment.org/D10263
This commit is contained in:
parent
f53583a5c9
commit
7b4a58313b
|
@ -41,7 +41,7 @@ internal static class NativeCustomExportFunctions
|
||||||
efl_mono_native_efl_unref_addr_get();
|
efl_mono_native_efl_unref_addr_get();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Wrapper around native memory DllImport'd functions</summary>
|
/// <summary>Wrapper around native memory DllImport'd functions (SINCE EFL 1.23).</summary>
|
||||||
public static class MemoryNative
|
public static class MemoryNative
|
||||||
{
|
{
|
||||||
public static void Free(IntPtr ptr)
|
public static void Free(IntPtr ptr)
|
||||||
|
@ -126,6 +126,9 @@ public static class MemoryNative
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Conversor of raw pointer to a type and type to raw pointer (SINCE EFL 1.23).
|
||||||
|
/// </summary>
|
||||||
public static class PrimitiveConversion
|
public static class PrimitiveConversion
|
||||||
{
|
{
|
||||||
public static T PointerToManaged<T>(IntPtr nat)
|
public static T PointerToManaged<T>(IntPtr nat)
|
||||||
|
@ -148,6 +151,9 @@ public static class PrimitiveConversion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Conversor of string to native string and native string to string.. (SINCE EFL 1.23).
|
||||||
|
/// </summary>
|
||||||
public static class StringConversion
|
public static class StringConversion
|
||||||
{
|
{
|
||||||
public static IntPtr ManagedStringToNativeUtf8Alloc(string managedString)
|
public static IntPtr ManagedStringToNativeUtf8Alloc(string managedString)
|
||||||
|
|
|
@ -6,6 +6,9 @@ using System.Runtime.InteropServices;
|
||||||
namespace Eina
|
namespace Eina
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Manage the initialization and cleanup for eina (SINCE EFL 1.23).
|
||||||
|
/// </summary>
|
||||||
public class Config
|
public class Config
|
||||||
{
|
{
|
||||||
[DllImport(efl.Libs.Eina)] private static extern int eina_init();
|
[DllImport(efl.Libs.Eina)] private static extern int eina_init();
|
||||||
|
@ -28,7 +31,7 @@ public class Config
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Wrapper class for pointers that need some cleanup afterwards
|
/// Wrapper class for pointers that need some cleanup afterwards
|
||||||
/// like strings.
|
/// like strings (SINCE EFL 1.23).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DisposableIntPtr : IDisposable
|
public class DisposableIntPtr : IDisposable
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue