Skip to content

Commit

Permalink
The import sync file variants of the ioctl and struct need the same t…
Browse files Browse the repository at this point in the history
…reatment as the export variants.
  • Loading branch information
khuey committed Jan 18, 2025
1 parent c0147f0 commit 867f95b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/v4l_dmabuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ struct dma_buf_export_sync_file {
};
#define DMA_BUF_IOCTL_EXPORT_SYNC_FILE _IOWR(DMA_BUF_BASE, 2, struct dma_buf_export_sync_file)
#endif
#ifndef DMA_BUF_IOCTL_IMPORT_SYNC_FILE
struct dma_buf_import_sync_file {
uint32_t flags;
int32_t fd;
};
#define DMA_BUF_IOCTL_IMPORT_SYNC_FILE _IOWR(DMA_BUF_BASE, 3, struct dma_buf_import_sync_file)
#endif

static const char device_name[] = "/dev/video0";

Expand Down

0 comments on commit 867f95b

Please sign in to comment.