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
eb27f4c3
Commit
eb27f4c3
authored
Dec 21, 2012
by
Ghislain MARY
Browse files
Add JNI to set static picture.
parent
722a616f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+6
-0
java/common/org/linphone/core/LinphoneCore.java
java/common/org/linphone/core/LinphoneCore.java
+3
-1
java/impl/org/linphone/core/LinphoneCoreImpl.java
java/impl/org/linphone/core/LinphoneCoreImpl.java
+4
-0
No files found.
coreapi/linphonecore_jni.cc
View file @
eb27f4c3
...
...
@@ -2165,6 +2165,12 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setVideoPolicy(JNIEnv *e
linphone_core_set_video_policy
((
LinphoneCore
*
)
lc
,
&
vpol
);
}
extern
"C"
void
Java_org_linphone_core_LinphoneCoreImpl_setStaticPicture
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
lc
,
jstring
path
)
{
const
char
*
cpath
=
env
->
GetStringUTFChars
(
path
,
NULL
);
linphone_core_set_static_picture
((
LinphoneCore
*
)
lc
,
cpath
);
env
->
ReleaseStringUTFChars
(
path
,
cpath
);
}
extern
"C"
void
Java_org_linphone_core_LinphoneCoreImpl_setCpuCountNative
(
JNIEnv
*
env
,
jobject
thiz
,
jint
count
)
{
ms_set_cpu_count
(
count
);
}
...
...
java/common/org/linphone/core/LinphoneCore.java
View file @
eb27f4c3
...
...
@@ -786,7 +786,9 @@ public interface LinphoneCore {
LinphoneProxyConfig
[]
getProxyConfigList
();
void
setVideoPolicy
(
boolean
autoInitiate
,
boolean
autoAccept
);
void
setStaticPicture
(
String
path
);
void
setUserAgent
(
String
name
,
String
version
);
void
setCpuCount
(
int
count
);
...
...
java/impl/org/linphone/core/LinphoneCoreImpl.java
View file @
eb27f4c3
...
...
@@ -754,6 +754,10 @@ class LinphoneCoreImpl implements LinphoneCore {
public
synchronized
void
setVideoPolicy
(
boolean
autoInitiate
,
boolean
autoAccept
)
{
setVideoPolicy
(
nativePtr
,
autoInitiate
,
autoAccept
);
}
private
native
void
setStaticPicture
(
long
nativePtr
,
String
path
);
public
void
setStaticPicture
(
String
path
)
{
setStaticPicture
(
nativePtr
,
path
);
}
private
native
void
setUserAgent
(
long
nativePtr
,
String
name
,
String
version
);
@Override
public
void
setUserAgent
(
String
name
,
String
version
)
{
...
...
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