I'm writing a zig app to list V4L2 device capabilities
They are defined in /usr/include/linux/videodev2.h in field capabilities of struct v4l2_capability where each bit represents a capability. So essentially a bit flag.
How does it translate to zig? Should I use packed struct ? If so could you show an example of how to display capabilitties from an int?