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:
Edward Hervey 2024-02-20 08:54:11 +01:00 committed by GStreamer Marge Bot
parent 354af30d9f
commit 157471889e
2 changed files with 52 additions and 1 deletions

View file

@ -52389,6 +52389,57 @@ not allow to determine that size, @consumed is set to 0.</doc>
</parameter> </parameter>
</parameters> </parameters>
</function> </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 **) &amp; meta_info)) {
GstMetaInfo *info = gst_meta_info_new (
gst_my_meta_api_get_type (),
"GstMyMeta",
sizeof (GstMyMeta));
const GstMetaInfo *meta = NULL;
info-&gt;init_func = my_meta_init;
info-&gt;free_func = my_meta_free;
info-&gt;transform_func = my_meta_transform;
info-&gt;serialize_func = my_meta_serialize;
info-&gt;deserialize_func = my_meta_deserialize;
meta = gst_meta_info_register (info);
g_once_init_leave ((GstMetaInfo **) &amp; 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"> <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. <doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstmeta.c">Register a new #GstMeta implementation.

View file

@ -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 * @api: the type of the #GstMeta API
* @impl: the name of the #GstMeta implementation * @impl: the name of the #GstMeta implementation
* @size: the size of the #GstMeta structure * @size: the size of the #GstMeta structure