mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
rtsp-server: Add g_autoptr() support to all types
https://bugzilla.gnome.org/show_bug.cgi?id=754464
This commit is contained in:
parent
f96947b350
commit
0ea68a1b0f
16 changed files with 72 additions and 0 deletions
|
@ -177,6 +177,14 @@ GstRTSPAddressPoolResult gst_rtsp_address_pool_reserve_address (GstRTSPAddressP
|
||||||
|
|
||||||
gboolean gst_rtsp_address_pool_has_unicast_addresses (GstRTSPAddressPool * pool);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_ADDRESS_POOL_H__ */
|
#endif /* __GST_RTSP_ADDRESS_POOL_H__ */
|
||||||
|
|
|
@ -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"
|
#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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_AUTH_H__ */
|
#endif /* __GST_RTSP_AUTH_H__ */
|
||||||
|
|
|
@ -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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_CLIENT_H__ */
|
#endif /* __GST_RTSP_CLIENT_H__ */
|
||||||
|
|
|
@ -75,6 +75,10 @@ void gst_rtsp_media_factory_uri_set_uri (GstRTSPMediaFactoryUR
|
||||||
const gchar *uri);
|
const gchar *uri);
|
||||||
gchar * gst_rtsp_media_factory_uri_get_uri (GstRTSPMediaFactoryURI *factory);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_MEDIA_FACTORY_URI_H__ */
|
#endif /* __GST_RTSP_MEDIA_FACTORY_URI_H__ */
|
||||||
|
|
|
@ -164,6 +164,10 @@ GstRTSPMedia * gst_rtsp_media_factory_construct (GstRTSPMediaFacto
|
||||||
GstElement * gst_rtsp_media_factory_create_element (GstRTSPMediaFactory *factory,
|
GstElement * gst_rtsp_media_factory_create_element (GstRTSPMediaFactory *factory,
|
||||||
const GstRTSPUrl *url);
|
const GstRTSPUrl *url);
|
||||||
|
|
||||||
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPMediaFactory, gst_object_unref)
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_MEDIA_FACTORY_H__ */
|
#endif /* __GST_RTSP_MEDIA_FACTORY_H__ */
|
||||||
|
|
|
@ -258,6 +258,10 @@ gboolean gst_rtsp_media_set_state (GstRTSPMedia *media, GstS
|
||||||
void gst_rtsp_media_set_pipeline_state (GstRTSPMedia * media,
|
void gst_rtsp_media_set_pipeline_state (GstRTSPMedia * media,
|
||||||
GstState state);
|
GstState state);
|
||||||
|
|
||||||
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPMedia, gst_object_unref)
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_MEDIA_H__ */
|
#endif /* __GST_RTSP_MEDIA_H__ */
|
||||||
|
|
|
@ -86,6 +86,10 @@ void gst_rtsp_mount_points_add_factory (GstRTSPMountPoints *
|
||||||
void gst_rtsp_mount_points_remove_factory (GstRTSPMountPoints *mounts,
|
void gst_rtsp_mount_points_remove_factory (GstRTSPMountPoints *mounts,
|
||||||
const gchar *path);
|
const gchar *path);
|
||||||
|
|
||||||
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPMountPoints, gst_object_unref)
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_MOUNT_POINTS_H__ */
|
#endif /* __GST_RTSP_MOUNT_POINTS_H__ */
|
||||||
|
|
|
@ -96,6 +96,10 @@ const GstStructure * gst_rtsp_permissions_get_role (GstRTSPPermissions *
|
||||||
gboolean gst_rtsp_permissions_is_allowed (GstRTSPPermissions *permissions,
|
gboolean gst_rtsp_permissions_is_allowed (GstRTSPPermissions *permissions,
|
||||||
const gchar *role, const gchar *permission);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_PERMISSIONS_H__ */
|
#endif /* __GST_RTSP_PERMISSIONS_H__ */
|
||||||
|
|
|
@ -164,6 +164,10 @@ GList * gst_rtsp_server_client_filter (GstRTSPServer *server,
|
||||||
GstRTSPServerClientFilterFunc func,
|
GstRTSPServerClientFilterFunc func,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPServer, gst_object_unref)
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_SERVER_H__ */
|
#endif /* __GST_RTSP_SERVER_H__ */
|
||||||
|
|
|
@ -92,6 +92,10 @@ gboolean gst_rtsp_session_media_alloc_channels (GstRTSPSessionMe
|
||||||
|
|
||||||
gchar * gst_rtsp_session_media_get_rtpinfo (GstRTSPSessionMedia * media);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_SESSION_MEDIA_H__ */
|
#endif /* __GST_RTSP_SESSION_MEDIA_H__ */
|
||||||
|
|
|
@ -138,6 +138,10 @@ GList * gst_rtsp_session_pool_filter (GstRTSPSessionPoo
|
||||||
guint gst_rtsp_session_pool_cleanup (GstRTSPSessionPool *pool);
|
guint gst_rtsp_session_pool_cleanup (GstRTSPSessionPool *pool);
|
||||||
GSource * gst_rtsp_session_pool_create_watch (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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_SESSION_POOL_H__ */
|
#endif /* __GST_RTSP_SESSION_POOL_H__ */
|
||||||
|
|
|
@ -142,6 +142,10 @@ GList * gst_rtsp_session_filter (GstRTSPSession *sess,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPSession, gst_object_unref)
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_SESSION_H__ */
|
#endif /* __GST_RTSP_SESSION_H__ */
|
||||||
|
|
|
@ -131,6 +131,10 @@ gboolean gst_rtsp_stream_transport_send_rtcp (GstRTSPStreamT
|
||||||
GstFlowReturn gst_rtsp_stream_transport_recv_data (GstRTSPStreamTransport *trans,
|
GstFlowReturn gst_rtsp_stream_transport_recv_data (GstRTSPStreamTransport *trans,
|
||||||
guint channel, GstBuffer *buffer);
|
guint channel, GstBuffer *buffer);
|
||||||
|
|
||||||
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPStreamTransport, gst_object_unref)
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_STREAM_TRANSPORT_H__ */
|
#endif /* __GST_RTSP_STREAM_TRANSPORT_H__ */
|
||||||
|
|
|
@ -193,6 +193,10 @@ GList * gst_rtsp_stream_transport_filter (GstRTSPStream *stream,
|
||||||
GstRTSPStreamTransportFilterFunc func,
|
GstRTSPStreamTransportFilterFunc func,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPStream, gst_object_unref)
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_STREAM_H__ */
|
#endif /* __GST_RTSP_STREAM_H__ */
|
||||||
|
|
|
@ -174,6 +174,14 @@ GstRTSPThread * gst_rtsp_thread_pool_get_thread (GstRTSPThreadPool *poo
|
||||||
GstRTSPThreadType type,
|
GstRTSPThreadType type,
|
||||||
GstRTSPContext *ctx);
|
GstRTSPContext *ctx);
|
||||||
void gst_rtsp_thread_pool_cleanup (void);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_THREAD_POOL_H__ */
|
#endif /* __GST_RTSP_THREAD_POOL_H__ */
|
||||||
|
|
|
@ -92,6 +92,10 @@ const gchar * gst_rtsp_token_get_string (GstRTSPToken *token,
|
||||||
const gchar *field);
|
const gchar *field);
|
||||||
gboolean gst_rtsp_token_is_allowed (GstRTSPToken *token,
|
gboolean gst_rtsp_token_is_allowed (GstRTSPToken *token,
|
||||||
const gchar *field);
|
const gchar *field);
|
||||||
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPToken, gst_rtsp_token_unref)
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_RTSP_TOKEN_H__ */
|
#endif /* __GST_RTSP_TOKEN_H__ */
|
||||||
|
|
Loading…
Reference in a new issue