rtsp-server: Add g_autoptr() support to all types

https://bugzilla.gnome.org/show_bug.cgi?id=754464
This commit is contained in:
Xavier Claessens 2015-11-10 14:17:18 -05:00 committed by Nicolas Dufresne
parent f96947b350
commit 0ea68a1b0f
16 changed files with 72 additions and 0 deletions

View file

@ -177,6 +177,14 @@ GstRTSPAddressPoolResult gst_rtsp_address_pool_reserve_address (GstRTSPAddressP
gboolean gst_rtsp_address_pool_has_unicast_addresses (GstRTSPAddressPool * pool);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPAddress, gst_rtsp_address_free)
#endif
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPAddressPool, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_ADDRESS_POOL_H__ */

View file

@ -178,6 +178,10 @@ gchar * gst_rtsp_auth_make_basic (const gchar * user, const g
*/
#define GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT "media.factory.construct"
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPAuth, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_AUTH_H__ */

View file

@ -197,6 +197,10 @@ GList * gst_rtsp_client_session_filter (GstRTSPClient *client,
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPClient, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_CLIENT_H__ */

View file

@ -75,6 +75,10 @@ void gst_rtsp_media_factory_uri_set_uri (GstRTSPMediaFactoryUR
const gchar *uri);
gchar * gst_rtsp_media_factory_uri_get_uri (GstRTSPMediaFactoryURI *factory);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPMediaFactoryURI, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_MEDIA_FACTORY_URI_H__ */

View file

@ -164,6 +164,10 @@ GstRTSPMedia * gst_rtsp_media_factory_construct (GstRTSPMediaFacto
GstElement * gst_rtsp_media_factory_create_element (GstRTSPMediaFactory *factory,
const GstRTSPUrl *url);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPMediaFactory, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_MEDIA_FACTORY_H__ */

View file

@ -258,6 +258,10 @@ gboolean gst_rtsp_media_set_state (GstRTSPMedia *media, GstS
void gst_rtsp_media_set_pipeline_state (GstRTSPMedia * media,
GstState state);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPMedia, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_MEDIA_H__ */

View file

@ -86,6 +86,10 @@ void gst_rtsp_mount_points_add_factory (GstRTSPMountPoints *
void gst_rtsp_mount_points_remove_factory (GstRTSPMountPoints *mounts,
const gchar *path);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPMountPoints, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_MOUNT_POINTS_H__ */

View file

@ -96,6 +96,10 @@ const GstStructure * gst_rtsp_permissions_get_role (GstRTSPPermissions *
gboolean gst_rtsp_permissions_is_allowed (GstRTSPPermissions *permissions,
const gchar *role, const gchar *permission);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPPermissions, gst_rtsp_permissions_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_PERMISSIONS_H__ */

View file

@ -164,6 +164,10 @@ GList * gst_rtsp_server_client_filter (GstRTSPServer *server,
GstRTSPServerClientFilterFunc func,
gpointer user_data);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPServer, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_SERVER_H__ */

View file

@ -92,6 +92,10 @@ gboolean gst_rtsp_session_media_alloc_channels (GstRTSPSessionMe
gchar * gst_rtsp_session_media_get_rtpinfo (GstRTSPSessionMedia * media);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPSessionMedia, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_SESSION_MEDIA_H__ */

View file

@ -138,6 +138,10 @@ GList * gst_rtsp_session_pool_filter (GstRTSPSessionPoo
guint gst_rtsp_session_pool_cleanup (GstRTSPSessionPool *pool);
GSource * gst_rtsp_session_pool_create_watch (GstRTSPSessionPool *pool);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPSessionPool, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_SESSION_POOL_H__ */

View file

@ -142,6 +142,10 @@ GList * gst_rtsp_session_filter (GstRTSPSession *sess,
gpointer user_data);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPSession, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_SESSION_H__ */

View file

@ -131,6 +131,10 @@ gboolean gst_rtsp_stream_transport_send_rtcp (GstRTSPStreamT
GstFlowReturn gst_rtsp_stream_transport_recv_data (GstRTSPStreamTransport *trans,
guint channel, GstBuffer *buffer);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPStreamTransport, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_STREAM_TRANSPORT_H__ */

View file

@ -193,6 +193,10 @@ GList * gst_rtsp_stream_transport_filter (GstRTSPStream *stream,
GstRTSPStreamTransportFilterFunc func,
gpointer user_data);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPStream, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_STREAM_H__ */

View file

@ -174,6 +174,14 @@ GstRTSPThread * gst_rtsp_thread_pool_get_thread (GstRTSPThreadPool *poo
GstRTSPThreadType type,
GstRTSPContext *ctx);
void gst_rtsp_thread_pool_cleanup (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPThread, gst_rtsp_thread_unref)
#endif
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPThreadPool, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_THREAD_POOL_H__ */

View file

@ -92,6 +92,10 @@ const gchar * gst_rtsp_token_get_string (GstRTSPToken *token,
const gchar *field);
gboolean gst_rtsp_token_is_allowed (GstRTSPToken *token,
const gchar *field);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPToken, gst_rtsp_token_unref)
#endif
G_END_DECLS
#endif /* __GST_RTSP_TOKEN_H__ */