1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-09-29 15:25:24 +00:00

sip: gst-rfc3551: Add docstrings for public functions

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-04-09 00:40:54 +02:00 committed by Guido Gunther
parent 2cb8139094
commit d253870509

View file

@ -56,6 +56,12 @@ media_codec_available_in_gst (MediaCodecInfo *codec) {
return available;
}
/* media_codec_by_name:
*
* @name: The name of the codec
*
* Returns: (transfer: none) A #MediaCodecInfo, if found
*/
MediaCodecInfo *
media_codec_by_name (const char *name)
{
@ -69,6 +75,12 @@ media_codec_by_name (const char *name)
return NULL;
}
/* media_codec_by_payload_id:
*
* @payload_id: The payload id (see RFC 3551, 3555, 4733, 4855)
*
* Returns: (transfer: none) A #MediaCodecInfo, if found
*/
MediaCodecInfo *
media_codec_by_payload_id (guint payload_id)
{
@ -80,6 +92,13 @@ media_codec_by_payload_id (guint payload_id)
return NULL;
}
/* media_codec_get_gst_capabilities:
*
* @codec: A #MediaCodecInfo
*
* Returns: (transfer: full) The capability string describing GstCaps.
* Used for the RTP source element.
*/
gchar *
media_codec_get_gst_capabilities (MediaCodecInfo *codec)
{
@ -90,6 +109,10 @@ media_codec_get_gst_capabilities (MediaCodecInfo *codec)
codec->payload_id);
}
/* media_codecs_get_candidates:
*
* Returns: (transfer: none) A #GList of codec candidates of type #MediaCodecInfo
*/
GList *
media_codecs_get_candidates ()
{