1 /* 2 * gstmms.h: header file for gst-mms plugin 3 */ 4 5 #ifndef __GST_MMS_H__ 6 #define __GST_MMS_H__ 7 8 #include <gst/gst.h> 9 #include <libmms/mmsx.h> 10 #include <gst/base/gstpushsrc.h> 11 12 G_BEGIN_DECLS 13 14 /* #define's don't like whitespacey bits */ 15 #define GST_TYPE_MMS \ 16 (gst_mms_get_type()) 17 #define GST_MMS(obj) \ 18 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MMS,GstMMS)) 19 #define GST_MMS_CLASS(klass) \ 20 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MMS,GstMMSClass)) 21 #define GST_IS_MMS(obj) \ 22 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MMS)) 23 #define GST_IS_MMS_CLASS(klass) \ 24 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MMS)) 25 26 typedef struct _GstMMS GstMMS; 27 typedef struct _GstMMSClass GstMMSClass; 28 29 struct _GstMMS 30 { 31 GstPushSrc parent; 32 33 gchar *uri_name; 34 gchar *current_connection_uri_name; 35 guint64 connection_speed; 36 37 mmsx_t *connection; 38 }; 39 40 struct _GstMMSClass 41 { 42 GstPushSrcClass parent_class; 43 }; 44 45 GType gst_mms_get_type (void); 46 47 G_END_DECLS 48 49 #endif /* __GST_MMS_H__ */ 50