add dummy arm_tag_handler to raw1394 implementation

This commit is contained in:
Peter McGoron 2022-09-20 01:10:19 -04:00
parent 33ba4bb961
commit e9aac32069
1 changed files with 18 additions and 16 deletions

View File

@ -4,6 +4,7 @@
* Copyright (C) 1999,2000,2001,2002 Andreas Bombe
* 2001, 2002 Manfred Weihs <weihs@ict.tuwien.ac.at>
* 2002 Christian Toegel <christian.toegel@gmx.at>
* Copyright (C) 2022 Peter McGoron <code@mcgoron.com>
*
* This library is licensed under the GNU Lesser General Public License (LGPL),
* version 2.1 or later. See the file COPYING.LIB in the distribution for
@ -55,23 +56,24 @@ static int tag_handler_default(struct raw1394_handle *handle, unsigned long tag,
}
}
static int arm_tag_handler_default(struct raw1394_handle *handle, unsigned long tag,
byte_t request_type, unsigned int requested_length,
void *data)
/* do nothing */
static int arm_tag_handler_default(
raw1394handle_t handle, raw1394_arm_allocation_t *arm,
int tcode, unsigned long long offset, int source_node_id,
int card, unsigned kernel_handle, size_t length, void *data
)
{
struct raw1394_arm_reqhandle *rh;
struct raw1394_arm_request_response *arm_req_resp;
(void)handle;
(void)arm;
(void)tcode;
(void)offset;
(void)source_node_id;
(void)card;
(void)kernel_handle;
(void)length;
(void)data;
if (tag) {
rh = (struct raw1394_arm_reqhandle *)tag;
arm_req_resp = (struct raw1394_arm_request_response *) data;
return rh->arm_callback(handle, arm_req_resp,
requested_length, rh->pcontext,
request_type);
} else {
/* error ... */
return -1;
}
return 0;
}
int _raw1394_sync_cb(struct raw1394_handle *unused, struct sync_cb_data *data,