gint kms_sdp_agent_crate_bundle_group (KmsSdpAgent * agent) { g_return_val_if_fail (KMS_IS_SDP_AGENT (agent), -1); return KMS_SDP_AGENT_GET_CLASS (agent)->crate_bundle_group (agent); }
SdpMessageContext * kms_sdp_agent_create_offer (KmsSdpAgent * agent, GError ** error) { g_return_val_if_fail (KMS_IS_SDP_AGENT (agent), NULL); return KMS_SDP_AGENT_GET_CLASS (agent)->create_offer (agent, error); }
gboolean kms_sdp_agent_add_handler_to_group (KmsSdpAgent * agent, guint gid, guint hid) { g_return_val_if_fail (KMS_IS_SDP_AGENT (agent), FALSE); return KMS_SDP_AGENT_GET_CLASS (agent)->add_handler_to_group (agent, gid, hid); }
void kms_sdp_agent_set_remote_description (KmsSdpAgent * agent, GstSDPMessage * description) { g_return_if_fail (KMS_IS_SDP_AGENT (agent)); KMS_SDP_AGENT_GET_CLASS (agent)->set_remote_description (agent, description); }
/* TODO: rename to _add_media_handler */ gint kms_sdp_agent_add_proto_handler (KmsSdpAgent * agent, const gchar * media, KmsSdpMediaHandler * handler) { g_return_val_if_fail (KMS_IS_SDP_AGENT (agent), -1); return KMS_SDP_AGENT_GET_CLASS (agent)->add_proto_handler (agent, media, handler); }
gboolean kms_sdp_media_handler_set_parent (KmsSdpMediaHandler * handler, KmsSdpAgent * parent, GError ** error) { g_return_val_if_fail (KMS_IS_SDP_MEDIA_HANDLER (handler), FALSE); g_return_val_if_fail (KMS_IS_SDP_AGENT (parent), FALSE); if (handler->priv->parent != NULL) { g_set_error_literal (error, KMS_SDP_AGENT_ERROR, SDP_AGENT_UNEXPECTED_ERROR, "Handler already has a parent"); return FALSE; } handler->priv->parent = parent; return TRUE; }