GPollFD.events

a bitwise combination from #GIOCondition, specifying which events should be polled for. Typically for reading from a file descriptor you would use glib.types.IOCondition.In | glib.types.IOCondition.Hup | glib.types.IOCondition.Err, and for writing you would use glib.types.IOCondition.Out | glib.types.IOCondition.Err.

struct GPollFD
ushort events;