mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
value: API: Add boxed type for GThread
This commit is contained in:
parent
2b49726d8e
commit
08e0fcd7b2
4 changed files with 29 additions and 0 deletions
|
@ -5843,6 +5843,21 @@ static const GTypeValueTable _gst_bitmask_value_table = {
|
|||
|
||||
FUNC_VALUE_GET_TYPE (bitmask, "GstBitmask");
|
||||
|
||||
GType
|
||||
gst_g_thread_get_type (void)
|
||||
{
|
||||
static volatile gsize type_id = 0;
|
||||
|
||||
if (g_once_init_enter (&type_id)) {
|
||||
GType tmp =
|
||||
g_boxed_type_register_static (g_intern_static_string ("GstGThread"),
|
||||
(GBoxedCopyFunc) g_thread_ref,
|
||||
(GBoxedFreeFunc) g_thread_unref);
|
||||
g_once_init_leave (&type_id, tmp);
|
||||
}
|
||||
|
||||
return type_id;
|
||||
}
|
||||
|
||||
void
|
||||
_priv_gst_value_initialize (void)
|
||||
|
|
|
@ -283,6 +283,16 @@ G_BEGIN_DECLS
|
|||
|
||||
#define GST_TYPE_BITMASK gst_bitmask_get_type ()
|
||||
|
||||
/**
|
||||
* GST_TYPE_G_THREAD:
|
||||
*
|
||||
* a boxed #GValue type for #GThread that represents a thread.
|
||||
*
|
||||
* Returns: the #GType of GstGThread
|
||||
*/
|
||||
|
||||
#define GST_TYPE_G_THREAD gst_g_thread_get_type ()
|
||||
|
||||
/**
|
||||
* GST_VALUE_LESS_THAN:
|
||||
*
|
||||
|
@ -380,6 +390,7 @@ GType gst_fraction_get_type (void);
|
|||
GType gst_value_list_get_type (void);
|
||||
GType gst_value_array_get_type (void);
|
||||
GType gst_bitmask_get_type (void);
|
||||
GType gst_g_thread_get_type (void);
|
||||
|
||||
GType gst_date_time_get_type (void);
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ EXPORTS
|
|||
gst_base_sink_get_blocksize
|
||||
gst_base_sink_get_last_sample
|
||||
gst_base_sink_get_latency
|
||||
gst_base_sink_get_max_bitrate
|
||||
gst_base_sink_get_max_lateness
|
||||
gst_base_sink_get_render_delay
|
||||
gst_base_sink_get_sync
|
||||
|
@ -51,6 +52,7 @@ EXPORTS
|
|||
gst_base_sink_set_async_enabled
|
||||
gst_base_sink_set_blocksize
|
||||
gst_base_sink_set_last_sample_enabled
|
||||
gst_base_sink_set_max_bitrate
|
||||
gst_base_sink_set_max_lateness
|
||||
gst_base_sink_set_qos_enabled
|
||||
gst_base_sink_set_render_delay
|
||||
|
|
|
@ -489,6 +489,7 @@ EXPORTS
|
|||
gst_formats_contains
|
||||
gst_fraction_get_type
|
||||
gst_fraction_range_get_type
|
||||
gst_g_thread_get_type
|
||||
gst_ghost_pad_activate_mode_default
|
||||
gst_ghost_pad_construct
|
||||
gst_ghost_pad_get_target
|
||||
|
|
Loading…
Reference in a new issue