Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sdp.h
Go to the documentation of this file.
1 
22 #ifndef _JANUS_SDP_H
23 #define _JANUS_SDP_H
24 
25 
26 #include <inttypes.h>
27 #include <sofia-sip/sdp.h>
28 
29 
32 
33 
35 int janus_sdp_init(void);
37 void janus_sdp_deinit(void);
39 
40 
41 /* Parser stuff */
43 typedef struct janus_sdp {
45  void *parser;
47  void *sdp;
48 } janus_sdp;
49 
52 void janus_sdp_free(janus_sdp *sdp);
53 
54 
57 
58 
68 janus_sdp *janus_sdp_preparse(const char *jsep_sdp, int *audio, int *video, int *data, int *bundle, int *rtcpmux, int *trickle);
69 
75 int janus_sdp_parse(janus_ice_handle *session, janus_sdp *sdp);
76 
83 int janus_sdp_parse_candidate(janus_ice_stream *stream, const char *candidate, int trickle);
84 
91 int janus_sdp_parse_ssrc(janus_ice_stream *stream, const char *ssrc_attr, int video);
92 
96 char *janus_sdp_anonymize(const char *sdp);
97 
102 char *janus_sdp_merge(janus_ice_handle *session, const char *sdp);
104 
105 #endif