From a24769b3fcbdda0501254322d7dc6f78eadbf746 Mon Sep 17 00:00:00 2001 From: Bruno da Silva Belo Date: Wed, 2 Oct 2019 12:01:25 +0200 Subject: [PATCH] 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 --- src/bindings/mono/eina_mono/eina_common.cs | 8 +++++++- src/bindings/mono/eina_mono/eina_config.cs | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/bindings/mono/eina_mono/eina_common.cs b/src/bindings/mono/eina_mono/eina_common.cs index 7d97a91..d552f75 100644 --- a/src/bindings/mono/eina_mono/eina_common.cs +++ b/src/bindings/mono/eina_mono/eina_common.cs @@ -41,7 +41,7 @@ internal static class NativeCustomExportFunctions efl_mono_native_efl_unref_addr_get(); } -/// Wrapper around native memory DllImport'd functions +/// Wrapper around native memory DllImport'd functions (SINCE EFL 1.23). public static class MemoryNative { public static void Free(IntPtr ptr) @@ -126,6 +126,9 @@ public static class MemoryNative } } +/// +/// Conversor of raw pointer to a type and type to raw pointer (SINCE EFL 1.23). +/// public static class PrimitiveConversion { public static T PointerToManaged(IntPtr nat) @@ -148,6 +151,9 @@ public static class PrimitiveConversion } } +/// +/// Conversor of string to native string and native string to string.. (SINCE EFL 1.23). +/// public static class StringConversion { public static IntPtr ManagedStringToNativeUtf8Alloc(string managedString) diff --git a/src/bindings/mono/eina_mono/eina_config.cs b/src/bindings/mono/eina_mono/eina_config.cs index 9f3028f..3b35b21 100644 --- a/src/bindings/mono/eina_mono/eina_config.cs +++ b/src/bindings/mono/eina_mono/eina_config.cs @@ -6,6 +6,9 @@ using System.Runtime.InteropServices; namespace Eina { +/// +/// Manage the initialization and cleanup for eina (SINCE EFL 1.23). +/// public class Config { [DllImport(efl.Libs.Eina)] private static extern int eina_init(); @@ -28,7 +31,7 @@ public class Config /// /// Wrapper class for pointers that need some cleanup afterwards -/// like strings. +/// like strings (SINCE EFL 1.23). /// public class DisposableIntPtr : IDisposable { -- 2.7.4