Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

sdp.h File Reference

Detailed Description

Simple SDP (RFC 2327) Interface.

Pekka Pessi <Pekka.Pessi@nokia.com>

Kai Vehmanen <kai.vehmanen@nokia.com>

Created: Fri Feb 18 08:54:48 2000 ppessi

Definition in file sdp.h.

#include <sofia-sip/su_alloc.h>
#include <sofia-sip/su_types.h>

Go to the source code of this file.


struct  sdp_attribute_s
struct  sdp_bandwidth_s
struct  sdp_connection_s
struct  sdp_key_s
struct  sdp_list_s
struct  sdp_media_s
struct  sdp_origin_s
struct  sdp_repeat_s
struct  sdp_rtpmap_s
struct  sdp_session_s
struct  sdp_time_s
struct  sdp_zone_s


#define sdp_free_parser   sdp_parser_free
#define sdp_free_printer   sdp_printer_free
#define sdp_mapped_attribute_find   sdp_attribute_mapped_find
#define SDP_MIME_TYPE   "application/sdp"


typedef struct sdp_attribute_s sdp_attribute_t
typedef struct sdp_bandwidth_s sdp_bandwidth_t
typedef struct sdp_connection_s sdp_connection_t
typedef struct sdp_key_s sdp_key_t
typedef struct sdp_list_s sdp_list_t
typedef struct sdp_media_s sdp_media_t
typedef struct sdp_origin_s sdp_origin_t
typedef sdp_parser_tsdp_parser
typedef struct sdp_parser_s sdp_parser_t
 Simple SDP parser interface.
typedef sdp_printer_tsdp_printer
typedef struct sdp_printer_s sdp_printer_t
typedef struct sdp_repeat_s sdp_repeat_t
typedef struct sdp_rtpmap_s sdp_rtpmap_t
struct sdp_session_s 
typedef char const sdp_text_t
typedef struct sdp_time_s sdp_time_t
typedef unsigned long sdp_version_t
typedef struct sdp_zone_s sdp_zone_t


