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
4d454fdf
Commit
4d454fdf
authored
Dec 24, 2015
by
Sylvain Berfini
🐮
Browse files
Fix importFriends JNI method
parent
aa2a82ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+2
-1
No files found.
coreapi/linphonecore_jni.cc
View file @
4d454fdf
...
@@ -1947,8 +1947,9 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_addFriend(JNIEnv* env
...
@@ -1947,8 +1947,9 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_addFriend(JNIEnv* env
extern
"C"
jint
Java_org_linphone_core_LinphoneCoreImpl_importFriendsFromVCardFile
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
lc
,
jstring
jpath
)
{
extern
"C"
jint
Java_org_linphone_core_LinphoneCoreImpl_importFriendsFromVCardFile
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
lc
,
jstring
jpath
)
{
const
char
*
path
=
env
->
GetStringUTFChars
(
jpath
,
NULL
);
const
char
*
path
=
env
->
GetStringUTFChars
(
jpath
,
NULL
);
return
linphone_core_import_friends_from_vcard4_file
((
LinphoneCore
*
)
lc
,
path
);
int
count
=
linphone_core_import_friends_from_vcard4_file
((
LinphoneCore
*
)
lc
,
path
);
env
->
ReleaseStringUTFChars
(
jpath
,
path
);
env
->
ReleaseStringUTFChars
(
jpath
,
path
);
return
count
;
}
}
extern
"C"
void
Java_org_linphone_core_LinphoneCoreImpl_exportFriendsToVCardFile
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
lc
,
jstring
jpath
)
{
extern
"C"
void
Java_org_linphone_core_LinphoneCoreImpl_exportFriendsToVCardFile
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
lc
,
jstring
jpath
)
{
...
...
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