123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #ifndef __GST_RTSP_URL_H__
- #define __GST_RTSP_URL_H__
- #include <glib.h>
- #include <glib-object.h>
- #include <gst/rtsp/gstrtspdefs.h>
- #include <gst/rtsp/gstrtsptransport.h>
- G_BEGIN_DECLS
- #define GST_RTSP_DEFAULT_PORT 554
- #define GST_TYPE_RTSP_URL (gst_rtsp_url_get_type())
- typedef struct _GstRTSPUrl GstRTSPUrl;
- struct _GstRTSPUrl {
- GstRTSPLowerTrans transports;
- GstRTSPFamily family;
- gchar *user;
- gchar *passwd;
- gchar *host;
- guint16 port;
- gchar *abspath;
- gchar *query;
- };
- GType gst_rtsp_url_get_type (void);
- GstRTSPResult gst_rtsp_url_parse (const gchar *urlstr, GstRTSPUrl **url);
- GstRTSPUrl* gst_rtsp_url_copy (const GstRTSPUrl *url);
- void gst_rtsp_url_free (GstRTSPUrl *url);
- gchar* gst_rtsp_url_get_request_uri (const GstRTSPUrl *url);
- gchar** gst_rtsp_url_decode_path_components
- (const GstRTSPUrl *url);
- GstRTSPResult gst_rtsp_url_set_port (GstRTSPUrl *url, guint16 port);
- GstRTSPResult gst_rtsp_url_get_port (const GstRTSPUrl *url, guint16 *port);
- #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
- G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPUrl, gst_rtsp_url_free)
- #endif
- G_END_DECLS
- #endif
|