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 * Copyright (C) 1999,2000,2001,2002 Andreas Bombe
* 2001, 2002 Manfred Weihs <weihs@ict.tuwien.ac.at> * 2001, 2002 Manfred Weihs <weihs@ict.tuwien.ac.at>
* 2002 Christian Toegel <christian.toegel@gmx.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), * 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 * 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, /* do nothing */
byte_t request_type, unsigned int requested_length, static int arm_tag_handler_default(
void *data) 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; (void)handle;
struct raw1394_arm_request_response *arm_req_resp; (void)arm;
(void)tcode;
if (tag) { (void)offset;
rh = (struct raw1394_arm_reqhandle *)tag; (void)source_node_id;
arm_req_resp = (struct raw1394_arm_request_response *) data; (void)card;
return rh->arm_callback(handle, arm_req_resp, (void)kernel_handle;
requested_length, rh->pcontext, (void)length;
request_type); (void)data;
} else {
/* error ... */ return 0;
return -1;
}
} }
int _raw1394_sync_cb(struct raw1394_handle *unused, struct sync_cb_data *data, int _raw1394_sync_cb(struct raw1394_handle *unused, struct sync_cb_data *data,