summaryrefslogtreecommitdiffstats
path: root/gst/udp/gstudpsrc.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
commit5d25c00e4b613b9cdf2c04fa3a68dffa03834a68 (patch)
tree74a5b1eaf3a324b520e64e87404fd0b3018a7829 /gst/udp/gstudpsrc.h
parent1e83b097f7b732ae49e294a5a398bdc3e88854a8 (diff)
gst-indent
Original commit message from CVS: gst-indent
Diffstat (limited to 'gst/udp/gstudpsrc.h')
-rw-r--r--gst/udp/gstudpsrc.h60
1 files changed, 32 insertions, 28 deletions
diff --git a/gst/udp/gstudpsrc.h b/gst/udp/gstudpsrc.h
index f16673df..bb4273e7 100644
--- a/gst/udp/gstudpsrc.h
+++ b/gst/udp/gstudpsrc.h
@@ -24,8 +24,9 @@
#include <gst/gst.h>
#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+extern "C"
+{
+#endif /* __cplusplus */
#include <errno.h>
#include <string.h>
@@ -49,44 +50,47 @@ extern "C" {
#define GST_IS_UDPSRC_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_UDPSRC))
-typedef struct _GstUDPSrc GstUDPSrc;
-typedef struct _GstUDPSrcClass GstUDPSrcClass;
+ typedef struct _GstUDPSrc GstUDPSrc;
+ typedef struct _GstUDPSrcClass GstUDPSrcClass;
-typedef enum {
- GST_UDPSRC_OPEN = GST_ELEMENT_FLAG_LAST,
+ typedef enum
+ {
+ GST_UDPSRC_OPEN = GST_ELEMENT_FLAG_LAST,
- GST_UDPSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
-} GstUDPSrcFlags;
+ GST_UDPSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
+ } GstUDPSrcFlags;
-struct _GstUDPSrc {
- GstElement element;
+ struct _GstUDPSrc
+ {
+ GstElement element;
- /* pads */
- GstPad *sinkpad,*srcpad;
+ /* pads */
+ GstPad *sinkpad, *srcpad;
- int port;
- int sock;
- int control_sock;
- Gst_UDP_Control control;
- gchar *multi_group;
+ int port;
+ int sock;
+ int control_sock;
+ Gst_UDP_Control control;
+ gchar *multi_group;
- struct sockaddr_in myaddr;
- struct ip_mreq multi_addr;
- GstClock *clock;
+ struct sockaddr_in myaddr;
+ struct ip_mreq multi_addr;
+ GstClock *clock;
- gboolean first_buf;
-};
+ gboolean first_buf;
+ };
-struct _GstUDPSrcClass {
- GstElementClass parent_class;
-};
+ struct _GstUDPSrcClass
+ {
+ GstElementClass parent_class;
+ };
-GType gst_udpsrc_get_type(void);
+ GType gst_udpsrc_get_type (void);
#ifdef __cplusplus
}
-#endif /* __cplusplus */
+#endif /* __cplusplus */
-#endif /* __GST_UDPSRC_H__ */
+#endif /* __GST_UDPSRC_H__ */