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
belle-sip
Commits
3afc65a7
Commit
3afc65a7
authored
Oct 07, 2015
by
Ghislain MARY
Browse files
Add API to get attributes from a SDP session description.
parent
d9372d60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
include/belle-sip/belle-sdp.h
include/belle-sip/belle-sdp.h
+1
-0
src/belle_sdp_impl.c
src/belle_sdp_impl.c
+4
-0
No files found.
include/belle-sip/belle-sdp.h
View file @
3afc65a7
...
...
@@ -367,6 +367,7 @@ typedef struct _belle_sdp_session_description belle_sdp_session_description_t;
BELLESIP_EXPORT
belle_sdp_session_description_t
*
belle_sdp_session_description_new
();
BELLESIP_EXPORT
belle_sdp_session_description_t
*
belle_sdp_session_description_parse
(
const
char
*
session_description
);
BELLESIP_EXPORT
belle_sip_list_t
*
belle_sdp_session_description_get_attributes
(
const
belle_sdp_session_description_t
*
session_description
);
BELLESIP_EXPORT
const
char
*
belle_sdp_session_description_get_attribute_value
(
const
belle_sdp_session_description_t
*
session_description
,
const
char
*
name
);
BELLESIP_EXPORT
const
belle_sdp_attribute_t
*
belle_sdp_session_description_get_attribute
(
const
belle_sdp_session_description_t
*
session_description
,
const
char
*
name
);
BELLESIP_EXPORT
int
belle_sdp_session_description_get_bandwidth
(
const
belle_sdp_session_description_t
*
session_description
,
const
char
*
name
);
...
...
src/belle_sdp_impl.c
View file @
3afc65a7
...
...
@@ -1321,6 +1321,10 @@ BELLE_SDP_NEW(session_description,belle_sdp_base_description)
BELLE_SDP_PARSE
(
session_description
)
belle_sip_list_t
*
belle_sdp_session_description_get_attributes
(
const
belle_sdp_session_description_t
*
session_description
)
{
return
belle_sdp_base_description_get_attributes
(
BELLE_SIP_CAST
(
session_description
,
belle_sdp_base_description_t
));
}
const
char
*
belle_sdp_session_description_get_attribute_value
(
const
belle_sdp_session_description_t
*
session_description
,
const
char
*
name
)
{
return
belle_sdp_base_description_get_attribute_value
(
BELLE_SIP_CAST
(
session_description
,
belle_sdp_base_description_t
),
name
);
}
...
...
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