mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
miniobject: change to GST_DEFINE_MINI_OBJECT_TYPE
Append _TYPE to the macro for consistency with other similar macros.
This commit is contained in:
parent
f3b0d3cdbe
commit
a952de69dd
8 changed files with 9 additions and 10 deletions
|
@ -223,7 +223,7 @@ _memory_add (GstBuffer * buffer, guint idx, GstMemory * mem)
|
|||
GST_BUFFER_MEM_LEN (buffer) = len + 1;
|
||||
}
|
||||
|
||||
GST_DEFINE_MINI_OBJECT (GstBuffer, gst_buffer);
|
||||
GST_DEFINE_MINI_OBJECT_TYPE (GstBuffer, gst_buffer);
|
||||
|
||||
void
|
||||
_priv_gst_buffer_initialize (void)
|
||||
|
|
|
@ -54,7 +54,7 @@ struct _GstBufferList
|
|||
|
||||
GType _gst_buffer_list_type = 0;
|
||||
|
||||
GST_DEFINE_MINI_OBJECT (GstBufferList, gst_buffer_list);
|
||||
GST_DEFINE_MINI_OBJECT_TYPE (GstBufferList, gst_buffer_list);
|
||||
|
||||
void
|
||||
_priv_gst_buffer_list_initialize (void)
|
||||
|
|
|
@ -115,7 +115,7 @@ static gboolean gst_caps_from_string_inplace (GstCaps * caps,
|
|||
|
||||
GType _gst_caps_type = 0;
|
||||
|
||||
GST_DEFINE_MINI_OBJECT (GstCaps, gst_caps);
|
||||
GST_DEFINE_MINI_OBJECT_TYPE (GstCaps, gst_caps);
|
||||
|
||||
void
|
||||
_priv_gst_caps_initialize (void)
|
||||
|
|
|
@ -128,7 +128,7 @@ static GstEventQuarks event_quarks[] = {
|
|||
{0, NULL, 0}
|
||||
};
|
||||
|
||||
GST_DEFINE_MINI_OBJECT (GstEvent, gst_event);
|
||||
GST_DEFINE_MINI_OBJECT_TYPE (GstEvent, gst_event);
|
||||
|
||||
void
|
||||
_priv_gst_event_initialize (void)
|
||||
|
|
|
@ -108,7 +108,7 @@ static GstMessageQuarks message_quarks[] = {
|
|||
};
|
||||
|
||||
static GType _gst_message_type = 0;
|
||||
GST_DEFINE_MINI_OBJECT (GstMessage, gst_message);
|
||||
GST_DEFINE_MINI_OBJECT_TYPE (GstMessage, gst_message);
|
||||
|
||||
void
|
||||
_priv_gst_message_initialize (void)
|
||||
|
|
|
@ -215,9 +215,9 @@ gboolean gst_mini_object_replace (GstMiniObject **olddata, GstMin
|
|||
gboolean gst_mini_object_take (GstMiniObject **olddata, GstMiniObject *newdata);
|
||||
GstMiniObject * gst_mini_object_steal (GstMiniObject **olddata);
|
||||
|
||||
#define GST_DEFINE_MINI_OBJECT(TypeName,type_name) \
|
||||
G_DEFINE_BOXED_TYPE(TypeName,type_name, \
|
||||
(GBoxedCopyFunc) gst_mini_object_ref, \
|
||||
#define GST_DEFINE_MINI_OBJECT_TYPE(TypeName,type_name) \
|
||||
G_DEFINE_BOXED_TYPE(TypeName,type_name, \
|
||||
(GBoxedCopyFunc) gst_mini_object_ref, \
|
||||
(GBoxedFreeFunc)gst_mini_object_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -108,7 +108,7 @@ static GstQueryTypeDefinition standard_definitions[] = {
|
|||
{GST_QUERY_NONE, NULL, NULL, 0}
|
||||
};
|
||||
|
||||
GST_DEFINE_MINI_OBJECT (GstQuery, gst_query);
|
||||
GST_DEFINE_MINI_OBJECT_TYPE (GstQuery, gst_query);
|
||||
|
||||
void
|
||||
_priv_gst_query_initialize (void)
|
||||
|
|
|
@ -623,7 +623,6 @@ EXPORTS
|
|||
gst_mini_object_is_writable
|
||||
gst_mini_object_make_writable
|
||||
gst_mini_object_ref
|
||||
gst_mini_object_register
|
||||
gst_mini_object_replace
|
||||
gst_mini_object_steal
|
||||
gst_mini_object_take
|
||||
|
|
Loading…
Reference in a new issue