webrtc: Add g_autoptr() support for public types
authorNiels De Graef <niels.degraef@barco.com>
Wed, 8 May 2019 13:46:26 +0000 (15:46 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 11:49:19 +0000 (12:49 +0100)
gst-libs/gst/webrtc/dtlstransport.h
gst-libs/gst/webrtc/icetransport.h
gst-libs/gst/webrtc/rtcsessiondescription.h
gst-libs/gst/webrtc/rtpreceiver.h
gst-libs/gst/webrtc/rtpsender.h
gst-libs/gst/webrtc/rtptransceiver.h

index 207328e7360ad97571a30e11e109d190a2348368..2af197567bf69cb7f63993f9d7d191893653c6dd 100644 (file)
@@ -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__ */
index 86860a2367dc3c017529b279b24641abd2e5cbed..d18c44fd97389ea9d1d65397ef3a3a7d45555e5e 100644 (file)
@@ -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__ */
index 3e0f1f4cd93b535d7a77b09aa8c54c2064bf03b5..ae6863b9eb696f601a9a6f0ab37ad042276747c9 100644 (file)
@@ -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__ */
index 99ef6298e09d6b9ad70f66906edf7cc2e9f616cc..9502c5cc3a443e51659c2e5e62a0d3911f27c038 100644 (file)
@@ -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__ */
index f1af0900bf73a160696595033b8c7e19bec1b0fc..a23551eca1f1c5d50f59c1595aec47536c93360b 100644 (file)
@@ -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__ */
index 6192314d0e3323020c179c9e16bab0d6260976d3..3c7c92a95a48fa70478bd5b99829d3ea764fe9c1 100644 (file)
@@ -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__ */