mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
webrtc lib: Make the DTLSTransport struct private
This will prevent any unsafe access. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2241>
This commit is contained in:
parent
a0813c5bd2
commit
dd2da6f2b4
3 changed files with 34 additions and 32 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue