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 ...@@ -254,6 +254,11 @@ struct _GstMpegtsSatelliteDeliverySystemDescriptor
GstMpegtsDVBCodeRate fec_inner; 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 GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_satellite_delivery_system (const GstMpegtsDescriptor *descriptor, gboolean gst_mpegts_descriptor_parse_satellite_delivery_system (const GstMpegtsDescriptor *descriptor,
GstMpegtsSatelliteDeliverySystemDescriptor *res); GstMpegtsSatelliteDeliverySystemDescriptor *res);
...@@ -295,6 +300,7 @@ GType gst_mpegts_dvb_cable_delivery_system_descriptor_get_type (void); ...@@ -295,6 +300,7 @@ GType gst_mpegts_dvb_cable_delivery_system_descriptor_get_type (void);
GST_MPEGTS_API GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegtsDescriptor *descriptor, gboolean gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegtsDescriptor *descriptor,
GstMpegtsCableDeliverySystemDescriptor *res); GstMpegtsCableDeliverySystemDescriptor *res);
GST_MPEGTS_API GST_MPEGTS_API
void gst_mpegts_dvb_cable_delivery_system_descriptor_free (GstMpegtsCableDeliverySystemDescriptor * source); void gst_mpegts_dvb_cable_delivery_system_descriptor_free (GstMpegtsCableDeliverySystemDescriptor * source);
...@@ -372,6 +378,11 @@ struct _GstMpegtsDVBServiceListItem ...@@ -372,6 +378,11 @@ struct _GstMpegtsDVBServiceListItem
GstMpegtsDVBServiceType type; 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 GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_service_list (const GstMpegtsDescriptor * descriptor, gboolean gst_mpegts_descriptor_parse_dvb_service_list (const GstMpegtsDescriptor * descriptor,
GPtrArray ** list); GPtrArray ** list);
...@@ -478,14 +489,29 @@ GType gst_mpegts_dvb_linkage_descriptor_get_type (void); ...@@ -478,14 +489,29 @@ GType gst_mpegts_dvb_linkage_descriptor_get_type (void);
GST_MPEGTS_API GST_MPEGTS_API
void gst_mpegts_dvb_linkage_descriptor_free (GstMpegtsDVBLinkageDescriptor * source); 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 GST_MPEGTS_API
const GstMpegtsDVBLinkageMobileHandOver * gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over const GstMpegtsDVBLinkageMobileHandOver * gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over
(const GstMpegtsDVBLinkageDescriptor * desc); (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 GST_MPEGTS_API
const GstMpegtsDVBLinkageEvent * gst_mpegts_dvb_linkage_descriptor_get_event const GstMpegtsDVBLinkageEvent * gst_mpegts_dvb_linkage_descriptor_get_event
(const GstMpegtsDVBLinkageDescriptor * desc); (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 GST_MPEGTS_API
const GPtrArray * gst_mpegts_dvb_linkage_descriptor_get_extended_event const GPtrArray * gst_mpegts_dvb_linkage_descriptor_get_extended_event
(const GstMpegtsDVBLinkageDescriptor * desc); (const GstMpegtsDVBLinkageDescriptor * desc);
...@@ -513,6 +539,11 @@ struct _GstMpegtsExtendedEventItem ...@@ -513,6 +539,11 @@ struct _GstMpegtsExtendedEventItem
gchar *item; 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: * GstMpegtsExtendedEventDescriptor:
* @descriptor_number: * @descriptor_number:
...@@ -619,6 +650,11 @@ gboolean gst_mpegts_descriptor_parse_dvb_content (const GstMpegtsDescriptor * ...@@ -619,6 +650,11 @@ gboolean gst_mpegts_descriptor_parse_dvb_content (const GstMpegtsDescriptor *
/* GST_MTS_DESC_DVB_PARENTAL_RATING (0x55) */ /* GST_MTS_DESC_DVB_PARENTAL_RATING (0x55) */
typedef struct _GstMpegtsDVBParentalRatingItem GstMpegtsDVBParentalRatingItem; 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: * GstMpegtsDVBParentalRating:
* @country_code: This 24-bit field identifies a country using the 3-character * @country_code: This 24-bit field identifies a country using the 3-character
...@@ -749,6 +785,11 @@ struct _GstMpegtsTerrestrialDeliverySystemDescriptor ...@@ -749,6 +785,11 @@ struct _GstMpegtsTerrestrialDeliverySystemDescriptor
gboolean other_frequency; 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 GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_terrestrial_delivery_system (const GstMpegtsDescriptor gboolean gst_mpegts_descriptor_parse_terrestrial_delivery_system (const GstMpegtsDescriptor
*descriptor, GstMpegtsTerrestrialDeliverySystemDescriptor * res); *descriptor, GstMpegtsTerrestrialDeliverySystemDescriptor * res);
...@@ -769,6 +810,11 @@ struct _GstMpegtsDvbMultilingualNetworkNameItem ...@@ -769,6 +810,11 @@ struct _GstMpegtsDvbMultilingualNetworkNameItem
gchar *network_name; 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 GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_network_name (const GstMpegtsDescriptor gboolean gst_mpegts_descriptor_parse_dvb_multilingual_network_name (const GstMpegtsDescriptor
*descriptor, GPtrArray ** network_name_items); *descriptor, GPtrArray ** network_name_items);
...@@ -789,6 +835,11 @@ struct _GstMpegtsDvbMultilingualBouquetNameItem ...@@ -789,6 +835,11 @@ struct _GstMpegtsDvbMultilingualBouquetNameItem
gchar *bouquet_name; 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 GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name (const GstMpegtsDescriptor gboolean gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name (const GstMpegtsDescriptor
*descriptor, GPtrArray ** bouquet_name_items); *descriptor, GPtrArray ** bouquet_name_items);
...@@ -811,6 +862,11 @@ struct _GstMpegtsDvbMultilingualServiceNameItem ...@@ -811,6 +862,11 @@ struct _GstMpegtsDvbMultilingualServiceNameItem
gchar *service_name; 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 GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_service_name (const GstMpegtsDescriptor gboolean gst_mpegts_descriptor_parse_dvb_multilingual_service_name (const GstMpegtsDescriptor
*descriptor, GPtrArray ** service_name_items); *descriptor, GPtrArray ** service_name_items);
...@@ -829,6 +885,11 @@ struct _GstMpegtsDvbMultilingualComponentItem ...@@ -829,6 +885,11 @@ struct _GstMpegtsDvbMultilingualComponentItem
gchar *description; 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 GST_MPEGTS_API
gboolean gst_mpegts_descriptor_parse_dvb_multilingual_component (const GstMpegtsDescriptor gboolean gst_mpegts_descriptor_parse_dvb_multilingual_component (const GstMpegtsDescriptor
*descriptor, guint8 * component_tag, GPtrArray ** component_description_items); *descriptor, guint8 * component_tag, GPtrArray ** component_description_items);
...@@ -922,6 +983,11 @@ struct _GstMpegtsT2DeliverySystemCellExtension ...@@ -922,6 +983,11 @@ struct _GstMpegtsT2DeliverySystemCellExtension
guint32 transposer_frequency; 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; typedef struct _GstMpegtsT2DeliverySystemCell GstMpegtsT2DeliverySystemCell;
/** /**
...@@ -937,6 +1003,11 @@ struct _GstMpegtsT2DeliverySystemCell ...@@ -937,6 +1003,11 @@ struct _GstMpegtsT2DeliverySystemCell
GPtrArray *sub_cells; 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; typedef struct _GstMpegtsT2DeliverySystemDescriptor GstMpegtsT2DeliverySystemDescriptor;
/** /**
......
...@@ -26,6 +26,18 @@ ...@@ -26,6 +26,18 @@
#include "mpegts.h" #include "mpegts.h"
#include "gstmpegts-private.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 * SECTION:gstmpegtsdescriptor
* @title: Base MPEG-TS descriptors * @title: Base MPEG-TS descriptors
...@@ -1064,6 +1076,28 @@ gst_mpegts_descriptor_from_iso_639_language (const gchar * language) ...@@ -1064,6 +1076,28 @@ gst_mpegts_descriptor_from_iso_639_language (const gchar * language)
return descriptor; 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: * gst_mpegts_descriptor_parse_logical_channel:
* @descriptor: a %GST_MTS_DESC_DTG_LOGICAL_CHANNEL #GstMpegtsDescriptor * @descriptor: a %GST_MTS_DESC_DTG_LOGICAL_CHANNEL #GstMpegtsDescriptor
......
...@@ -354,6 +354,16 @@ struct _GstMpegtsLogicalChannelDescriptor ...@@ -354,6 +354,16 @@ struct _GstMpegtsLogicalChannelDescriptor
GstMpegtsLogicalChannel channels[64]; 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, /* FIXME : Maybe make two methods. One for getting the number of channels,
* and the other for getting the content for one channel ? */ * and the other for getting the content for one channel ? */
GST_MPEGTS_API 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