Fix some headers

This commit is contained in:
Kamil Trzcinski
2022-04-08 23:14:04 +02:00
parent 67d29468d1
commit bd9094cbbc
3 changed files with 24 additions and 11 deletions

View File

@@ -1,6 +1,12 @@
#pragma once
#include "v4l2.h"
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <linux/videodev2.h>
typedef struct buffer_s buffer_t;
typedef struct buffer_list_s buffer_list_t;
typedef struct buffer_s {
char *name;
@@ -15,12 +21,12 @@ typedef struct buffer_s {
int dma_fd;
int mmap_reflinks;
struct buffer_s *mmap_source;
buffer_list_t *mmap_source;
bool enqueued;
uint64_t enqueue_time_us;
} buffer_t;
buffer_t *buffer_open(const char *name, struct buffer_list_s *buf_list, int buffer);
buffer_t *buffer_open(const char *name, buffer_list_t *buf_list, int buffer);
void buffer_close(buffer_t *buf);
bool buffer_use(buffer_t *buf);