<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libdc1394: fw_cdev_event Union Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> </ul> </div> </div> <div class="contents"> <h1>fw_cdev_event Union Reference</h1><!-- doxytag: class="fw_cdev_event" --> <p><code>#include <dc1394/juju/firewire-cdev.h></code></p> <table border="0" cellpadding="0" cellspacing="0"> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>union <a class="el" href="unionfw__cdev__event.html">fw_cdev_event</a> - Convenience union of fw_cdev_event_ types : Valid for all types : Valid if .type == FW_CDEV_EVENT_BUS_RESET : Valid if .type == FW_CDEV_EVENT_RESPONSE : Valid if .type == FW_CDEV_EVENT_REQUEST : Valid if .type == FW_CDEV_EVENT_ISO_INTERRUPT : Valid if .type == FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED or FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED</p> <p>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. </p> <hr/>The documentation for this union was generated from the following file:<ul> <li>dc1394/juju/firewire-cdev.h</li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on 10 Sep 2009 for libdc1394 by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>