mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
meta: Skip gst_meta_info_new in gir
``` gstmeta.c:500: Warning: Gst: gst_meta_info_new: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip) ``` Skip this for now Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6147>
This commit is contained in:
parent
354af30d9f
commit
157471889e
2 changed files with 52 additions and 1 deletions
|
@ -52389,6 +52389,57 @@ not allow to determine that size, @consumed is set to 0.</doc>
|
|||
</parameter>
|
||||
</parameters>
|
||||
</function>
|
||||
<function name="meta_info_new" c:identifier="gst_meta_info_new" moved-to="MetaInfo.new" version="1.24" introspectable="0">
|
||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstmeta.c">Creates a new structure that needs to be filled before being
|
||||
registered. This structure should filled and then registered with
|
||||
gst_meta_info_register().
|
||||
|
||||
Example:
|
||||
```c
|
||||
const GstMetaInfo *
|
||||
gst_my_meta_get_info (void)
|
||||
{
|
||||
static const GstMetaInfo *meta_info = NULL;
|
||||
|
||||
if (g_once_init_enter ((GstMetaInfo **) & meta_info)) {
|
||||
GstMetaInfo *info = gst_meta_info_new (
|
||||
gst_my_meta_api_get_type (),
|
||||
"GstMyMeta",
|
||||
sizeof (GstMyMeta));
|
||||
const GstMetaInfo *meta = NULL;
|
||||
|
||||
info->init_func = my_meta_init;
|
||||
info->free_func = my_meta_free;
|
||||
info->transform_func = my_meta_transform;
|
||||
info->serialize_func = my_meta_serialize;
|
||||
info->deserialize_func = my_meta_deserialize;
|
||||
meta = gst_meta_info_register (info);
|
||||
g_once_init_leave ((GstMetaInfo **) & meta_info, (GstMetaInfo *) meta);
|
||||
}
|
||||
|
||||
return meta_info;
|
||||
}
|
||||
```</doc>
|
||||
<source-position filename="../subprojects/gstreamer/gst/gstmeta.h"/>
|
||||
<return-value>
|
||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstmeta.c">a new #GstMetaInfo that needs to be filled</doc>
|
||||
<type name="MetaInfo" c:type="GstMetaInfo*"/>
|
||||
</return-value>
|
||||
<parameters>
|
||||
<parameter name="api" transfer-ownership="none">
|
||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstmeta.c">the type of the #GstMeta API</doc>
|
||||
<type name="GType" c:type="GType"/>
|
||||
</parameter>
|
||||
<parameter name="impl" transfer-ownership="none">
|
||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstmeta.c">the name of the #GstMeta implementation</doc>
|
||||
<type name="utf8" c:type="const gchar*"/>
|
||||
</parameter>
|
||||
<parameter name="size" transfer-ownership="none">
|
||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstmeta.c">the size of the #GstMeta structure</doc>
|
||||
<type name="gsize" c:type="gsize"/>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</function>
|
||||
<function name="meta_register" c:identifier="gst_meta_register" moved-to="Meta.register" introspectable="0">
|
||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstmeta.c">Register a new #GstMeta implementation.
|
||||
|
||||
|
|
|
@ -461,7 +461,7 @@ gst_meta_register (GType api, const gchar * impl, gsize size,
|
|||
}
|
||||
|
||||
/**
|
||||
* gst_meta_info_new:
|
||||
* gst_meta_info_new: (skip):
|
||||
* @api: the type of the #GstMeta API
|
||||
* @impl: the name of the #GstMeta implementation
|
||||
* @size: the size of the #GstMeta structure
|
||||
|
|
Loading…
Reference in a new issue