mpegts: make headers usable with c++ compiler
authorTim-Philipp Müller <tim@centricular.com>
Mon, 6 Jan 2014 15:01:22 +0000 (15:01 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 6 Jan 2014 15:01:22 +0000 (15:01 +0000)
Add G_BEGIN_DECLS G_END_DECLS

https://bugzilla.gnome.org/show_bug.cgi?id=671136

gst-libs/gst/mpegts/gst-atsc-section.h
gst-libs/gst/mpegts/gst-dvb-descriptor.h
gst-libs/gst/mpegts/gst-dvb-section.h
gst-libs/gst/mpegts/gst-scte-section.h
gst-libs/gst/mpegts/gstmpegts-private.h
gst-libs/gst/mpegts/gstmpegtsdescriptor.h
gst-libs/gst/mpegts/gstmpegtssection.h
gst-libs/gst/mpegts/mpegts.h

index 5d4d178..6489aca 100644 (file)
@@ -28,6 +28,8 @@
 #include <gst/mpegts/gstmpegtssection.h>
 #include <gst/mpegts/gstmpegtsdescriptor.h>
 
+G_BEGIN_DECLS
+
 /**
  * GstMpegTsSectionATSCTableID:
  *
@@ -64,4 +66,6 @@ typedef enum {
   GST_MTS_TABLE_ID_ATSC_SATELLITE_VIRTUAL_CHANNEL       = 0xDA,
 } GstMpegTsSectionATSCTableID;
 
+G_END_DECLS
+
 #endif                         /* GST_MPEGTS_SECTION_H */
index faee973..f04b162 100644 (file)
@@ -34,6 +34,8 @@
 
 #include <gst/gst.h>
 
+G_BEGIN_DECLS
+
 /**
  * GstMpegTsDVBDescriptorType:
  *
@@ -359,4 +361,6 @@ guint gst_mpegts_descriptor_parse_dvb_subtitling_nb (const GstMpegTsDescriptor *
 /* GST_MTS_DESC_DVB_AC3 (0x6a) */
 /* FIXME : Implement */
 
+G_END_DECLS
+
 #endif                         /* GST_MPEGTS_DESCRIPTOR_H */
index e0cac99..4688332 100644 (file)
@@ -28,6 +28,8 @@
 #include <gst/mpegts/gstmpegtssection.h>
 #include <gst/mpegts/gstmpegtsdescriptor.h>
 
+G_BEGIN_DECLS
+
 /**
  * GstMpegTsSectionDVBTableID:
  *
@@ -320,4 +322,6 @@ struct _GstMpegTsTOT
 GType gst_mpegts_tot_get_type (void);
 const GstMpegTsTOT *gst_mpegts_section_get_tot (GstMpegTsSection *section);
 
+G_END_DECLS
+
 #endif                         /* GST_MPEGTS_SECTION_H */
index 344ab14..66ef62f 100644 (file)
@@ -28,6 +28,7 @@
 #include <gst/mpegts/gstmpegtssection.h>
 #include <gst/mpegts/gstmpegtsdescriptor.h>
 
+G_BEGIN_DECLS
 
 /**
  * GstMpegTsScteStreamType:
@@ -96,5 +97,7 @@ typedef enum {
 
 } GstMpegTsSectionSCTETableID;
 
+G_END_DECLS
+
 #endif  /* GST_SCTE_SECTION_H */
 
index d98c92f..0940f8c 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef _GST_MPEGTS_PRIVATE_H_
 #define _GST_MPEGTS_PRIVATE_H_
 
+G_BEGIN_DECLS
+
 GST_DEBUG_CATEGORY_EXTERN (gst_mpegts_debug);
 #define GST_CAT_DEFAULT gst_mpegts_debug
 
@@ -37,4 +39,6 @@ G_GNUC_INTERNAL gpointer __common_desc_checks (GstMpegTsSection *section,
                                               GstMpegTsParseFunc parsefunc,
                                               GDestroyNotify destroynotify);
 
+G_END_DECLS
+
 #endif /* _GST_MPEGTS_PRIVATE_H_ */
index 506880a..f8efbd1 100644 (file)
@@ -34,6 +34,8 @@
 
 #include <gst/gst.h>
 
+G_BEGIN_DECLS
+
 /*
  * descriptor_tag TS  PS                      Identification
  *        0       n/a n/a Reserved
@@ -315,4 +317,6 @@ gboolean
 gst_mpegts_descriptor_parse_logical_channel (const GstMpegTsDescriptor *descriptor,
                                             GstMpegTsLogicalChannelDescriptor *res);
 
+G_END_DECLS
+
 #endif                         /* GST_MPEGTS_DESCRIPTOR_H */
index e741cab..fd4db98 100644 (file)
@@ -27,6 +27,8 @@
 #include <gst/gst.h>
 #include <gst/mpegts/gstmpegtsdescriptor.h>
 
+G_BEGIN_DECLS
+
 typedef struct _GstMpegTsSection GstMpegTsSection;
 
 #define GST_TYPE_MPEGTS_SECTION (gst_mpegts_section_get_type())
@@ -362,4 +364,6 @@ GstMpegTsSection *gst_mpegts_section_new (guint16 pid,
                                           guint8 * data,
                                           gsize data_size);
 
+G_END_DECLS
+
 #endif                         /* GST_MPEGTS_SECTION_H */
index eaabb76..f87cff7 100644 (file)
 #include <gst/mpegts/gst-scte-section.h>
 #include <gst/mpegts/gstmpegts-enumtypes.h>
 
+G_BEGIN_DECLS
+
 void gst_mpegts_initialize (void);
 
+G_END_DECLS
+
 #endif