Commit 3b336191 authored by Pekka Pessi's avatar Pekka Pessi

Fixed documentation of sdp_parsing_error() and sdp_parsing_error()

contradicting with implementation. Use sdp_session() and sdp_message() to
check for error.

darcs-hash:20051003154718-65a35-df2e80e58e56805ed431bfbfd47fcdf73d33ed72.gz
parent cc901629
......@@ -30,7 +30,7 @@ Typically, the SDP parser is used as follows:
@code
sdp_parser parser = sdp_parse(home, message, len, 0);
if (!sdp_parsing_error(parser)) {
if (!sdp_session(parser)) {
show(sdp_parsing_error(parser));
} else {
sdp_session_t *sdp = sdp_session(parser);
......@@ -41,6 +41,12 @@ Typically, the SDP parser is used as follows:
sdp_parser_free(parser);
@endcode
There are various flags indicating what kind of SDP variants parser accepts.
The sanity check run after parsing can be disabled by including flag
#sdp_f_insane. The parser can be used to parse syntactically vague
configuration files when using flag #sdp_f_config. The parser will then
accept * for media, protocol and port, for instance.
@todo strict (parser accepts some non-conforming SDP even with strict)
@section sdp_printer SDP Printer
......@@ -53,7 +59,7 @@ Typically, the SDP printer is used as follows:
char buffer[512];
sdp_printer printer = sdp_print(home, session, buffer, sizeof(buffer), 0);
if (!sdp_parsing_error(printer)) {
if (sdp_message(printer)) {
char const *msg = sdp_message(printer);
int msgsize = sdp_message_size(printer);
@endcode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment