samples/subsys/usb/webusb/src/webusb.c
/**
 * @brief Handler called for WebUSB vendor specific commands.
 *
 * @param pSetup    Information about the request to execute.
 * @param len       Size of the buffer.
 * @param data      Buffer containing the request result.
 *
 * @return  0 on success, negative errno code on fail.
 */
@brief Handler called for WebUSB vendor specific commands.
@param pSetup    Information about the request to execute.
@param len       Size of the buffer.
@param data      Buffer containing the request result.

@return  0 on success, negative errno code on fail.
@brief Handler called for WebUSB vendor specific commands . @param pSetup Information about the request to execute . @param len Size of the buffer . @param data Buffer containing the request result . @return 0 on success negative errno code on fail .
int webusb_vendor_handle_req(struct usb_setup_packet *pSetup,
			     s32_t *len, u8_t **data)
{
	if ((req_handlers && req_handlers->vendor_handler) &&
		(!req_handlers->vendor_handler(pSetup, len, data)))
		return 0;
	return -ENOTSUP;
}
int webusb_vendor_handle_req ( struct usb_setup_packet * pSetup , s32_t * len , u8_t * * data ) { if ( ( req_handlers && req_handlers -> vendor_handler ) && ( ! req_handlers -> vendor_handler ( pSetup , len , data ) ) ) return 0 ; return - ENOTSUP ; }
@brief Handler called for WebUSB vendor specific commands.
@brief Handler called for WebUSB vendor specific commands .
/* Call the callback */