We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.
gst-scte-section.h \
gstmpegtsdescriptor.h \
gst-dvb-descriptor.h \
+ mpegts-prelude.h \
mpegts.h
nodist_libgstmpegts_@GST_API_VERSION@include_HEADERS = \
glib_enum_define=GST_MPEGTS
glib_gen_prefix=gst_mpegts
glib_gen_basename=gstmpegts
-glib_gen_decl_banner=GST_EXPORT
+glib_gen_decl_banner=GST_MPEGTS_API
+glib_gen_decl_include=\#include <gst/mpegts/mpegts-prelude.h>
BUILT_SOURCES = gstmpegts-enumtypes.c gstmpegts-enumtypes.h
nodist_libgstmpegts_@GST_API_VERSION@_la_SOURCES = gstmpegts-enumtypes.c
GPtrArray *descriptors;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_vct_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_vct_source_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsAtscVCT * gst_mpegts_section_get_atsc_tvct (GstMpegtsSection * section);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsAtscVCT * gst_mpegts_section_get_atsc_cvct (GstMpegtsSection * section);
/* MGT */
GPtrArray *descriptors;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_mgt_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_mgt_table_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsAtscMGT * gst_mpegts_section_get_atsc_mgt (GstMpegtsSection * section);
/* Multiple string structure (used in ETT and EIT */
gchar *cached_string;
};
-GST_EXPORT
+GST_MPEGTS_API
const gchar * gst_mpegts_atsc_string_segment_get_string (GstMpegtsAtscStringSegment * seg);
/**
GPtrArray *segments;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_string_segment_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_mult_string_get_type (void);
/* EIT */
GPtrArray *events;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_eit_event_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_eit_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsAtscEIT *gst_mpegts_section_get_atsc_eit (GstMpegtsSection *section);
/* ETT */
GPtrArray *messages;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_ett_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsAtscETT *gst_mpegts_section_get_atsc_ett (GstMpegtsSection *section);
/* STT */
GstDateTime *utc_datetime;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_atsc_stt_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsAtscSTT * gst_mpegts_section_get_atsc_stt (GstMpegtsSection * section);
/* FIXME receive a non-const parameter but we only provide a const getter */
-GST_EXPORT
+GST_MPEGTS_API
GstDateTime * gst_mpegts_atsc_stt_get_datetime_utc (GstMpegtsAtscSTT * stt);
G_END_DECLS
#define GST_DVB_DESCRIPTOR_H
#include <gst/gst.h>
+#include <gst/mpegts/mpegts-prelude.h>
G_BEGIN_DECLS
/* GST_MTS_DESC_DVB_NETWORK_NAME (0x40) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_network_name (const GstMpegtsDescriptor *descriptor,
gchar **name);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsDescriptor *gst_mpegts_descriptor_from_dvb_network_name (const gchar * name);
/* GST_MTS_DESC_DVB_STUFFING (0x42) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_stuffing (const GstMpegtsDescriptor * descriptor,
guint8 ** stuffing_bytes);
GstMpegtsDVBCodeRate fec_inner;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_satellite_delivery_system (const GstMpegtsDescriptor *descriptor,
GstMpegtsSatelliteDeliverySystemDescriptor *res);
GstMpegtsDVBCodeRate fec_inner;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegtsDescriptor *descriptor,
GstMpegtsCableDeliverySystemDescriptor *res);
/* GST_MTS_DESC_DVB_BOUQUET_NAME (0x47) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_bouquet_name (const GstMpegtsDescriptor * descriptor,
gchar ** bouquet_name);
GST_DVB_SERVICE_RESERVED_FF
} GstMpegtsDVBServiceType;
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_service (const GstMpegtsDescriptor *descriptor,
GstMpegtsDVBServiceType *service_type,
gchar **service_name,
gchar **provider_name);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsDescriptor *gst_mpegts_descriptor_from_dvb_service (GstMpegtsDVBServiceType service_type,
const gchar * service_name,
const gchar * service_provider);
GstMpegtsDVBServiceType type;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_service_list (const GstMpegtsDescriptor * descriptor,
GPtrArray ** list);
#define GST_TYPE_MPEGTS_DVB_LINKAGE_DESCRIPTOR ( gst_mpegts_dvb_linkage_descriptor_get_type())
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_dvb_linkage_descriptor_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
void gst_mpegts_dvb_linkage_descriptor_free (GstMpegtsDVBLinkageDescriptor * source);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsDVBLinkageMobileHandOver * gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over
(const GstMpegtsDVBLinkageDescriptor * desc);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsDVBLinkageEvent * gst_mpegts_dvb_linkage_descriptor_get_event
(const GstMpegtsDVBLinkageDescriptor * desc);
-GST_EXPORT
+GST_MPEGTS_API
const GPtrArray * gst_mpegts_dvb_linkage_descriptor_get_extended_event
(const GstMpegtsDVBLinkageDescriptor * desc);
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_linkage (const GstMpegtsDescriptor * descriptor,
GstMpegtsDVBLinkageDescriptor ** res);
/* GST_MTS_DESC_DVB_SHORT_EVENT (0x4D) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_short_event (const GstMpegtsDescriptor *descriptor,
gchar **language_code,
gchar **event_name,
#define GST_TYPE_MPEGTS_EXTENDED_EVENT_DESCRIPTOR (gst_mpegts_extended_event_descriptor_get_type())
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_extended_event_descriptor_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
void gst_mpegts_extended_event_descriptor_free (GstMpegtsExtendedEventDescriptor * source);
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_extended_event (const GstMpegtsDescriptor *descriptor,
GstMpegtsExtendedEventDescriptor **res);
gchar *text;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_component_descriptor_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
void gst_mpegts_dvb_component_descriptor_free (GstMpegtsComponentDescriptor * source);
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_component (const GstMpegtsDescriptor *descriptor,
GstMpegtsComponentDescriptor **res);
/* GST_MTS_DESC_DVB_STREAM_IDENTIFIER (0x52) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_stream_identifier (const GstMpegtsDescriptor *descriptor,
guint8 *component_tag);
/* GST_MTS_DESC_DVB_CA_IDENTIFIER (0x53) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_ca_identifier (const GstMpegtsDescriptor * descriptor,
GArray ** list);
guint8 user_byte;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_content (const GstMpegtsDescriptor *
descriptor, GPtrArray ** content);
guint8 rating;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_parental_rating (const GstMpegtsDescriptor
* descriptor, GPtrArray ** rating);
HEARING_IMPAIRED_PAGE
} GstMpegtsDVBTeletextType;
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_teletext_idx (const GstMpegtsDescriptor *
descriptor, guint idx, gchar ** language_code,
GstMpegtsDVBTeletextType * teletext_type, guint8 * magazine_number,
guint8 * page_number);
-GST_EXPORT
+GST_MPEGTS_API
guint gst_mpegts_descriptor_parse_dvb_teletext_nb (const GstMpegtsDescriptor *
descriptor);
/* GST_MTS_DESC_DVB_SUBTITLING (0x59) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_subtitling_idx (const GstMpegtsDescriptor *descriptor,
guint idx, gchar ** lang,
guint8 *type, guint16 *composition_page_id,
guint16 *ancillary_page_id);
-GST_EXPORT
+GST_MPEGTS_API
guint gst_mpegts_descriptor_parse_dvb_subtitling_nb (const GstMpegtsDescriptor *descriptor);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsDescriptor * gst_mpegts_descriptor_from_dvb_subtitling (const gchar *lang,
guint8 type, guint16 composition, guint16 ancillary);
gboolean other_frequency;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_terrestrial_delivery_system (const GstMpegtsDescriptor
*descriptor, GstMpegtsTerrestrialDeliverySystemDescriptor * res);
gchar *network_name;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_network_name (const GstMpegtsDescriptor
*descriptor, GPtrArray ** network_name_items);
gchar *bouquet_name;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name (const GstMpegtsDescriptor
*descriptor, GPtrArray ** bouquet_name_items);
gchar *service_name;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_service_name (const GstMpegtsDescriptor
*descriptor, GPtrArray ** service_name_items);
gchar *description;
};
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_component (const GstMpegtsDescriptor
*descriptor, guint8 * component_tag, GPtrArray ** component_description_items);
/* GST_MTS_DESC_DVB_PRIVATE_DATA_SPECIFIER (0x5F) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_private_data_specifier (const GstMpegtsDescriptor
* descriptor, guint32 * private_data_specifier, guint8 ** private_data,
guint8 * length);
/* GST_MTS_DESC_DVB_FREQUENCY_LIST (0x62) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_frequency_list (const GstMpegtsDescriptor
* descriptor, gboolean * offset, GArray ** list);
#define GST_TYPE_MPEGTS_DVB_DATA_BROADCAST_DESCRIPTOR (gst_mpegts_dvb_data_broadcast_descriptor_get_type ())
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_dvb_data_broadcast_descriptor_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
void gst_mpegts_dvb_data_broadcast_descriptor_free (GstMpegtsDataBroadcastDescriptor * source);
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_data_broadcast (const GstMpegtsDescriptor
*descriptor, GstMpegtsDataBroadcastDescriptor ** res);
GST_MPEGTS_DVB_SCRAMBLING_MODE_ATIS_F = 0x7f,
} GstMpegtsDVBScramblingModeType;
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_scrambling (const GstMpegtsDescriptor * descriptor,
GstMpegtsDVBScramblingModeType * scrambling_mode);
/* GST_MTS_DESC_DVB_DATA_BROADCAST_ID (0x66) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_data_broadcast_id (const GstMpegtsDescriptor
* descriptor, guint16 * data_broadcast_id, guint8 ** id_selector_bytes, guint8 * len);
};
#define GST_TYPE_MPEGTS_T2_DELIVERY_SYSTEM_DESCRIPTOR (gst_mpegts_t2_delivery_system_descriptor_get_type ())
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_t2_delivery_system_descriptor_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
void gst_mpegts_t2_delivery_system_descriptor_free (GstMpegtsT2DeliverySystemDescriptor * source);
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_t2_delivery_system (const GstMpegtsDescriptor
*descriptor, GstMpegtsT2DeliverySystemDescriptor ** res);
GPtrArray *streams;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_nit_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_nit_stream_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsNIT *gst_mpegts_section_get_nit (GstMpegtsSection *section);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsSection *gst_mpegts_section_from_nit (GstMpegtsNIT *nit);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsNIT *gst_mpegts_nit_new (void);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsNITStream *gst_mpegts_nit_stream_new (void);
GPtrArray *streams;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_bat_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_bat_stream_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsBAT *gst_mpegts_section_get_bat (GstMpegtsSection *section);
/* SDT */
GPtrArray *services;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_sdt_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_sdt_service_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsSDT *gst_mpegts_section_get_sdt (GstMpegtsSection *section);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsSection *gst_mpegts_section_from_sdt (GstMpegtsSDT * sdt);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsSDT *gst_mpegts_sdt_new (void);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsSDTService *gst_mpegts_sdt_service_new (void);
/* EIT */
GPtrArray *events;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_eit_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_eit_event_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsEIT *gst_mpegts_section_get_eit (GstMpegtsSection *section);
/* TDT */
-GST_EXPORT
+GST_MPEGTS_API
GstDateTime *gst_mpegts_section_get_tdt (GstMpegtsSection *section);
/* TOT */
GPtrArray *descriptors;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_tot_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsTOT *gst_mpegts_section_get_tot (GstMpegtsSection *section);
G_END_DECLS
#define GST_MPEGTS_DESCRIPTOR_H
#include <gst/gst.h>
+#include <gst/mpegts/mpegts-prelude.h>
G_BEGIN_DECLS
typedef struct _GstMpegtsDescriptor GstMpegtsDescriptor;
#define GST_TYPE_MPEGTS_DESCRIPTOR (gst_mpegts_descriptor_get_type())
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_descriptor_get_type (void);
/**
gpointer _gst_reserved[GST_PADDING];
};
-GST_EXPORT
+GST_MPEGTS_API
void gst_mpegts_descriptor_free (GstMpegtsDescriptor *desc);
-GST_EXPORT
+GST_MPEGTS_API
GPtrArray *gst_mpegts_parse_descriptors (guint8 * buffer, gsize buf_len);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsDescriptor * gst_mpegts_find_descriptor (GPtrArray *descriptors,
guint8 tag);
/* GST_MTS_DESC_REGISTRATION (0x05) */
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsDescriptor *gst_mpegts_descriptor_from_registration (
const gchar *format_identifier,
guint8 *additional_info, gsize additional_info_length);
/* GST_MTS_DESC_CA (0x09) */
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_ca (GstMpegtsDescriptor *descriptor,
guint16 *ca_system_id,
guint16 *ca_pid,
};
#define GST_TYPE_MPEGTS_ISO_639_LANGUAGE (gst_mpegts_iso_639_language_get_type ())
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_iso_639_language_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
void gst_mpegts_iso_639_language_descriptor_free (GstMpegtsISO639LanguageDescriptor * desc);
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_iso_639_language (const GstMpegtsDescriptor *descriptor,
GstMpegtsISO639LanguageDescriptor **res);
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_iso_639_language_idx (const GstMpegtsDescriptor *descriptor,
guint idx, gchar **lang,
GstMpegtsIso639AudioType *audio_type);
-GST_EXPORT
+GST_MPEGTS_API
guint gst_mpegts_descriptor_parse_iso_639_language_nb (const GstMpegtsDescriptor *descriptor);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsDescriptor * gst_mpegts_descriptor_from_iso_639_language (const gchar * language);
/* FIXME : Maybe make two methods. One for getting the number of channels,
* and the other for getting the content for one channel ? */
-GST_EXPORT
+GST_MPEGTS_API
gboolean
gst_mpegts_descriptor_parse_logical_channel (const GstMpegtsDescriptor *descriptor,
GstMpegtsLogicalChannelDescriptor *res);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsDescriptor *
gst_mpegts_descriptor_from_custom (guint8 tag, const guint8 *data, gsize length);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsDescriptor *
gst_mpegts_descriptor_from_custom_with_extension (guint8 tag, guint8 tag_extension, const guint8 *data, gsize length);
#define GST_MPEGTS_SECTION_TYPE(section) (GST_MPEGTS_SECTION (section)->section_type)
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_section_get_type (void);
/**
gpointer _gst_reserved[GST_PADDING];
};
-GST_EXPORT
+GST_MPEGTS_API
GBytes *gst_mpegts_section_get_data (GstMpegtsSection *section);
/* PAT */
guint16 network_or_program_map_PID;
};
-GST_EXPORT
+GST_MPEGTS_API
GPtrArray *gst_mpegts_section_get_pat (GstMpegtsSection *section);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_pat_program_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GPtrArray *gst_mpegts_pat_new (void);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsPatProgram *gst_mpegts_pat_program_new (void);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsSection *gst_mpegts_section_from_pat (GPtrArray * programs,
guint16 ts_id);
/* CAT */
-GST_EXPORT
+GST_MPEGTS_API
GPtrArray *gst_mpegts_section_get_cat (GstMpegtsSection *section);
/* PMT */
GPtrArray *streams;
};
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_pmt_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GType gst_mpegts_pmt_stream_get_type (void);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsPMT *gst_mpegts_pmt_new (void);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsPMTStream *gst_mpegts_pmt_stream_new (void);
-GST_EXPORT
+GST_MPEGTS_API
const GstMpegtsPMT *gst_mpegts_section_get_pmt (GstMpegtsSection *section);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsSection *gst_mpegts_section_from_pmt (GstMpegtsPMT *pmt, guint16 pid);
/* TSDT */
-GST_EXPORT
+GST_MPEGTS_API
GPtrArray *gst_mpegts_section_get_tsdt (GstMpegtsSection *section);
#define gst_mpegts_section_ref(section) ((GstMpegtsSection*) gst_mini_object_ref (GST_MINI_OBJECT_CAST (section)))
#define gst_mpegts_section_unref(section) (gst_mini_object_unref (GST_MINI_OBJECT_CAST (section)))
-GST_EXPORT
+GST_MPEGTS_API
GstMessage *gst_message_new_mpegts_section (GstObject *parent, GstMpegtsSection *section);
-GST_EXPORT
+GST_MPEGTS_API
gboolean gst_mpegts_section_send_event (GstMpegtsSection * section, GstElement * element);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsSection *gst_event_parse_mpegts_section (GstEvent * event);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsSection *gst_message_parse_mpegts_section (GstMessage *message);
-GST_EXPORT
+GST_MPEGTS_API
GstMpegtsSection *gst_mpegts_section_new (guint16 pid,
guint8 * data,
gsize data_size);
-GST_EXPORT
+GST_MPEGTS_API
guint8 *gst_mpegts_section_packetize (GstMpegtsSection * section, gsize * output_size);
G_END_DECLS
'gst-scte-section.h',
'gstmpegtsdescriptor.h',
'gst-dvb-descriptor.h',
+ 'mpegts-prelude.h',
'mpegts.h',
]
install_headers(mpegts_headers, subdir : 'gstreamer-1.0/gst/mpegts')
--- /dev/null
+/* GStreamer MpegTS Library
+ * Copyright (C) 2018 GStreamer developers
+ *
+ * mpegts-prelude.h: prelude include header for gst-mpegts library
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __GST_MPEGTS_PRELUDE_H__
+#define __GST_MPEGTS_PRELUDE_H__
+
+#include <gst/gst.h>
+
+#ifndef GST_MPEGTS_API
+#define GST_MPEGTS_API GST_EXPORT
+#endif
+
+#endif /* __GST_MPEGTS_PRELUDE_H__ */
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
#endif
+#include <gst/mpegts/mpegts-prelude.h>
#include <gst/mpegts/gstmpegtsdescriptor.h>
#include <gst/mpegts/gst-dvb-descriptor.h>
#include <gst/mpegts/gstmpegtssection.h>
G_BEGIN_DECLS
-GST_EXPORT
+GST_MPEGTS_API
void gst_mpegts_initialize (void);
G_END_DECLS
inc = '\n'.join(['#include"%s"' % os.path.basename(i) for i in headers])
h_array = ['--fhead',
- "#ifndef __GST_MPEGTS_ENUM_TYPES_H__\n#define __GST_MPEGTS_ENUM_TYPES_H__\n\n#include <gst/gst.h>\n\nG_BEGIN_DECLS\n",
+ "#ifndef __GST_MPEGTS_ENUM_TYPES_H__\n#define __GST_MPEGTS_ENUM_TYPES_H__\n\n#include <gst/gst.h>\n#include <gst/mpegts/mpegts-prelude.h>\nG_BEGIN_DECLS\n",
'--fprod',
"\n/* enumerations from \"@filename@\" */\n",
'--vhead',
- "GST_EXPORT GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n",
+ "GST_MPEGTS_API GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n",
'--ftail',
"G_END_DECLS\n\n#endif /* __GST_MPEGTS_ENUM_TYPES_H__ */"]