mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
webrtc: Add g_autoptr() support for public types
This commit is contained in:
parent
d2f6facbfb
commit
39c8c206be
6 changed files with 25 additions and 0 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue