Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
e491b195
Commit
e491b195
authored
May 09, 2017
by
Sylvain Berfini
🐮
Browse files
Moved setNativeLogHandler method to LinphoneWrapper.cs in C# wrapper
parent
7b00ab9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
wrappers/csharp/wrapper_impl.mustache
View file @
e491b195
...
...
@@ -26,7 +26,7 @@ using ObjCRuntime;
namespace Linphone
{
#region Wrapper specifics
#region Wrapper specifics
///
<summary>
/// Only contains the LIB_NAME value that represents the library in which all DllImport are made
///
</summary>
...
...
@@ -37,6 +37,27 @@ namespace Linphone
#else
public const string LIB_NAME = "linphone"; // With this, it automatically finds liblinphone.so
#endif
#if ANDROID
[DllImport(LinphoneWrapper.LIB_NAME)]
static extern void setAndroidLogHandler();
#endif
#if __IOS__
[DllImport(LinphoneWrapper.LIB_NAME)]
static extern void linphone_iphone_enable_logs();
#endif
///
<summary>
/// Registers the native log handler in Linphone.
///
</summary>
public static void setNativeLogHandler()
{
#if ANDROID
setAndroidLogHandler();
#else
linphone_iphone_enable_logs();
#endif
}
}
///
<summary>
...
...
@@ -204,20 +225,9 @@ namespace Linphone
[DllImport(LinphoneWrapper.LIB_NAME)]
static extern void ms_set_jvm_from_env(IntPtr jnienv);
[DllImport(LinphoneWrapper.LIB_NAME)]
static extern void setAndroidLogHandler();
[DllImport(LinphoneWrapper.LIB_NAME)]
static extern void setMediastreamerAndroidContext(IntPtr jnienv, IntPtr context);
///
<summary>
/// Registers the Android log handler (adb logcat) in Linphone.
///
</summary>
public static void setNativeLogHandler()
{
setAndroidLogHandler();
}
///
<summary>
/// Sets the JVM and JNI pointers in Linphone, required to be able to make JAVA upcalls.
/// Calling this method is mandatory and must be done as soon as possible !
...
...
@@ -229,9 +239,9 @@ namespace Linphone
}
}
#endif
#endregion
#endregion
#region Enums
#region Enums
{{#
enums
}}
{{#
enum
}}
{{#
doc
}}
...
...
@@ -253,9 +263,9 @@ namespace Linphone
{{/
enum
}}
{{/
enums
}}
#endregion
#endregion
#region Listeners
#region Listeners
{{#
interfaces
}}
{{#
interface
}}
[StructLayout(LayoutKind.Sequential)]
...
...
@@ -303,9 +313,9 @@ namespace Linphone
{{/
interface
}}
{{/
interfaces
}}
#endregion
#endregion
#region Classes
#region Classes
{{#
classes
}}
{{#
_class
}}
{{#
doc
}}
...
...
@@ -446,5 +456,5 @@ namespace Linphone
}
{{/
_class
}}
{{/
classes
}}
#endregion
#endregion
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment