diff options
Diffstat (limited to 'gst/udp/gstudpsink.h')
-rw-r--r-- | gst/udp/gstudpsink.h | 62 |
1 files changed, 29 insertions, 33 deletions
diff --git a/gst/udp/gstudpsink.h b/gst/udp/gstudpsink.h index 9a08f7091..f49b4efe0 100644 --- a/gst/udp/gstudpsink.h +++ b/gst/udp/gstudpsink.h @@ -25,9 +25,8 @@ #include <gst/gst.h> #ifdef __cplusplus -extern "C" -{ -#endif /* __cplusplus */ +extern "C" { +#endif /* __cplusplus */ #include <stdio.h> #include <stdlib.h> @@ -55,48 +54,45 @@ extern "C" #define GST_IS_UDPSINK_CLASS(obj) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_UDPSINK)) - typedef struct _GstUDPSink GstUDPSink; - typedef struct _GstUDPSinkClass GstUDPSinkClass; +typedef struct _GstUDPSink GstUDPSink; +typedef struct _GstUDPSinkClass GstUDPSinkClass; - typedef enum - { - GST_UDPSINK_OPEN = GST_ELEMENT_FLAG_LAST, +typedef enum { + GST_UDPSINK_OPEN = GST_ELEMENT_FLAG_LAST, - GST_UDPSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2, - } GstUDPSinkFlags; + GST_UDPSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2, +} GstUDPSinkFlags; - struct _GstUDPSink - { - GstElement element; +struct _GstUDPSink { + GstElement element; - /* pads */ - GstPad *sinkpad, *srcpad; + /* pads */ + GstPad *sinkpad,*srcpad; - int sock; - struct sockaddr_in theiraddr; - struct ip_mreq multi_addr; + int sock; + struct sockaddr_in theiraddr; + struct ip_mreq multi_addr; - gint port; - Gst_UDP_Control control; - gchar *host; + gint port; + Gst_UDP_Control control; + gchar *host; + + guint mtu; + + GstClock *clock; +}; - guint mtu; +struct _GstUDPSinkClass { + GstElementClass parent_class; - GstClock *clock; - }; +}; - struct _GstUDPSinkClass - { - GstElementClass parent_class; - - }; - - GType gst_udpsink_get_type (void); +GType gst_udpsink_get_type(void); #ifdef __cplusplus } -#endif /* __cplusplus */ +#endif /* __cplusplus */ -#endif /* __GST_UDPSINK_H__ */ +#endif /* __GST_UDPSINK_H__ */ |