static void kms_webrtc_rtcp_mux_connection_class_init (KmsWebRtcRtcpMuxConnectionClass * klass) { GObjectClass *gobject_class; KmsWebRtcBaseConnectionClass *base_conn_class; gobject_class = G_OBJECT_CLASS (klass); gobject_class->finalize = kms_webrtc_rtcp_mux_connection_finalize; gobject_class->set_property = kms_webrtc_rtcp_mux_connection_set_property; gobject_class->get_property = kms_webrtc_rtcp_mux_connection_get_property; base_conn_class = KMS_WEBRTC_BASE_CONNECTION_CLASS (klass); base_conn_class->set_certificate_pem_file = kms_webrtc_rtcp_mux_connection_set_certificate_pem_file; base_conn_class->get_certificate_pem = kms_webrtc_rtcp_mux_connection_get_certificate_pem_file; g_type_class_add_private (klass, sizeof (KmsWebRtcRtcpMuxConnectionPrivate)); GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, GST_DEFAULT_NAME, 0, GST_DEFAULT_NAME); g_object_class_override_property (gobject_class, PROP_ADDED, "added"); g_object_class_override_property (gobject_class, PROP_CONNECTED, "connected"); }
static void kms_webrtc_sctp_connection_class_init (KmsWebRtcSctpConnectionClass * klass) { GObjectClass *gobject_class; KmsWebRtcBaseConnectionClass *base_conn_class; gobject_class = G_OBJECT_CLASS (klass); gobject_class->finalize = kms_webrtc_sctp_connection_finalize; gobject_class->set_property = kms_webrtc_sctp_connection_set_property; gobject_class->get_property = kms_webrtc_sctp_connection_get_property; base_conn_class = KMS_WEBRTC_BASE_CONNECTION_CLASS (klass); base_conn_class->get_certificate_pem = kms_webrtc_sctp_connection_get_certificate_pem; g_type_class_add_private (klass, sizeof (KmsWebRtcSctpConnectionPrivate)); GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, GST_DEFAULT_NAME, 0, GST_DEFAULT_NAME); g_object_class_override_property (gobject_class, PROP_ADDED, "added"); g_object_class_override_property (gobject_class, PROP_CONNECTED, "connected"); g_object_class_override_property (gobject_class, PROP_IS_CLIENT, "is-client"); g_object_class_override_property (gobject_class, PROP_MAX_PORT, "max-port"); g_object_class_override_property (gobject_class, PROP_MIN_PORT, "min-port"); }
gchar * kms_webrtc_base_connection_get_certificate_pem (KmsWebRtcBaseConnection * self) { KmsWebRtcBaseConnectionClass *klass = KMS_WEBRTC_BASE_CONNECTION_CLASS (G_OBJECT_GET_CLASS (self)); return klass->get_certificate_pem (self); }
void kms_webrtc_base_connection_set_certificate_pem_file (KmsWebRtcBaseConnection * self, const gchar * pem) { KmsWebRtcBaseConnectionClass *klass = KMS_WEBRTC_BASE_CONNECTION_CLASS (G_OBJECT_GET_CLASS (self)); klass->set_certificate_pem_file (self, pem); }
static void kms_webrtc_base_connection_set_certificate_pem_file_default (KmsWebRtcBaseConnection * self, const gchar * pem) { KmsWebRtcBaseConnectionClass *klass = KMS_WEBRTC_BASE_CONNECTION_CLASS (G_OBJECT_GET_CLASS (self)); if (klass->set_certificate_pem_file == kms_webrtc_base_connection_set_certificate_pem_file_default) { GST_WARNING_OBJECT (self, "%s does not reimplement 'set_certificate_pem_file'", G_OBJECT_CLASS_NAME (klass)); } }
static gchar *kms_webrtc_base_connection_get_certificate_pem_default (KmsWebRtcBaseConnection * self) { KmsWebRtcBaseConnectionClass *klass = KMS_WEBRTC_BASE_CONNECTION_CLASS (G_OBJECT_GET_CLASS (self)); if (klass->get_certificate_pem == kms_webrtc_base_connection_get_certificate_pem_default) { GST_WARNING_OBJECT (self, "%s does not reimplement 'get_certificate_pem'", G_OBJECT_CLASS_NAME (klass)); } return NULL; }
static void kms_webrtc_connection_class_init (KmsWebRtcConnectionClass * klass) { GObjectClass *gobject_class; KmsWebRtcBaseConnectionClass *base_conn_class; gobject_class = G_OBJECT_CLASS (klass); gobject_class->finalize = kms_webrtc_connection_finalize; gobject_class->set_property = kms_webrtc_connection_set_property; gobject_class->get_property = kms_webrtc_connection_get_property; base_conn_class = KMS_WEBRTC_BASE_CONNECTION_CLASS (klass); base_conn_class->get_certificate_pem = kms_webrtc_connection_get_certificate_pem; g_type_class_add_private (klass, sizeof (KmsWebRtcConnectionPrivate)); GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, GST_DEFAULT_NAME, 0, GST_DEFAULT_NAME); g_object_class_override_property (gobject_class, PROP_ADDED, "added"); g_object_class_override_property (gobject_class, PROP_CONNECTED, "connected"); g_object_class_override_property (gobject_class, PROP_IS_CLIENT, "is-client"); g_object_class_override_property (gobject_class, PROP_MAX_PORT, "max-port"); g_object_class_override_property (gobject_class, PROP_MIN_PORT, "min-port"); g_object_class_install_property (gobject_class, PROP_TRANSPORT, g_param_spec_object ("transport", "Transport", "The transport used to send and receive RTP packets.", KMS_TYPE_WEBRTC_TRANSPORT, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_RTCP_TRANSPORT, g_param_spec_object ("rtcp-transport", "RTCP Transport", "The transport used to send and receive RTCP packets.", KMS_TYPE_WEBRTC_TRANSPORT, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); }