|
VLC 4.0.0-dev
|
Files | |
| file | sdp.h |
| Session Description Protocol (SDP) | |
Data Structures | |
| struct | vlc_sdp_attr |
| SDP attribute. More... | |
| struct | vlc_sdp_conn |
| SDP connection address. More... | |
| struct | vlc_sdp_media |
| SDP media. More... | |
| struct | vlc_sdp |
| SDP session descriptor. More... | |
Functions | |
| struct vlc_sdp * | vlc_sdp_parse (const char *str, size_t length) |
| Parses an SDP session descriptor. | |
| void | vlc_sdp_free (struct vlc_sdp *sdp) |
| Destroys a parsed SDP session descriptor. | |
| const struct vlc_sdp_attr * | vlc_sdp_attr_first_by_name (struct vlc_sdp_attr *const *ap, const char *name) |
| static const struct vlc_sdp_attr * | vlc_sdp_media_attr_get (const struct vlc_sdp_media *media, const char *name) |
| Gets a media attribute by name. | |
| static bool | vlc_sdp_media_attr_present (const struct vlc_sdp_media *media, const char *name) |
| Checks if a median attribute is present. | |
| static const char * | vlc_sdp_media_attr_value (const struct vlc_sdp_media *media, const char *name) |
| Returns a media attribute value. | |
| static const struct vlc_sdp_conn * | vlc_sdp_media_conn (const struct vlc_sdp_media *media) |
| Returns the media connection address list. | |
| static const struct vlc_sdp_attr * | vlc_sdp_attr_get (const struct vlc_sdp *sdp, const char *name) |
| Gets a session attribute by name. | |
| static bool | vlc_sdp_attr_present (const struct vlc_sdp *sdp, const char *name) |
| Checks if a session attribute is present. | |
| static const char * | vlc_sdp_attr_value (const struct vlc_sdp *sdp, const char *name) |
| Returns a session attribute value. | |
| const struct vlc_sdp_attr * vlc_sdp_attr_first_by_name | ( | struct vlc_sdp_attr *const * | ap, |
| const char * | name | ||
| ) |
References name, and vlc_sdp_attr::next.
Referenced by vlc_sdp_attr_get(), and vlc_sdp_media_attr_get().
|
inlinestatic |
Gets a session attribute by name.
| sdp | Session descriptor. |
| name | Attribute name. |
References vlc_sdp::attrs, name, and vlc_sdp_attr_first_by_name().
Referenced by vlc_sdp_attr_present(), and vlc_sdp_attr_value().
|
inlinestatic |
Checks if a session attribute is present.
| sdp | Session descriptor. |
| name | Attribute name. |
| true | if present |
| false | it absent |
References name, and vlc_sdp_attr_get().
|
inlinestatic |
Returns a session attribute value.
| sdp | Session descriptor. |
| name | Attribute name. |
References name, vlc_sdp_attr::value, and vlc_sdp_attr_get().
Referenced by OpenSDP().
| void vlc_sdp_free | ( | struct vlc_sdp * | sdp | ) |
Destroys a parsed SDP session descriptor.
References vlc_sdp::attrs, vlc_sdp::conn, vlc_sdp::info, vlc_sdp::media, vlc_sdp::name, vlc_sdp_attr_free(), vlc_sdp_conn_free(), and vlc_sdp_media_free().
Referenced by OpenSDP(), and vlc_sdp_parse().
|
inlinestatic |
Gets a media attribute by name.
| media | Session media descriptor. |
| name | Session attribute name. |
References vlc_sdp_media::attrs, name, and vlc_sdp_attr_first_by_name().
Referenced by vlc_sdp_media_attr_present(), and vlc_sdp_media_attr_value().
|
inlinestatic |
Checks if a median attribute is present.
| media | Media descriptor. |
| name | Attribute name. |
| true | if present |
| false | it absent |
References name, and vlc_sdp_media_attr_get().
Referenced by OpenSDP().
|
inlinestatic |
Returns a media attribute value.
| media | Media descriptor. |
| name | Attribute name. |
References name, vlc_sdp_attr::value, and vlc_sdp_media_attr_get().
Referenced by OpenSDP().
|
inlinestatic |
Returns the media connection address list.
References vlc_sdp::conn, vlc_sdp_media::conns, and vlc_sdp_media::session.
| struct vlc_sdp * vlc_sdp_parse | ( | const char * | str, |
| size_t | length | ||
| ) |
Parses an SDP session descriptor.
| str | start address of the descriptor |
| length | bytes length of the descriptor |
errno is set) References vlc_sdp_media::attrs, vlc_sdp::attrs, vlc_sdp::conn, vlc_sdp_media::conns, vlc_sdp::info, vlc_sdp::media, vlc_sdp::name, vlc_sdp_attr::next, vlc_sdp_conn::next, vlc_sdp_media::next, strndup(), unlikely, vlc_sdp_attr_parse(), vlc_sdp_conn_parse(), vlc_sdp_free(), vlc_sdp_getline(), and vlc_sdp_media_parse().
Referenced by OpenSDP().