From 8f523677ea8be675f429e9cd64be523aaf6921dc Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 9 May 2017 12:15:21 +0200 Subject: [PATCH] Do not wrap CoreVTable related methods and classes --- include/linphone/core.h | 1 + wrappers/csharp/genwrapper.py | 2 +- wrappers/csharp/wrapper_impl.mustache | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/linphone/core.h b/include/linphone/core.h index a515333dc..0aa2ddfd2 100644 --- a/include/linphone/core.h +++ b/include/linphone/core.h @@ -213,6 +213,7 @@ typedef struct _LinphoneCoreVTable{ /** * Instantiate a vtable with all arguments set to NULL * @return newly allocated vtable + * @donotwrap */ LINPHONE_PUBLIC LinphoneCoreVTable *linphone_core_v_table_new(void); diff --git a/wrappers/csharp/genwrapper.py b/wrappers/csharp/genwrapper.py index cc1491c5e..c74f5ad65 100644 --- a/wrappers/csharp/genwrapper.py +++ b/wrappers/csharp/genwrapper.py @@ -575,7 +575,7 @@ def main(): project.check() parser = AbsApi.CParser(project) - parser.functionBl = ['linphone_vcard_get_belcard'] + parser.functionBl = ['linphone_vcard_get_belcard', 'linphone_core_get_current_vtable'] parser.classBl += 'LinphoneCoreVTable' parser.methodBl.remove('getCurrentCallbacks') parser.parse_all() diff --git a/wrappers/csharp/wrapper_impl.mustache b/wrappers/csharp/wrapper_impl.mustache index 1477937b0..7e188b8f8 100644 --- a/wrappers/csharp/wrapper_impl.mustache +++ b/wrappers/csharp/wrapper_impl.mustache @@ -54,7 +54,7 @@ namespace Linphone { #if ANDROID setAndroidLogHandler(); -#else +#elif __IOS__ linphone_iphone_enable_logs(); #endif } @@ -216,7 +216,7 @@ namespace Linphone } } - #if ANDROID +#if ANDROID /// /// Methods that are only found in Android version of Linphone libraries and related to JNI /// @@ -238,7 +238,7 @@ namespace Linphone setMediastreamerAndroidContext(jnienv, context); } } - #endif +#endif #endregion #region Enums