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
b8925209
Commit
b8925209
authored
Jan 05, 2018
by
Sylvain Berfini
🎩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added get_core methods on NatPolicy and Player
parent
918b217f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
coreapi/nat_policy.c
coreapi/nat_policy.c
+4
-0
coreapi/player.c
coreapi/player.c
+3
-0
include/linphone/nat_policy.h
include/linphone/nat_policy.h
+6
-0
include/linphone/player.h
include/linphone/player.h
+5
-0
No files found.
coreapi/nat_policy.c
View file @
b8925209
...
...
@@ -316,3 +316,7 @@ LinphoneNatPolicy * linphone_core_create_nat_policy_from_config(LinphoneCore *lc
}
return
policy
;
}
LinphoneCore
*
linphone_nat_policy_get_core
(
const
LinphoneNatPolicy
*
policy
)
{
return
policy
->
lc
;
}
coreapi/player.c
View file @
b8925209
...
...
@@ -204,6 +204,9 @@ LinphonePlayer *linphone_call_build_player(LinphoneCall *call){
return
obj
;
}
LinphoneCore
*
linphone_player_get_core
(
const
LinphonePlayer
*
player
){
return
linphone_call_get_core
((
LinphoneCall
*
)
player
->
impl
);
}
BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES
(
LinphonePlayerCbs
);
...
...
include/linphone/nat_policy.h
View file @
b8925209
...
...
@@ -176,6 +176,12 @@ LINPHONE_PUBLIC void linphone_nat_policy_resolve_stun_server(LinphoneNatPolicy *
*/
LINPHONE_PUBLIC
const
struct
addrinfo
*
linphone_nat_policy_get_stun_server_addrinfo
(
LinphoneNatPolicy
*
policy
);
/**
* Returns the LinphoneCore object managing this nat policy, if any.
* @param[in] fr LinphoneNatPolicy object
*/
LINPHONE_PUBLIC
LinphoneCore
*
linphone_nat_policy_get_core
(
const
LinphoneNatPolicy
*
policy
);
/**
* @}
*/
...
...
include/linphone/player.h
View file @
b8925209
...
...
@@ -125,6 +125,11 @@ LINPHONE_PUBLIC int linphone_player_get_current_position(LinphonePlayer *obj);
*/
LINPHONE_PUBLIC
void
linphone_player_close
(
LinphonePlayer
*
obj
);
/**
* Returns the LinphoneCore object managing this player's call, if any.
* @param[in] fr LinphonePlayer object
*/
LINPHONE_PUBLIC
LinphoneCore
*
linphone_player_get_core
(
const
LinphonePlayer
*
player
);
/**
* Acquire a reference to the LinphonePlayerCbs object.
...
...
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