Bus.getPollfd

void getPollfd(out glib.types.PollFD fd)

Gets the file descriptor from the bus which can be used to get notified about messages being available with functions like [glib.global.poll], and allows integration into other event loops based on file descriptors. Whenever a message is available, the POLLIN / [glib.types.IOCondition.In] event is set.

Warning: NEVER read or write anything to the returned fd but only use it for getting notifications via [glib.global.poll] or similar and then use the normal GstBus API, e.g. [gst.bus.Bus.pop].

Parameters

fdA GPollFD to fill