enum  sdp_addrtype_e { sdp_addr_x = 0, sdp_addr_ip4 = 1, sdp_addr_ip6 = 2 }
enum  sdp_bandwidth_e { sdp_bw_x, sdp_bw_ct, sdp_bw_as }
enum  sdp_key_method_e {
  sdp_key_x, sdp_key_clear, sdp_key_base64, sdp_key_uri,
enum  sdp_media_e {
  sdp_media_x = 0, sdp_media_any, sdp_media_audio, sdp_media_video,
  sdp_media_application, sdp_media_data, sdp_media_control, sdp_media_message,
  sdp_media_image, sdp_media_red
enum  sdp_mode_t { sdp_inactive = 0, sdp_sendonly = 1, sdp_recvonly = 2, sdp_sendrecv = sdp_sendonly | sdp_recvonly }
enum  sdp_nettype_e { sdp_net_x = 0, sdp_net_in = 1 }
enum  sdp_parse_flags_e {
  sdp_f_strict = 1, sdp_f_anynet = 2, sdp_f_realloc = 4, sdp_f_all_rtpmaps = 8,
  sdp_f_print_prefix = 16, sdp_f_mode_0000 = 32, sdp_f_insane = 64, sdp_f_c_missing = 128,
  sdp_f_config = 256, sdp_f_mode_manual = 512, sdp_f_mode_always = 1024
enum  sdp_proto_e {
  sdp_proto_x = 0, sdp_proto_tcp = 6, sdp_proto_udp = 17, sdp_proto_rtp = 256,
  sdp_proto_srtp = 257, sdp_proto_udptl = 258, sdp_proto_tls = 511, sdp_proto_any = 512


SOFIAPUBFUN void sdp_attribute_append (sdp_attribute_t **list, sdp_attribute_t const *a)
SOFIAPUBFUN sdp_attribute_tsdp_attribute_by_mode (su_home_t *, sdp_mode_t mode)
SOFIAPUBFUN int sdp_attribute_cmp (sdp_attribute_t const *, sdp_attribute_t const *)
SOFIAPUBFUN sdp_attribute_tsdp_attribute_dup (su_home_t *home, sdp_attribute_t const *)
SOFIAPUBFUN sdp_attribute_tsdp_attribute_find (sdp_attribute_t const *a, char const *name)
SOFIAPUBFUN sdp_attribute_tsdp_attribute_find2 (sdp_attribute_t const *a, sdp_attribute_t const *a2, char const *name)
SOFIAPUBFUN sdp_attribute_tsdp_attribute_mapped_find (sdp_attribute_t const *a, char const *name, int pt, char **return_result)
SOFIAPUBFUN sdp_mode_t sdp_attribute_mode (sdp_attribute_t const *a, sdp_mode_t defmode)
SOFIAPUBFUN sdp_attribute_tsdp_attribute_remove (sdp_attribute_t **list, char const *name)
SOFIAPUBFUN int sdp_attribute_replace (sdp_attribute_t **list, sdp_attribute_t *a, sdp_attribute_t **return_replaced)
SOFIAPUBFUN int sdp_bandwidth_cmp (sdp_bandwidth_t const *a, sdp_bandwidth_t const *b)
SOFIAPUBFUN sdp_bandwidth_tsdp_bandwidth_dup (su_home_t *home, sdp_bandwidth_t const *)
SOFIAPUBFUN int sdp_connection_cmp (sdp_connection_t const *, sdp_connection_t const *b)
SOFIAPUBFUN sdp_connection_tsdp_connection_dup (su_home_t *home, sdp_connection_t const *)
SOFIAPUBFUN int sdp_key_cmp (sdp_key_t const *a, sdp_key_t const *b)
SOFIAPUBFUN sdp_key_tsdp_key_dup (su_home_t *home, sdp_key_t const *)
SOFIAPUBFUN int sdp_list_cmp (sdp_list_t const *a, sdp_list_t const *b)
SOFIAPUBFUN sdp_list_tsdp_list_dup (su_home_t *home, sdp_list_t const *)
SOFIAPUBFUN int sdp_media_cmp (sdp_media_t const *, sdp_media_t const *)
SOFIAPUBFUN sdp_connection_tsdp_media_connections (sdp_media_t const *m)
SOFIAPUBFUN unsigned sdp_media_count (sdp_session_t const *sdp, sdp_media_e type, sdp_text_t *type_name, sdp_proto_e proto, sdp_text_t *proto_name)
SOFIAPUBFUN unsigned sdp_media_count_with (sdp_session_t const *sdp, sdp_media_t const *m0)
SOFIAPUBFUN sdp_media_tsdp_media_dup (su_home_t *, sdp_media_t const *, sdp_session_t *)
SOFIAPUBFUN sdp_media_tsdp_media_dup_all (su_home_t *, sdp_media_t const *, sdp_session_t *)
SOFIAPUBFUN int sdp_media_has_rtp (sdp_media_t const *m)
SOFIAPUBFUN unsigned sdp_media_match (sdp_media_t const *m, sdp_media_e type, sdp_text_t *type_name, sdp_proto_e proto, sdp_text_t *proto_name)
SOFIAPUBFUN unsigned sdp_media_match_with (sdp_media_t const *a, sdp_media_t const *b)
SOFIAPUBFUN void sdp_media_transport (sdp_media_t *m, char const *s)
SOFIAPUBFUN void sdp_media_type (sdp_media_t *m, char const *s)
SOFIAPUBFUN int sdp_media_uses_rtp (sdp_media_t const *m)
SOFIAPUBFUN char const * sdp_message (sdp_printer_t *p)
 Get encoded SDP message.
SOFIAPUBFUN isize_t sdp_message_size (sdp_printer_t *p)
 Get size of encoded SDP message.
SOFIAPUBFUN int sdp_origin_cmp (sdp_origin_t const *a, sdp_origin_t const *b)
SOFIAPUBFUN sdp_origin_tsdp_origin_dup (su_home_t *, sdp_origin_t const *)
SOFIAPUBFUN sdp_parser_tsdp_parse (su_home_t *, char const msg[], issize_t msgsize, int flags)
SOFIAPUBFUN void sdp_parser_free (sdp_parser_t *p)
SOFIAPUBFUN su_home_tsdp_parser_home (sdp_parser_t *)
SOFIAPUBFUN char const * sdp_parsing_error (sdp_parser_t *p)
SOFIAPUBFUN sdp_printer_tsdp_print (su_home_t *, sdp_session_t const *session, char msgbuf[], isize_t maxmsgsize, int flags)
SOFIAPUBFUN void sdp_printer_free (sdp_printer_t *p)
SOFIAPUBFUN char const * sdp_printing_error (sdp_printer_t *p)
 Get encoding error.
SOFIAPUBFUN int sdp_repeat_cmp (sdp_repeat_t const *a, sdp_repeat_t const *b)
SOFIAPUBFUN sdp_repeat_tsdp_repeat_dup (su_home_t *home, sdp_repeat_t const *)
SOFIAPUBFUN int sdp_rtpmap_cmp (sdp_rtpmap_t const *a, sdp_rtpmap_t const *b)
SOFIAPUBFUN sdp_rtpmap_tsdp_rtpmap_dup (su_home_t *home, sdp_rtpmap_t const *)
SOFIAPUBFUN sdp_rtpmap_tsdp_rtpmap_find_matching (sdp_rtpmap_t const *list, sdp_rtpmap_t const *rm)
SOFIAPUBFUN int sdp_rtpmap_match (sdp_rtpmap_t const *, sdp_rtpmap_t const *)
SOFIAPUBFUN int sdp_sanity_check (sdp_parser_t *)
SOFIAPUBFUN sdp_session_tsdp_session (sdp_parser_t *p)
SOFIAPUBFUN int sdp_session_cmp (sdp_session_t const *a, sdp_session_t const *b)
SOFIAPUBFUN sdp_session_tsdp_session_dup (su_home_t *, sdp_session_t const *)
SOFIAPUBFUN int sdp_time_cmp (sdp_time_t const *a, sdp_time_t const *b)
SOFIAPUBFUN sdp_time_tsdp_time_dup (su_home_t *home, sdp_time_t const *)
SOFIAPUBFUN int sdp_zone_cmp (sdp_zone_t const *a, sdp_zone_t const *b)
SOFIAPUBFUN sdp_zone_tsdp_zone_dup (su_home_t *home, sdp_zone_t const *)


SOFIAPUBVAR sdp_rtpmap_t const
sdp_rtpmap_well_known [128]

Generated by  Doxygen 1.6.0   Back to index