From f39785d9d82abfa7c7c142f2867fffef0b5205fd Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Thu, 6 Mar 2014 10:27:44 +0000 Subject: [PATCH] VendorAudioRequests() header change such that can be called from C --- module_usb_audio/endpoint0/vendorrequests.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module_usb_audio/endpoint0/vendorrequests.h b/module_usb_audio/endpoint0/vendorrequests.h index 680464ba..e571ba92 100644 --- a/module_usb_audio/endpoint0/vendorrequests.h +++ b/module_usb_audio/endpoint0/vendorrequests.h @@ -1,6 +1,8 @@ #ifndef _VENDORREQUESTS_H_ #define _VENDORREQUESTS_H_ +#include + /* Functions that handle vustomer vendor requests. * * THESE NEED IMPLEMENTING FOR A SPECIFIC DESIGN @@ -10,7 +12,9 @@ * */ int VendorAudioRequests(XUD_ep ep0_out, XUD_ep ep0_in, unsigned char bRequest, unsigned char cs, unsigned char cn, - unsigned short unitId, unsigned char direction, chanend c_audioControl, chanend ?c_mix_ctl, chanend ?c_clk_ctL); + unsigned short unitId, unsigned char direction, chanend c_audioControl, + NULLABLE_RESOURCE(chanend, c_mix_ctl), + NULLABLE_RESOURCE(chanend, c_clk_ctL)); #endif