<p><b>@dylad</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/12267#discussion_r325603423">tests/usbus/usbdev_mock.h</a>:</p>
<pre style='color:#555'>> + *
+ * @param dev   usbdev mock device state
+ * @param ep    usbdev mock device endpoint
+ * @param len   length supplied to the ready call
+ */
+typedef void (*usbdev_mock_ready_cb_t)(usbdev_mock_t *dev,
+                                       usbdev_mock_ep_t *ep,
+                                       size_t len);
+
+/**
+ * @brief usbdev mock device
+ */
+struct usbdev_mock {
+    usbdev_t usbdev;                    /**< Generic usbdev device          */
+    usbdev_mock_ep_t in[1];             /**< IN endpoints                   */
+    usbdev_mock_ep_t out[1];            /**< OUT endpoints                  */
</pre>
<p>Then you should consider to use a <code>#define</code> ;)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/12267?email_source=notifications&email_token=ABE7WYAJU7EMML66XA336LLQKIAP7A5CNFSM4IXUWNC2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFDF5QQ#discussion_r325603423">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHP6GGP3BGYMZ3V5Y3QKIAP7ANCNFSM4IXUWNCQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYEO3TKCZ2I2MZJT5HTQKIAP7A5CNFSM4IXUWNC2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFDF5QQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/12267?email_source=notifications\u0026email_token=ABE7WYAJU7EMML66XA336LLQKIAP7A5CNFSM4IXUWNC2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFDF5QQ#discussion_r325603423",
"url": "https://github.com/RIOT-OS/RIOT/pull/12267?email_source=notifications\u0026email_token=ABE7WYAJU7EMML66XA336LLQKIAP7A5CNFSM4IXUWNC2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFDF5QQ#discussion_r325603423",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>