Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
cac21162
Commit
cac21162
authored
10 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
jni: use std::function for daemon to client signals
parent
fc91a465
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compile.sh
+1
-1
1 addition, 1 deletion
compile.sh
sflphone-android/jni/jni_interface.i
+35
-31
35 additions, 31 deletions
sflphone-android/jni/jni_interface.i
with
36 additions
and
32 deletions
compile.sh
+
1
−
1
View file @
cac21162
...
...
@@ -96,7 +96,7 @@ ANDROID_PATH="`pwd`"
if
[
!
-z
"
$FETCH
"
]
then
# 1/ libsflphone
TESTED_HASH
=
855de64eca93b7a153c8c5c01f1dbcef6b64ecdc
TESTED_HASH
=
f9b3354a49a29f10c466a4d856216c5d82525666
if
[
!
-d
"sflphone"
]
;
then
echo
"Ring source not found, cloning"
git clone git@gitlab.savoirfairelinux.com:sfl-ports/sflphone.git sflphone
...
...
This diff is collapsed.
Click to expand it.
sflphone-android/jni/jni_interface.i
+
35
−
31
View file @
cac21162
...
...
@@ -68,6 +68,7 @@ namespace std {
%
header
%
{
#include <logger.h>
#include <functional>
%}
...
...
@@ -89,43 +90,46 @@ namespace std {
*/
void
init
(
ConfigurationCallback
*
conf_cb
,
Callback
*
call_cb
)
{
using
namespace
std
::
placeholders
;
using
std
::
bind
;
// Call event handlers
sflph_call_ev_handlers
callEvHandlers
=
{
Callback::callOnStateChange,
Callback::callOnTransferFail,
Callback::callOnTransferSuccess,
Callback::callOnRecordPlaybackStopped,
Callback::callOnVoiceMailNotify,
Callback::callOnIncomingMessage,
Callback::callOnIncomingCall,
Callback::callOnRecordPlaybackFilepath,
Callback::callOnConferenceCreated,
Callback::callOnConferenceChanged,
Callback::callOnUpdatePlaybackScale,
Callback::callOnConferenceRemove,
Callback::callOnNewCall,
Callback::callOnSipCallStateChange,
Callback::callOnRecordStateChange,
Callback::callOnSecureSdesOn,
Callback::callOnSecureSdesOff,
Callback::callOnSecureZrtpOn,
Callback::callOnSecureZrtpOff,
Callback::callOnShowSas,
Callback::callOnZrtpNotSuppOther,
Callback::callOnZrtpNegotiationFail,
Callback::callOnRtcpReceiveReport,
bind(&
Callback::callOnStateChange,
call_cb, _1, _2),
bind(&
Callback::callOnTransferFail,
call_cb),
bind(&
Callback::callOnTransferSuccess,
call_cb),
bind(&
Callback::callOnRecordPlaybackStopped,
call_cb, _1),
bind(&
Callback::callOnVoiceMailNotify,
call_cb, _1, _2),
bind(&
Callback::callOnIncomingMessage,
call_cb, _1, _2, _3),
bind(&
Callback::callOnIncomingCall,
call_cb, _1, _2, _3),
bind(&
Callback::callOnRecordPlaybackFilepath,
call_cb, _1, _2),
bind(&
Callback::callOnConferenceCreated,
call_cb, _1),
bind(&
Callback::callOnConferenceChanged,
call_cb, _1, _2),
bind(&
Callback::callOnUpdatePlaybackScale,
call_cb, _1, _2, _3),
bind(&
Callback::callOnConferenceRemove,
call_cb, _1),
bind(&
Callback::callOnNewCall,
call_cb, _1, _2, _3),
bind(&
Callback::callOnSipCallStateChange,
call_cb, _1, _2, _3),
bind(&
Callback::callOnRecordStateChange,
call_cb, _1, _2),
bind(&
Callback::callOnSecureSdesOn,
call_cb, _1),
bind(&
Callback::callOnSecureSdesOff,
call_cb, _1),
bind(&
Callback::callOnSecureZrtpOn,
call_cb, _1, _2),
bind(&
Callback::callOnSecureZrtpOff,
call_cb, _1),
bind(&
Callback::callOnShowSas,
call_cb, _1, _2, _3),
bind(&
Callback::callOnZrtpNotSuppOther,
call_cb, _1),
bind(&
Callback::callOnZrtpNegotiationFail,
call_cb, _1, _2, _3),
bind(&
Callback::callOnRtcpReceiveReport,
call_cb, _1, _2)
}
;
// Configuration event handlers
sflph_config_ev_handlers
configEvHandlers
=
{
ConfigurationCallback::configOnVolumeChange,
ConfigurationCallback::configOnAccountsChange,
ConfigurationCallback::configOnHistoryChange,
ConfigurationCallback::configOnStunStatusFail,
ConfigurationCallback::configOnRegistrationStateChange,
ConfigurationCallback::configOnSipRegistrationStateChange,
ConfigurationCallback::configOnError,
ConfigurationCallback::configGetHardwareAudioFormat,
bind(&ConfigurationCallback::configOnVolumeChange, conf_cb, _1, _2),
bind(&ConfigurationCallback::configOnAccountsChange, conf_cb),
bind(&ConfigurationCallback::configOnHistoryChange, conf_cb),
bind(&ConfigurationCallback::configOnStunStatusFail, conf_cb, _1),
bind(&ConfigurationCallback::configOnRegistrationStateChange, conf_cb, _1, _2),
bind(&ConfigurationCallback::configOnSipRegistrationStateChange, conf_cb, _1, _2, _3),
bind(&ConfigurationCallback::configOnError, conf_cb, _1)
}
;
// All event handlers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment