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
cfaa4721
Commit
cfaa4721
authored
Nov 03, 2011
by
Guillaume Beraudo
Browse files
Expose setter for max calls. (0 while in GSM call).
parent
81a9a707
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletion
+9
-1
coreapi/linphonecore.c
coreapi/linphonecore.c
+3
-1
coreapi/linphonecore.h
coreapi/linphonecore.h
+2
-0
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+3
-0
java/common/org/linphone/core/LinphoneCore.java
java/common/org/linphone/core/LinphoneCore.java
+1
-0
No files found.
coreapi/linphonecore.c
View file @
cfaa4721
...
...
@@ -4311,7 +4311,9 @@ void linphone_core_stop_dtmf_stream(LinphoneCore* lc) {
int
linphone_core_get_max_calls
(
LinphoneCore
*
lc
)
{
return
lc
->
max_calls
;
}
void
linphone_core_set_max_calls
(
LinphoneCore
*
lc
,
int
max
)
{
lc
->
max_calls
=
max
;
}
typedef
struct
Hook
{
LinphoneCoreIterateHook
fun
;
...
...
coreapi/linphonecore.h
View file @
cfaa4721
...
...
@@ -1031,6 +1031,8 @@ int linphone_core_terminate_conference(LinphoneCore *lc);
int
linphone_core_get_conference_size
(
LinphoneCore
*
lc
);
int
linphone_core_get_max_calls
(
LinphoneCore
*
lc
);
void
linphone_core_set_max_calls
(
LinphoneCore
*
lc
,
int
max
);
bool_t
linphone_core_sound_resources_locked
(
LinphoneCore
*
lc
);
#ifdef __cplusplus
...
...
coreapi/linphonecore_jni.cc
View file @
cfaa4721
...
...
@@ -1523,3 +1523,6 @@ extern "C" void Java_org_linphone_LinphoneManager_hackSpeakerState(JNIEnv* env,
extern
"C"
jint
Java_org_linphone_core_LinphoneCoreImpl_getMaxCalls
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
pCore
)
{
return
(
jint
)
linphone_core_get_max_calls
((
LinphoneCore
*
)
pCore
);
}
extern
"C"
void
Java_org_linphone_core_LinphoneCoreImpl_setMaxCalls
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
pCore
,
jint
max
)
{
linphone_core_set_max_calls
((
LinphoneCore
*
)
pCore
,
(
int
)
max
);
}
java/common/org/linphone/core/LinphoneCore.java
View file @
cfaa4721
...
...
@@ -623,6 +623,7 @@ public interface LinphoneCore {
LinphoneCall
findCallFromUri
(
String
uri
);
int
getMaxCalls
();
void
setMaxCalls
(
int
max
);
boolean
isMyself
(
String
uri
);
/**
...
...
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