Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
4cb8038c
Commit
4cb8038c
authored
Oct 22, 2018
by
Ronan
Committed by
Ronan
Oct 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(core): add a linphone_core_create_primary_contact_parsed function to avoid leak with wrappers
parent
61192363
Pipeline
#457
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
linphonecore.c
coreapi/linphonecore.c
+4
-0
core.h
include/linphone/core.h
+10
-1
No files found.
coreapi/linphonecore.c
View file @
4cb8038c
...
@@ -2672,6 +2672,10 @@ LinphoneAddress *linphone_core_get_primary_contact_parsed(LinphoneCore *lc){
...
@@ -2672,6 +2672,10 @@ LinphoneAddress *linphone_core_get_primary_contact_parsed(LinphoneCore *lc){
return
linphone_address_new
(
linphone_core_get_primary_contact
(
lc
));
return
linphone_address_new
(
linphone_core_get_primary_contact
(
lc
));
}
}
LinphoneAddress
*
linphone_core_create_primary_contact_parsed
(
LinphoneCore
*
lc
)
{
return
linphone_address_new
(
linphone_core_get_primary_contact
(
lc
));
}
LinphoneStatus
linphone_core_set_audio_codecs
(
LinphoneCore
*
lc
,
bctbx_list_t
*
codecs
){
LinphoneStatus
linphone_core_set_audio_codecs
(
LinphoneCore
*
lc
,
bctbx_list_t
*
codecs
){
if
(
lc
->
codecs_conf
.
audio_codecs
!=
NULL
)
bctbx_list_free
(
lc
->
codecs_conf
.
audio_codecs
);
if
(
lc
->
codecs_conf
.
audio_codecs
!=
NULL
)
bctbx_list_free
(
lc
->
codecs_conf
.
audio_codecs
);
lc
->
codecs_conf
.
audio_codecs
=
codecs
;
lc
->
codecs_conf
.
audio_codecs
=
codecs
;
...
...
include/linphone/core.h
View file @
4cb8038c
...
@@ -1557,12 +1557,21 @@ LINPHONE_PUBLIC void linphone_core_enable_ipv6(LinphoneCore *lc, bool_t val);
...
@@ -1557,12 +1557,21 @@ LINPHONE_PUBLIC void linphone_core_enable_ipv6(LinphoneCore *lc, bool_t val);
/**
/**
* Same as linphone_core_get_primary_contact() but the result is a #LinphoneAddress object
* Same as linphone_core_get_primary_contact() but the result is a #LinphoneAddress object
* instead of const char
*
* instead of const char
*.
*
*
* @ingroup proxies
* @ingroup proxies
* @deprecated Use linphone_core_create_primary_contact_parsed() instead. Deprecated since 2018-10-22.
**/
**/
LINPHONE_PUBLIC
LinphoneAddress
*
linphone_core_get_primary_contact_parsed
(
LinphoneCore
*
lc
);
LINPHONE_PUBLIC
LinphoneAddress
*
linphone_core_get_primary_contact_parsed
(
LinphoneCore
*
lc
);
/**
* Same as linphone_core_get_primary_contact() but the result is a #LinphoneAddress object
* instead of const char *.
*
* @ingroup proxies
**/
LINPHONE_PUBLIC
LinphoneAddress
*
linphone_core_create_primary_contact_parsed
(
LinphoneCore
*
lc
);
LINPHONE_PUBLIC
const
char
*
linphone_core_get_identity
(
LinphoneCore
*
lc
);
LINPHONE_PUBLIC
const
char
*
linphone_core_get_identity
(
LinphoneCore
*
lc
);
/**
/**
...
...
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