summaryrefslogtreecommitdiffstats
path: root/src/eventloop.c
diff options
context:
space:
mode:
authorGravatar aeb 2000-03-16 03:40:52 +0000
committerGravatar aeb 2000-03-16 03:40:52 +0000
commit227464b31ce04e1ceba51067b500ebbe54b2c08f (patch)
tree4414d7778310d0b663a719079dc794f656f22d2d /src/eventloop.c
parentRemoved obsolete AC_PROG_RANLIB. (diff)
Added FCP listen functionality.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@12 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'src/eventloop.c')
-rw-r--r--src/eventloop.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/eventloop.c b/src/eventloop.c
index 62f5202..e898ba7 100644
--- a/src/eventloop.c
+++ b/src/eventloop.c
@@ -36,6 +36,15 @@ int raw1394_loop_iterate(struct raw1394_handle *handle)
}
break;
+ case RAW1394_REQ_FCP_REQUEST:
+ if (handle->fcp_handler) {
+ retval = handle->fcp_handler(handle, req->misc & 0xffff,
+ req->misc >> 16,
+ req->length,
+ (char *)handle->buffer);
+ }
+ break;
+
default:
if (handle->tag_handler) {
retval = handle->tag_handler(handle, req->tag,
@@ -90,3 +99,14 @@ iso_handler_t raw1394_set_iso_handler(struct raw1394_handle *handle,
handle->iso_handler[channel] = new;
return NULL;
}
+
+fcp_handler_t raw1394_set_fcp_handler(struct raw1394_handle *handle,
+ fcp_handler_t new)
+{
+ fcp_handler_t old;
+
+ old = handle->fcp_handler;
+ handle->fcp_handler = new;
+
+ return old;
+}