diff --git a/gst-libs/gst/webrtc/dtlstransport.c b/gst-libs/gst/webrtc/dtlstransport.c index bba2e3528b..e1275554c2 100644 --- a/gst-libs/gst/webrtc/dtlstransport.c +++ b/gst-libs/gst/webrtc/dtlstransport.c @@ -32,6 +32,8 @@ #include "dtlstransport.h" +#include "webrtc-priv.h" + #define GST_CAT_DEFAULT gst_webrtc_dtls_transport_debug GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT); diff --git a/gst-libs/gst/webrtc/dtlstransport.h b/gst-libs/gst/webrtc/dtlstransport.h index 72a8ee98f3..0198619566 100644 --- a/gst-libs/gst/webrtc/dtlstransport.h +++ b/gst-libs/gst/webrtc/dtlstransport.h @@ -35,38 +35,6 @@ GType gst_webrtc_dtls_transport_get_type(void); #define GST_IS_WEBRTC_DTLS_TRANSPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) ,GST_TYPE_WEBRTC_DTLS_TRANSPORT)) #define GST_WEBRTC_DTLS_TRANSPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_WEBRTC_DTLS_TRANSPORT,GstWebRTCDTLSTransportClass)) -/** - * GstWebRTCDTLSTransport: - */ -struct _GstWebRTCDTLSTransport -{ - GstObject parent; - - GstWebRTCICETransport *transport; - GstWebRTCDTLSTransportState state; - - gboolean client; - guint session_id; - GstElement *dtlssrtpenc; - GstElement *dtlssrtpdec; - - gpointer _padding[GST_PADDING]; -}; - -struct _GstWebRTCDTLSTransportClass -{ - GstObjectClass parent_class; - - gpointer _padding[GST_PADDING]; -}; - -GST_WEBRTC_API -GstWebRTCDTLSTransport * gst_webrtc_dtls_transport_new (guint session_id); - -GST_WEBRTC_API -void gst_webrtc_dtls_transport_set_transport (GstWebRTCDTLSTransport * transport, - GstWebRTCICETransport * ice); - G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCDTLSTransport, gst_object_unref) G_END_DECLS diff --git a/gst-libs/gst/webrtc/webrtc-priv.h b/gst-libs/gst/webrtc/webrtc-priv.h index 7a23827c5c..3e9bf38160 100644 --- a/gst-libs/gst/webrtc/webrtc-priv.h +++ b/gst-libs/gst/webrtc/webrtc-priv.h @@ -199,6 +199,38 @@ void gst_webrtc_ice_transport_selected_pair_change (GstWebRTCIC GST_WEBRTC_API void gst_webrtc_ice_transport_new_candidate (GstWebRTCICETransport * ice, guint stream_id, GstWebRTCICEComponent component, gchar * attr); +/** + * GstWebRTCDTLSTransport: + */ +struct _GstWebRTCDTLSTransport +{ + GstObject parent; + + GstWebRTCICETransport *transport; + GstWebRTCDTLSTransportState state; + + gboolean client; + guint session_id; + GstElement *dtlssrtpenc; + GstElement *dtlssrtpdec; + + gpointer _padding[GST_PADDING]; +}; + +struct _GstWebRTCDTLSTransportClass +{ + GstObjectClass parent_class; + + gpointer _padding[GST_PADDING]; +}; + +GST_WEBRTC_API +GstWebRTCDTLSTransport * gst_webrtc_dtls_transport_new (guint session_id); + +GST_WEBRTC_API +void gst_webrtc_dtls_transport_set_transport (GstWebRTCDTLSTransport * transport, + GstWebRTCICETransport * ice); + G_END_DECLS