Refactor packet handling

This commit is contained in:
kkitayam
2021-09-25 16:59:17 +09:00
parent a978828c3a
commit d88cc23ca5
3 changed files with 90 additions and 95 deletions
+4 -2
View File
@@ -42,10 +42,12 @@ extern "C" {
bool tud_video_n_streaming(uint8_t itf);
int tud_video_n_frame_xfer(uint8_t itf, uint32_t pts, void *buffer, size_t bufsize);
/* itf instance number of streaming interface */
bool tud_video_n_frame_xfer(uint8_t itf, uint32_t pts, void *buffer, size_t bufsize);
/*------------- Optional callbacks -------------*/
TU_ATTR_WEAK int tud_video_frame_xfer_complete_cb(void);
/* itf instance number of streaming interface */
TU_ATTR_WEAK int tud_video_frame_xfer_complete_cb(unsigned itf);
//--------------------------------------------------------------------+
// Application Callback API (weak is optional)