diff options
| author | 2003-01-15 06:36:19 +0000 | |
|---|---|---|
| committer | 2003-01-15 06:36:19 +0000 | |
| commit | e6e6375ceeef247586113cd8a39ea3e2f2124338 (patch) | |
| tree | 382193f5686ec771dffcf5d80577367be5898bad /src/iso.c | |
| parent | back out previous commit - don't drop the legacy API just yet (diff) | |
implement tag matching for rawiso reception
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@101 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'src/iso.c')
| -rw-r--r-- | src/iso.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -290,15 +290,23 @@ int raw1394_iso_recv_set_channel_mask(raw1394handle_t handle, u_int64_t mask) /** * raw1394_iso_recv_start - begin isochronous reception * @start_on_cycle: isochronous cycle number on which to start (-1 if you don't care) + * @tag_mask: mask of tag fields to match (-1 to receive all packets) + * @sync: not used, reserved for future implementation **/ -int raw1394_iso_recv_start(raw1394handle_t handle, int start_on_cycle) +int raw1394_iso_recv_start(raw1394handle_t handle, int start_on_cycle, int tag_mask, int sync) { + int args[3]; + if(!handle->iso_buffer) return -1; if(!handle->iso_recv_handler) return -1; - if(ioctl(handle->fd, RAW1394_ISO_RECV_START, start_on_cycle)) + args[0] = start_on_cycle; + args[1] = tag_mask; + args[2] = sync; + + if(ioctl(handle->fd, RAW1394_ISO_RECV_START, &args[0])) return -1; return 0; |
