/* This function will add an interface to a function. */
rt_err_t rt_usbd_function_add_interface(ufunction_t func, uintf_t intf)
/* This function will add an interface to a function. */
rt_err_t rt_usbd_function_add_interface(ufunction_t func, uintf_t intf)
{
    LOG_D("rt_usbd_function_add_interface");
    RT_ASSERT(func != RT_NULL);
    RT_ASSERT(intf != RT_NULL);
    rt_list_insert_before(&func->intf_list, &intf->list);
    return RT_EOK;
}