Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
0138897e
Commit
0138897e
authored
Nov 14, 2013
by
Sylvain Berfini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix JNI method LpConfig_GetString
parent
866dc475
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+7
-7
No files found.
coreapi/linphonecore_jni.cc
View file @
0138897e
...
...
@@ -3254,20 +3254,20 @@ extern "C" jstring Java_org_linphone_core_LpConfigImpl_getString(JNIEnv *env, jo
jstring
section
,
jstring
key
,
jstring
defaultValue
)
{
const
char
*
csection
=
env
->
GetStringUTFChars
(
section
,
NULL
);
const
char
*
ckey
=
env
->
GetStringUTFChars
(
key
,
NULL
);
const
char
*
cvalue
;
if
(
defaultValue
==
NULL
)
{
cvalue
=
NULL
;
}
else
{
cvalue
=
env
->
GetStringUTFChars
(
defaultValue
,
NULL
);
}
const
char
*
cvalue
=
defaultValue
?
env
->
GetStringUTFChars
(
defaultValue
,
NULL
)
:
NULL
;
const
char
*
returnValue
=
lp_config_get_string
((
LpConfig
*
)
lpc
,
csection
,
ckey
,
cvalue
);
jstring
jreturnValue
=
NULL
;
if
(
returnValue
)
jreturnValue
=
env
->
NewStringUTF
(
returnValue
);
env
->
ReleaseStringUTFChars
(
section
,
csection
);
env
->
ReleaseStringUTFChars
(
key
,
ckey
);
if
(
cvalue
)
env
->
ReleaseStringUTFChars
(
defaultValue
,
cvalue
);
return
returnValue
?
env
->
NewStringUTF
(
returnValue
)
:
NULL
;
return
jreturnValue
;
}
extern
"C"
void
Java_org_linphone_core_LpConfigImpl_setIntRange
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
lpc
,
jstring
section
,
jstring
key
,
jint
min
,
jint
max
)
{
...
...
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