libdc1394 2.2.6
fw_cdev_event Union Reference

#include <dc1394/juju/firewire-cdev.h>

Collaboration diagram for fw_cdev_event:
Collaboration graph
[legend]

Detailed Description

union fw_cdev_event - Convenience union of fw_cdev_event_ types @common: Valid for all types @bus_reset: Valid if @common.type == FW_CDEV_EVENT_BUS_RESET @response: Valid if @common.type == FW_CDEV_EVENT_RESPONSE @request: Valid if @common.type == FW_CDEV_EVENT_REQUEST @iso_interrupt: Valid if @common.type == FW_CDEV_EVENT_ISO_INTERRUPT @iso_resource: Valid if @common.type == FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED or FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED

Convenience union for userspace use. Events could be read(2) into an appropriately aligned char buffer and then cast to this union for further processing. Note that for a request, response or iso_interrupt event, the data[] or header[] may make the size of the full event larger than sizeof(union fw_cdev_event). Also note that if you attempt to read(2) an event into a buffer that is not large enough for it, the data that does not fit will be discarded so that the next read(2) will return a new event.


The documentation for this union was generated from the following file: