Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Examples

parserpriv.h File Reference

Private header for parser module. More...

#include "priv.h"
#include <freesdp/parser.h>

Go to the source code of this file.

Defines

#define MAXSHORTFIELDLEN   96
#define MSFLENS   "95"
#define MAXLONGFIELDLEN   1024
#define MLFLENS   "1023"

Functions

fsdp_error_t fsdp_parse_c (const char **p, fsdp_network_type_t *ntype, fsdp_address_type_t *atype, fsdp_connection_address_t *address)
fsdp_error_t fsdp_parse_b (const char **p, fsdp_bw_modifier_t **bw_modifiers, unsigned int *bw_modifiers_count)
fsdp_error_t fsdp_parse_k (const char **p, fsdp_encryption_method_t *method, char **content)
fsdp_error_t fsdp_repeat_time_to_uint (const char *time, unsigned long int *seconds)
fsdp_error_t fsdp_parse_rtpmap (fsdp_rtpmap_t ***rtpmap, unsigned int *counter, const char *value)


Detailed Description

Private header for parser module.

Definition in file parserpriv.h.


Define Documentation

#define MAXLONGFIELDLEN   1024
 

Maximun default field len for "maybe very long" fields, like information, attribute values. This can also be used for lines where there is only a string field, like phone and email.

MLFLENS value must be MAXLONGFIELDLEN - 1

Definition at line 113 of file parserpriv.h.

Referenced by fsdp_parse(), fsdp_parse_k(), and fsdp_parse_rtpmap().

#define MAXSHORTFIELDLEN   96
 

Maximun default field len for "expected to be short" fields, like username, session_id or inet addresses.

MDFLENS value must be MAXSHORTFIELDLEN - 1

Definition at line 103 of file parserpriv.h.

Referenced by fsdp_parse(), fsdp_parse_b(), fsdp_parse_c(), fsdp_parse_k(), and fsdp_parse_rtpmap().

#define MLFLENS   "1023"
 

Definition at line 114 of file parserpriv.h.

Referenced by fsdp_parse(), and fsdp_parse_k().

#define MSFLENS   "95"
 

Definition at line 104 of file parserpriv.h.

Referenced by fsdp_parse(), and fsdp_parse_c().


Function Documentation

fsdp_error_t fsdp_parse_b const char **  p,
fsdp_bw_modifier_t **  bw_modifiers,
unsigned int *  bw_modifiers_count
[static]
 

Parse b (b=:<bandwidth-value>) consecutive lines. If the textual description in p begins with a bandwidth line, it is parsed as well as all b lines inmediately after it. If not, nothing is done.

Parameters:
p fraction of textual SDP description.
bw_modifiers pointer to empty array of bandwidth modifiers to fill.
bw_modifiers_count where to set the number of bandwidth modifiers successfully parsed.
Returns:
parse error code.

Referenced by fsdp_parse().

fsdp_error_t fsdp_parse_c const char **  p,
fsdp_network_type_t ntype,
fsdp_address_type_t atype,
fsdp_connection_address_t address
[static]
 

Parse a connection (c= ) line. If the textual description in p begins with a connection line, it is parsed. If not, nothing is done.

Parameters:
p fraction of textual SDP description.
ntype where to store the network type.
atype where to store the address type.
address where to store the connection address as a string.
Returns:
parse error code.

Referenced by fsdp_parse().

fsdp_error_t fsdp_parse_k const char **  p,
fsdp_encryption_method_t method,
char **  content
[static]
 

Parse a k (k=) or (k=:) line. If the textual description in p begins with an encryption line, it is parsed. If not, nothing is done.

Parameters:
p fraction of textual SDP description.
method where to store the encryption method.
content where to store the encryption key if provided.
Returns:
parse error code.

Referenced by fsdp_parse().

fsdp_error_t fsdp_parse_rtpmap fsdp_rtpmap_t ***  rtpmap,
unsigned int *  counter,
const char *  value
[static]
 

Referenced by fsdp_parse().

fsdp_error_t fsdp_repeat_time_to_uint const char *  time,
unsigned long int *  seconds
[static]
 

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,

Parameters:
time time in SDP syntax as a string.
seconds where to store the value in seconds as an integer.
Returns:
parse error code.

Referenced by fsdp_parse().


Generated on Sun Jan 18 21:12:44 2004 for FreeSDP by doxygen 1.3.4