#include "parserpriv.h"
Go to the source code of this file.
This file implements the parsing routine fsdp_parse
and the fsdp_get_xxxx
routines that allow to get the session properties from a session description object build through the application of fsdp_parse
to a textual SDP session description.
Definition in file parser.c.
|
Value: ({ \ while ((*(c) != '\0') && (*(c) != '\r') && (*(c) != '\n')) { \ (c)++; \ } \ if (*(c) == '\n') { \ (c)++; \ } else if (*(c) == '\r') { \ (c)++; \ if (*(c) == '\n') { \ (c)++; \ } else { \ return FSDPE_ILLEGAL_CHARACTER; \ } \ } \ }) c
Definition at line 42 of file parser.c. Referenced by fsdp_parse(), fsdp_parse_b(), fsdp_parse_c(), and fsdp_parse_k(). |
|
Definition at line 1277 of file parser.c. References fsdp_description_t_s::a_langs, fsdp_description_t_s::a_langs_count, and fsdp_description_t. |
|
Definition at line 1269 of file parser.c. References fsdp_description_t_s::a_langs_count, and fsdp_description_t. |
|
Definition at line 1357 of file parser.c. References fsdp_media_description_t_s::formats, fsdp_media_description_t_s::formats_count, and fsdp_media_description_t. |
|
Definition at line 1349 of file parser.c. References fsdp_media_description_t_s::formats_count, and fsdp_media_description_t. |
|
Definition at line 1223 of file parser.c. References fsdp_description_t_s::a_rtpmaps, fsdp_description_t_s::a_rtpmaps_count, fsdp_rtpmap_t::clock_rate, and fsdp_description_t. |
|
Definition at line 1198 of file parser.c. References fsdp_description_t_s::a_rtpmaps_count, and fsdp_description_t. |
|
Definition at line 1214 of file parser.c. References fsdp_description_t_s::a_rtpmaps, fsdp_description_t_s::a_rtpmaps_count, fsdp_rtpmap_t::encoding_name, and fsdp_description_t. |
|
Definition at line 1231 of file parser.c. References fsdp_description_t_s::a_rtpmaps, fsdp_description_t_s::a_rtpmaps_count, fsdp_description_t, and fsdp_rtpmap_t::parameters. |
|
Definition at line 1206 of file parser.c. References fsdp_description_t_s::a_rtpmaps, fsdp_description_t_s::a_rtpmaps_count, fsdp_description_t, and fsdp_rtpmap_t::pt. |
|
Parse b (b=:<bandwidth-value>) consecutive lines. If the textual description in
Definition at line 764 of file parser.c. References FSDP_BW_MOD_TYPE_APPLICATION_SPECIFIC, FSDP_BW_MOD_TYPE_CONFERENCE_TOTAL, FSDP_BW_MOD_TYPE_RTCP_RECEIVERS, FSDP_BW_MOD_TYPE_RTCP_SENDERS, FSDP_BW_MOD_TYPE_UNKNOWN, FSDPE_INVALID_BANDWIDTH, FSDPE_OK, MAXSHORTFIELDLEN, and NEXT_LINE. |
|
Parse a connection (c= ) line. If the textual description in
Definition at line 712 of file parser.c. References fsdp_connection_address_t_s::address, fsdp_connection_address_t_s::address_count, fsdp_connection_address_t_s::address_ttl, FSDP_ADDRESS_TYPE_IPV4, FSDP_ADDRESS_TYPE_IPV6, fsdp_connection_address_t, FSDP_NETWORK_TYPE_INET, FSDPE_INVALID_CONNECTION, FSDPE_INVALID_CONNECTION_ADDRTYPE, FSDPE_INVALID_CONNECTION_NETTYPE, FSDPE_OK, MAXSHORTFIELDLEN, MSFLENS, and NEXT_LINE. |
|
Parse a k (k=) or (k=:) line. If the textual description in
Definition at line 807 of file parser.c. References FSDP_ENCRYPTION_METHOD_BASE64, FSDP_ENCRYPTION_METHOD_CLEAR, FSDP_ENCRYPTION_METHOD_PROMPT, FSDP_ENCRYPTION_METHOD_URI, FSDPE_INVALID_ENCRYPTION_METHOD, FSDPE_OK, MAXLONGFIELDLEN, MAXSHORTFIELDLEN, MLFLENS, and NEXT_LINE. |
|
Definition at line 836 of file parser.c. References fsdp_rtpmap_t::clock_rate, fsdp_rtpmap_t::encoding_name, fsdp_error_t, FSDPE_INVALID_ATTRIBUTE_RTPMAP, FSDPE_OK, MAXLONGFIELDLEN, MAXSHORTFIELDLEN, MEDIA_RTPMAPS_MAX_COUNT, fsdp_rtpmap_t::parameters, and fsdp_rtpmap_t::pt. |
|
Parses a string whose first token (first characters before the first space or end of string) is supposed to be a time in SDP syntax. Some examples of SDP times are: 2d, 5h, 3444, 7778s,
Definition at line 881 of file parser.c. References FSDPE_INVALID_REPEAT, and FSDPE_OK. |