Skip to contentSkip to conversation

Introduce cdc_recv_setup event handling callback

PATCH New Bryan O'Donoghue 1 participant 1 message May 26, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 4/14 Introduce cdc_recv_setup event handling callback

modified: include/usbdcore.h
Adds cdc_recv_setup as a callback to support USB CDC specific control requests

---

 include/usbdcore.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

36e6bf2cc8e32f0b250ceb8298ad0cdd75e6eb43

include/usbdcore.h +3 -0
@@ -576,6 +576,9 @@ struct usb_device_instance {
 
 	void (*event) (struct usb_device_instance *device, usb_device_event_t event, int data);
 
+	/* Do cdc device specific control requests */
+	int (*cdc_recv_setup)(struct usb_device_request *request, struct urb *urb);
+
 	/* bus interface */
 	struct usb_bus_instance *bus;	/* which bus interface driver */