array of #GstSDPAttribute with session attributes
array of #GstSDPBandwidth with bandwidth information
connection information for the session
array of #gchar with email addresses
session information
encryption key
array of #GstSDPMedia with media descriptions
owner/creator and session identifier
array of #gchar with phone numbers
session name
array of #GstSDPTime with time descriptions
URI of description
the protocol version
array of #GstSDPZone with time zone adjustments
Add the attribute with key
and value
to msg
.
the key
the value
Add the specified bandwidth information to msg
.
the bandwidth modifier type
the bandwidth in kilobits per second
Add email
to the list of emails in msg
.
an email
Add phone
to the list of phones in msg
.
a phone
Add time information start
and stop
to msg
.
the start time
the stop time
the repeat times
Add time zone information to msg
.
the NTP time that a time zone adjustment happens
the offset from the time when the session was first scheduled
Convert the contents of msg
to a text string.
Get the number of attributes in msg
.
Get the number of bandwidth information in msg
.
Allocate a new copy of msg
and store the result in copy
. The value in
copy
should be release with gst_sdp_message_free function.
Dump the parsed contents of msg
to stdout.
Get the number of emails in msg
.
Free all resources allocated by msg
. msg
should not be used anymore after
this function. This function should be used when msg
was dynamically
allocated with gst_sdp_message_new().
Get the attribute at position idx
in msg
.
the index
Get the first attribute with key key
in msg
.
the key
Get the nth
attribute with key key
in msg
.
the key
the index
Get the bandwidth at index idx
from msg
.
the bandwidth index
Get the connection of msg
.
Get the email with number idx
from msg
.
an email index
Get the information in msg
.
Get the encryption information from msg
.
Get the media description at index idx
in msg
.
the index
Get the origin of msg
.
Get the phone with number idx
from msg
.
a phone index
Get the session name in msg
.
Get time information with index idx
from msg
.
the time index
Get the URI in msg
.
Get the version in msg
.
Get time zone information with index idx
from msg
.
the zone index
Initialize msg
so that its contents are as if it was freshly allocated
with gst_sdp_message_new(). This function is mostly used to initialize a message
allocated on the stack. gst_sdp_message_uninit() undoes this operation.
When this function is invoked on newly allocated data (with malloc or on the stack), its contents should be set to 0 before calling this function.
Insert attribute into the array of attributes in msg
at index idx
.
When -1 is given as idx,
the attribute is inserted at the end.
an index
a #GstSDPAttribute
Insert bandwidth parameters into the array of bandwidths in msg
at index idx
.
When -1 is given as idx,
the bandwidth is inserted at the end.
an index
the bandwidth
Insert email
into the array of emails in msg
at index idx
.
When -1 is given as idx,
the email is inserted at the end.
an index
an email
Insert phone
into the array of phone numbers in msg
at index idx
.
When -1 is given as idx,
the phone is inserted at the end.
a phone index
a phone
Get the number of media descriptions in msg
.
Creates a new #GstMIKEYMessage after parsing the key-mgmt attribute from a #GstSDPMessage.
Get the number of phones in msg
.
Remove the attribute in msg
at index idx
.
the index
Remove the bandwidth information in msg
at index idx
.
the bandwidth index
Remove the email in msg
at index idx
.
an email index
Remove the phone number in msg
at index idx
.
a phone index
Remove the time information in msg
at index idx
.
the index
Remove the zone information in msg
at index idx
.
the index
Replace the attribute in msg
at index idx
with attr
.
the index
a #GstSDPAttribute
Replace the bandwidth information in msg
at index idx
with bw
.
the bandwidth index
the bandwidth
Replace the email in msg
at index idx
with email
.
an email index
an email
Replace the phone number in msg
at index idx
with phone
.
a phone index
a phone
Configure the SDP connection in msg
with the given parameters.
the type of network. "IN" is defined to have the meaning "Internet".
the type of address.
the address
the time to live of the address
the number of layers
Set the information in msg
.
the information
Adds the encryption information to msg
.
the encryption type
the encryption data
Configure the SDP origin in msg
with the given parameters.
the user name
a session id
a session version
a network type
an address type
an address
Set the session name in msg
.
the session name
Set the URI in msg
.
the URI
Set the version in msg
.
the version
Get the number of time information entries in msg
.
Free all resources allocated in msg
. msg
should not be used anymore after
this function. This function should be used when msg
was allocated on the
stack and initialized with gst_sdp_message_init().
Get the number of time zone information entries in msg
.
Creates a uri from msg
with the given scheme
. The uri has the format:
`scheme:`///[#type=value *[&type=value]]
Where each value is url encoded.
the uri scheme
the #GstSDPMessage
Allocate a new GstSDPMessage and store the result in msg
.
Parse text
and create a new SDPMessage from these.
A dynamically allocated string representing the SDP description
Parse the contents of size
bytes pointed to by data
and store the result in
msg
.
the start of the buffer
the result #GstSDPMessage
Parse the null-terminated uri
and store the result in msg
.
The uri should be of the form:
scheme://[address[:ttl=ttl][:noa=noa]]/[sessionname] [#type=value *[&type=value]]
where value is url encoded. This looslely resembles http://tools.ietf.org/html/draft-fujikawa-sdp-url-01
the start of the uri
the result #GstSDPMessage
The GstSDPMessage helper functions makes it easy to parse and create SDP messages.