Commit 39c8c206 authored by Niels De Graef's avatar Niels De Graef

webrtc: Add g_autoptr() support for public types

parent d2f6facb
Pipeline #35748 passed with stages
in 35 minutes and 27 seconds
......@@ -65,6 +65,10 @@ GST_WEBRTC_API
void gst_webrtc_dtls_transport_set_transport (GstWebRTCDTLSTransport * transport,
GstWebRTCICETransport * ice);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCDTLSTransport, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_WEBRTC_DTLS_TRANSPORT_H__ */
......@@ -71,6 +71,10 @@ 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);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCICETransport, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_WEBRTC_ICE_TRANSPORT_H__ */
......@@ -53,6 +53,11 @@ GstWebRTCSessionDescription * gst_webrtc_session_description_copy (con
GST_WEBRTC_API
void gst_webrtc_session_description_free (GstWebRTCSessionDescription * desc);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCSessionDescription, gst_webrtc_session_description_free)
#endif
G_END_DECLS
#endif /* __GST_WEBRTC_PEERCONNECTION_H__ */
......@@ -62,6 +62,10 @@ GST_WEBRTC_API
void gst_webrtc_rtp_receiver_set_rtcp_transport (GstWebRTCRTPReceiver * receiver,
GstWebRTCDTLSTransport * transport);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCRTPReceiver, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_WEBRTC_RTP_RECEIVER_H__ */
......@@ -66,6 +66,10 @@ void gst_webrtc_rtp_sender_set_rtcp_transport (GstWebR
GstWebRTCDTLSTransport * transport);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCRTPSender, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_WEBRTC_RTP_SENDER_H__ */
......@@ -61,6 +61,10 @@ struct _GstWebRTCRTPTransceiverClass
gpointer _padding[GST_PADDING];
};
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCRTPTransceiver, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_WEBRTC_RTP_TRANSCEIVER_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment