From 0116f4b2d382847c0affec699b4bb8057a98d7cd Mon Sep 17 00:00:00 2001
From: Sylvain Berfini <Sylvain.Berfini@Belledonne-Communications.com>
Date: Thu, 22 Mar 2012 10:37:56 +0100
Subject: [PATCH] ms_set_cpu_count exported via JNI

---
 coreapi/linphonecore_jni.cc                     | 4 ++++
 java/common/org/linphone/core/LinphoneCore.java | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/coreapi/linphonecore_jni.cc b/coreapi/linphonecore_jni.cc
index 9abb9caa57..bc4f6a14e4 100644
--- a/coreapi/linphonecore_jni.cc
+++ b/coreapi/linphonecore_jni.cc
@@ -1705,3 +1705,7 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setVideoPolicy(JNIEnv *e
 	vpol.automatically_accept = autoAccept;
 	linphone_core_set_video_policy((LinphoneCore *)lc, &vpol);
 }
+
+extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setCpuCount(JNIEnv *env, jobject thiz, jint count) {
+	ms_set_cpu_count(count);
+}
diff --git a/java/common/org/linphone/core/LinphoneCore.java b/java/common/org/linphone/core/LinphoneCore.java
index 9b9ec8cf8d..88db6a590c 100644
--- a/java/common/org/linphone/core/LinphoneCore.java
+++ b/java/common/org/linphone/core/LinphoneCore.java
@@ -761,4 +761,6 @@ public interface LinphoneCore {
 	void setVideoPolicy(boolean autoInitiate, boolean autoAccept);
 	
 	void setUserAgent(String name, String version);
+	
+	void setCpuCount(int count);
 }
-- 
GitLab