Commit 982f8394 authored by Russel Winder's avatar Russel Winder Committed by Sebastian Dröge

mpegts: Register a number of new boxed types to support auto generation of bindings.

parent 6bd75a5f
This diff is collapsed.
......@@ -254,6 +254,11 @@ struct _GstMpegtsSatelliteDeliverySystemDescriptor
GstMpegtsDVBCodeRate fec_inner;
};
#define GST_TYPE_MPEGTS_SATELLITE_DELIVERY_SYSTEM_DESCRIPTOR (gst_mpegts_satellite_delivery_system_descriptor_get_type())
GST_MPEGTS_API
GType gst_mpegts_satellite_delivery_system_descriptor_get_type(void);
GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_satellite_delivery_system (const GstMpegtsDescriptor *descriptor,
GstMpegtsSatelliteDeliverySystemDescriptor *res);
......@@ -295,6 +300,7 @@ GType gst_mpegts_dvb_cable_delivery_system_descriptor_get_type (void);
GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegtsDescriptor *descriptor,
GstMpegtsCableDeliverySystemDescriptor *res);
GST_MPEGTS_API
void gst_mpegts_dvb_cable_delivery_system_descriptor_free (GstMpegtsCableDeliverySystemDescriptor * source);
......@@ -372,6 +378,11 @@ struct _GstMpegtsDVBServiceListItem
GstMpegtsDVBServiceType type;
};
#define GST_TYPE_MPEGTS_DVB_SERVICE_LIST_ITEM (gst_mpegts_dvb_service_list_item_get_type ())
GST_MPEGTS_API
GType gst_mpegts_dvb_service_list_item_get_type (void);
GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_service_list (const GstMpegtsDescriptor * descriptor,
GPtrArray ** list);
......@@ -478,14 +489,29 @@ GType gst_mpegts_dvb_linkage_descriptor_get_type (void);
GST_MPEGTS_API
void gst_mpegts_dvb_linkage_descriptor_free (GstMpegtsDVBLinkageDescriptor * source);
#define GST_TYPE_MPEGTS_DVB_LINKAGE_MOBILE_HAND_OVER (gst_mpegts_dvb_linkage_mobile_hand_over_get_type())
GST_MPEGTS_API
GType gst_mpegts_dvb_linkage_mobile_hand_over_get_type (void);
GST_MPEGTS_API
const GstMpegtsDVBLinkageMobileHandOver * gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over
(const GstMpegtsDVBLinkageDescriptor * desc);
#define GST_TYPE_MPEGTS_DVB_LINKAGE_EVENT (gst_mpegts_dvb_linkage_event_get_type())
GST_MPEGTS_API
GType gst_mpegts_dvb_linkage_event_get_type (void);
GST_MPEGTS_API
const GstMpegtsDVBLinkageEvent * gst_mpegts_dvb_linkage_descriptor_get_event
(const GstMpegtsDVBLinkageDescriptor * desc);
#define GST_TYPE_MPEGTS_DVB_LINKAGE_EXTENDED_EVENT (gst_mpegts_dvb_linkage_extended_event_get_type())
GST_MPEGTS_API
GType gst_mpegts_dvb_linkage_extended_event_get_type (void);
GST_MPEGTS_API
const GPtrArray * gst_mpegts_dvb_linkage_descriptor_get_extended_event
(const GstMpegtsDVBLinkageDescriptor * desc);
......@@ -513,6 +539,11 @@ struct _GstMpegtsExtendedEventItem
gchar *item;
};
#define GST_TYPE_MPEGTS_EXTENDED_EVENT_ITEM (gst_mpegts_extended_event_item_get_type())
GST_MPEGTS_API
GType gst_mpegts_extended_event_item_get_type(void);
/**
* GstMpegtsExtendedEventDescriptor:
* @descriptor_number:
......@@ -619,6 +650,11 @@ gboolean gst_mpegts_descriptor_parse_dvb_content (const GstMpegtsDescriptor *
/* GST_MTS_DESC_DVB_PARENTAL_RATING (0x55) */
typedef struct _GstMpegtsDVBParentalRatingItem GstMpegtsDVBParentalRatingItem;
#define GST_TYPE_MPEGTS_DVB_PARENTAL_RATING_ITEM (gst_mpegts_dvb_parental_rating_item_get_type())
GST_MPEGTS_API
GType gst_mpegts_dvb_parental_rating_item_get_type (void);
/**
* GstMpegtsDVBParentalRating:
* @country_code: This 24-bit field identifies a country using the 3-character
......@@ -749,6 +785,11 @@ struct _GstMpegtsTerrestrialDeliverySystemDescriptor
gboolean other_frequency;
};
#define GST_TYPE_MPEGTS_TERRESTRIAL_DELIVERY_SYSTEM_DESCRIPTOR (gst_mpegts_terrestrial_delivery_system_descriptor_get_type())
GST_MPEGTS_API
GType gst_mpegts_terrestrial_delivery_system_descriptor_get_type(void);
GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_terrestrial_delivery_system (const GstMpegtsDescriptor
*descriptor, GstMpegtsTerrestrialDeliverySystemDescriptor * res);
......@@ -769,6 +810,11 @@ struct _GstMpegtsDvbMultilingualNetworkNameItem
gchar *network_name;
};
#define GST_TYPE_MPEGTS_DVB_MULTILINGUAL_NETWORK_NAME_ITEM (gst_mpegts_dvb_multilingual_network_name_item_get_type())
GST_MPEGTS_API
GType gst_mpegts_dvb_multilingual_network_name_item_get_type(void);
GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_network_name (const GstMpegtsDescriptor
*descriptor, GPtrArray ** network_name_items);
......@@ -789,6 +835,11 @@ struct _GstMpegtsDvbMultilingualBouquetNameItem
gchar *bouquet_name;
};
#define GST_TYPE_MPEGTS_DVB_MULTILINGUAL_BOUQUET_NAME_ITEM (gst_mpegts_dvb_multilingual_bouquet_name_item_get_type())
GST_MPEGTS_API
GType gst_mpegts_dvb_multilingual_bouquet_name_item_get_type(void);
GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name (const GstMpegtsDescriptor
*descriptor, GPtrArray ** bouquet_name_items);
......@@ -811,6 +862,11 @@ struct _GstMpegtsDvbMultilingualServiceNameItem
gchar *service_name;
};
#define GST_TYPE_MPEGTS_DVB_MULTILINGUAL_SERVICE_NAME_ITEM (gst_mpegts_dvb_multilingual_service_name_item_get_type())
GST_MPEGTS_API
GType gst_mpegts_dvb_multilingual_service_name_item_get_type(void);
GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_service_name (const GstMpegtsDescriptor
*descriptor, GPtrArray ** service_name_items);
......@@ -829,6 +885,11 @@ struct _GstMpegtsDvbMultilingualComponentItem
gchar *description;
};
#define GST_TYPE_MPEGTS_DVB_MULTILINGUAL_COMPONENT_ITEM (gst_mpegts_dvb_multilingual_component_item_get_type())
GST_MPEGTS_API
GType gst_mpegts_dvb_multilingual_component_item_get_type(void);
GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_component (const GstMpegtsDescriptor
*descriptor, guint8 * component_tag, GPtrArray ** component_description_items);
......@@ -922,6 +983,11 @@ struct _GstMpegtsT2DeliverySystemCellExtension
guint32 transposer_frequency;
};
#define GST_TYPE_MPEGTS_T2_DELIVERY_SYSTEM_CELL_EXTENSION (gst_mpegts_t2_delivery_system_cell_extension_get_type())
GST_MPEGTS_API
GType gst_mpegts_t2_delivery_system_cell_extension_get_type(void);
typedef struct _GstMpegtsT2DeliverySystemCell GstMpegtsT2DeliverySystemCell;
/**
......@@ -937,6 +1003,11 @@ struct _GstMpegtsT2DeliverySystemCell
GPtrArray *sub_cells;
};
#define GST_TYPE_MPEGTS_T2_DELIVERY_SYSTEM_CELL (gst_mpegts_t2_delivery_system_cell_get_type())
GST_MPEGTS_API
GType gst_mpegts_t2_delivery_system_cell_get_type(void);
typedef struct _GstMpegtsT2DeliverySystemDescriptor GstMpegtsT2DeliverySystemDescriptor;
/**
......
......@@ -26,6 +26,18 @@
#include "mpegts.h"
#include "gstmpegts-private.h"
#define DEFINE_STATIC_COPY_FUNCTION(type, name) \
static type * _##name##_copy (type * source) \
{ \
return g_slice_dup (type, source); \
}
#define DEFINE_STATIC_FREE_FUNCTION(type, name) \
static void _##name##_free (type * source) \
{ \
g_slice_free (type, source); \
}
/**
* SECTION:gstmpegtsdescriptor
* @title: Base MPEG-TS descriptors
......@@ -1064,6 +1076,28 @@ gst_mpegts_descriptor_from_iso_639_language (const gchar * language)
return descriptor;
}
DEFINE_STATIC_COPY_FUNCTION (GstMpegtsLogicalChannelDescriptor,
gst_mpegts_logical_channel_descriptor);
DEFINE_STATIC_FREE_FUNCTION (GstMpegtsLogicalChannelDescriptor,
gst_mpegts_logical_channel_descriptor);
G_DEFINE_BOXED_TYPE (GstMpegtsLogicalChannelDescriptor,
gst_mpegts_logical_channel_descriptor,
(GBoxedCopyFunc) _gst_mpegts_logical_channel_descriptor_copy,
(GFreeFunc) _gst_mpegts_logical_channel_descriptor_free);
DEFINE_STATIC_COPY_FUNCTION (GstMpegtsLogicalChannel,
gst_mpegts_logical_channel);
DEFINE_STATIC_FREE_FUNCTION (GstMpegtsLogicalChannel,
gst_mpegts_logical_channel);
G_DEFINE_BOXED_TYPE (GstMpegtsLogicalChannel,
gst_mpegts_logical_channel,
(GBoxedCopyFunc) _gst_mpegts_logical_channel_copy,
(GFreeFunc) _gst_mpegts_logical_channel_free);
/**
* gst_mpegts_descriptor_parse_logical_channel:
* @descriptor: a %GST_MTS_DESC_DTG_LOGICAL_CHANNEL #GstMpegtsDescriptor
......
......@@ -354,6 +354,16 @@ struct _GstMpegtsLogicalChannelDescriptor
GstMpegtsLogicalChannel channels[64];
};
#define GST_TYPE_MPEGTS_LOGICAL_CHANNEL_DESCRIPTOR (gst_mpegts_logical_channel_descriptor_get_type())
GST_MPEGTS_API
GType gst_mpegts_logical_channel_descriptor_get_type(void);
#define GST_TYPE_MPEGTS_LOGICAL_CHANNEL (gst_mpegts_logical_channel_get_type())
GST_MPEGTS_API
GType gst_mpegts_logical_channel_get_type(void);
/* FIXME : Maybe make two methods. One for getting the number of channels,
* and the other for getting the content for one channel ? */
GST_MPEGTS_API
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment