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
aca36b38
Commit
aca36b38
authored
Jul 31, 2018
by
Sylvain Berfini
🐮
Browse files
Fixed missing methods in generated Java wrapper used in C# wrapper
parent
cfd50a8c
Pipeline
#208
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
wrappers/java/jni.mustache
wrappers/java/jni.mustache
+20
-0
No files found.
wrappers/java/jni.mustache
View file @
aca36b38
...
...
@@ -165,6 +165,26 @@ static jstring get_jstring_from_char(JNIEnv *env, const char* cString) {
return javaString;
}
#ifdef __ANDROID__
int dumbMethodForAllowingUsageOfCpuFeaturesFromStaticLibMediastream() {
return (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM
&&
(android_getCpuFeatures()
&
ANDROID_CPU_ARM_FEATURE_NEON) != 0);
}
int dumbMethodForAllowingUsageOfMsAudioDiffFromStaticLibMediastream() {
return ms_audio_diff(NULL, NULL, NULL, 0, NULL, NULL);
}
extern "C" void setAndroidLogHandler() {
linphone_core_enable_logs_with_cb(linphone_android_ortp_log_handler);
}
extern "C" void setMediastreamerAndroidContext(JNIEnv *env, void *context) {
jclass ms_class = env->FindClass("org/linphone/mediastream/MediastreamerAndroidContext");
jmethodID set_context = env->GetStaticMethodID(ms_class, "setContext", "(Ljava/lang/Object;)V");
env->CallStaticVoidMethod(ms_class, set_context, (jobject)context);
}
#endif
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
class LinphoneJavaBindings {
...
...
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