SDP utilities (headers) More...
#include <inttypes.h>
#include <glib.h>
Go to the source code of this file.
Data Structures | |
struct | janus_sdp |
Janus SDP internal object representation. More... | |
struct | janus_sdp_mline |
SDP m-line representation. More... | |
struct | janus_sdp_attribute |
SDP a= attribute representation. More... | |
Typedefs | |
typedef struct janus_sdp | janus_sdp |
Janus SDP internal object representation. More... | |
typedef enum janus_sdp_mtype | janus_sdp_mtype |
Helper enumeration to quickly identify m-line media types. More... | |
typedef enum janus_sdp_mdirection | janus_sdp_mdirection |
Helper enumeration to quickly identify m-line directions. More... | |
typedef struct janus_sdp_mline | janus_sdp_mline |
SDP m-line representation. More... | |
typedef struct janus_sdp_attribute | janus_sdp_attribute |
SDP a= attribute representation. More... | |
Enumerations | |
enum | janus_sdp_mtype { JANUS_SDP_AUDIO, JANUS_SDP_VIDEO, JANUS_SDP_APPLICATION, JANUS_SDP_OTHER } |
Helper enumeration to quickly identify m-line media types. More... | |
enum | janus_sdp_mdirection { JANUS_SDP_DEFAULT, JANUS_SDP_SENDRECV, JANUS_SDP_SENDONLY, JANUS_SDP_RECVONLY, JANUS_SDP_INACTIVE } |
Helper enumeration to quickly identify m-line directions. More... | |
Functions | |
janus_sdp_attribute * | janus_sdp_attribute_create (const char *name, const char *value,...) G_GNUC_PRINTF(2 |
Helper method to quickly create a janus_sdp_attribute instance. More... | |
janus_sdp_attribute void | janus_sdp_attribute_destroy (janus_sdp_attribute *attr) |
Helper method to free a janus_sdp_attribute instance. More... | |
janus_sdp * | janus_sdp_parse (const char *sdp, char *error, size_t errlen) |
Method to parse an SDP string to a janus_sdp object. More... | |
int | janus_sdp_remove_payload_type (janus_sdp *sdp, int pt) |
Helper method to quickly remove all traces (m-line, rtpmap, fmtp, etc.) of a payload type. More... | |
char * | janus_sdp_write (janus_sdp *sdp) |
Method to serialize a janus_sdp object to an SDP string. More... | |
void | janus_sdp_free (janus_sdp *sdp) |
Method to free a Janus SDP object. More... | |
SDP utilities (headers)
Implementation of an internal SDP representation. Allows to parse SDP strings to an internal janus_sdp object, the manipulation of such object by playing with its properties, and a serialization to an SDP string that can be passed around. Since they don't have any core dependencies, these utilities can be used by plugins as well.
typedef struct janus_sdp_attribute janus_sdp_attribute |
SDP a= attribute representation.
typedef enum janus_sdp_mdirection janus_sdp_mdirection |
Helper enumeration to quickly identify m-line directions.
typedef struct janus_sdp_mline janus_sdp_mline |
SDP m-line representation.
typedef enum janus_sdp_mtype janus_sdp_mtype |
Helper enumeration to quickly identify m-line media types.
enum janus_sdp_mdirection |
enum janus_sdp_mtype |
janus_sdp_attribute* janus_sdp_attribute_create | ( | const char * | name, |
const char * | value, | ||
... | |||
) |
Helper method to quickly create a janus_sdp_attribute instance.
[in] | name | Name of the attribute |
[in] | value | Value of the attribute, as a printf compliant string (variable arguments) |
janus_sdp_attribute void janus_sdp_attribute_destroy | ( | janus_sdp_attribute * | attr | ) |
Helper method to free a janus_sdp_attribute instance.
[in] | attr | The janus_sdp_attribute instance to free |
void janus_sdp_free | ( | janus_sdp * | sdp | ) |
Method to free a Janus SDP object.
[in] | sdp | The Janus SDP object to free |
janus_sdp* janus_sdp_parse | ( | const char * | sdp, |
char * | error, | ||
size_t | errlen | ||
) |
Method to parse an SDP string to a janus_sdp object.
[in] | sdp | The SDP string to parse |
[in,out] | error | Buffer to receive a reason for an error, if any |
[in] | errlen | The length of the error buffer |
int janus_sdp_remove_payload_type | ( | janus_sdp * | sdp, |
int | pt | ||
) |
Helper method to quickly remove all traces (m-line, rtpmap, fmtp, etc.) of a payload type.
[in] | sdp | The janus_sdp object to remove the payload type from |
[in] | pt | The payload type to remove |