From d555bf4695fe2d0f8369708895cf0b4c4bf5644f Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Mon, 5 Mar 2018 11:08:39 +0100 Subject: [PATCH] Fixing wrapper xamarin --- wrappers/csharp/genwrapper.py | 8 +------- wrappers/csharp/wrapper_impl.mustache | 19 +++---------------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/wrappers/csharp/genwrapper.py b/wrappers/csharp/genwrapper.py index cfe687805..9cfc6be44 100644 --- a/wrappers/csharp/genwrapper.py +++ b/wrappers/csharp/genwrapper.py @@ -485,13 +485,7 @@ def main(): parser = AbsApi.CParser(project) parser.functionBl = \ ['linphone_vcard_get_belcard',\ - 'linphone_core_get_current_vtable',\ - 'linphone_call_set_native_video_window_id',\ - 'linphone_call_get_native_video_window_id',\ - 'linphone_core_get_native_preview_window_id',\ - 'linphone_core_set_native_preview_window_id',\ - 'linphone_core_set_native_video_window_id',\ - 'linphone_core_get_native_video_window_id'] + '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 8837b4475..f2d1b33de 100644 --- a/wrappers/csharp/wrapper_impl.mustache +++ b/wrappers/csharp/wrapper_impl.mustache @@ -377,13 +377,9 @@ namespace Linphone } {{/isLinphoneFactory}} {{#isLinphoneCall}} - [DllImport(LinphoneWrapper.LIB_NAME)] - static extern IntPtr linphone_call_get_native_video_window_id(IntPtr thiz); - [DllImport(LinphoneWrapper.LIB_NAME)] - static extern void linphone_call_set_native_video_window_id(IntPtr thiz, IntPtr id); /// Get the native window handle of the video window, casted as an unsigned long. - public string NativeVideoWindowId + public string NativeVideoWindowIdString { get { @@ -396,13 +392,9 @@ namespace Linphone } {{/isLinphoneCall}} {{#isLinphoneCore}} - [DllImport(LinphoneWrapper.LIB_NAME)] - static extern IntPtr linphone_core_get_native_video_window_id(IntPtr thiz); - [DllImport(LinphoneWrapper.LIB_NAME)] - static extern void linphone_core_set_native_video_window_id(IntPtr thiz, IntPtr id); /// Get the native window handle of the video window. - public string NativeVideoWindowId + public string NativeVideoWindowIdString { get { @@ -414,13 +406,8 @@ namespace Linphone } } - [DllImport(LinphoneWrapper.LIB_NAME)] - static extern IntPtr linphone_core_get_native_preview_window_id(IntPtr thiz); - [DllImport(LinphoneWrapper.LIB_NAME)] - static extern void linphone_core_set_native_preview_window_id(IntPtr thiz, IntPtr id); - /// Get the native window handle of the video preview window. - public string NativePreviewWindowId + public string NativePreviewWindowIdString { get {