Functions returning glib::types:Type (aka GType)

Sebastian Dröge sebastian at centricular.com
Mon May 20 16:46:00 UTC 2019


On Mon, 2019-05-20 at 17:05 +0100, Russel Winder wrote:
> 
> I think enums must be treated differently to structs. In particular the audio
> library has an enum AudioChannelPosition and there is a function
> gst_audio_channel_position_get_type. However I cannot find any G_DEFINE…
> applied to AudioChannelPosition in the GStreamer source. Hopefully this is
> just a problem with my use of grep.

g_enum_register_static(), which is usually called from autogenerated
(via glib-mkenums) files.

-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190520/6e64ab4a/attachment.sig>


More information about the gstreamer-devel mailing list