Validate headers
This commit is contained in:
3
Makefile
3
Makefile
@ -29,6 +29,9 @@ install: $(TARGET)
|
||||
clean:
|
||||
rm -f .depend $(OBJS) $(OBJS:.o=.d) $(HTML_SRC) $(TARGET)
|
||||
|
||||
headers:
|
||||
find -name '*.h' | xargs -n1 gcc $(CFLAGS) -Wno-error -c -o /dev/null
|
||||
|
||||
-include $(OBJS:.o=.d)
|
||||
|
||||
%.o: %.c
|
||||
|
@ -1,10 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "v4l2.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
typedef struct buffer_s buffer_t;
|
||||
typedef struct device_s device_t;
|
||||
|
||||
typedef struct buffer_list_s {
|
||||
char *name;
|
||||
struct device_s *device;
|
||||
device_t *device;
|
||||
buffer_t **bufs;
|
||||
int nbufs;
|
||||
int type;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "device/hw/links.h"
|
||||
#include "device/hw/device.h"
|
||||
#include "device/hw/buffer.h"
|
||||
#include "device/hw/buffer_list.h"
|
||||
#include "device/hw/links.h"
|
||||
|
||||
#define N_FDS 50
|
||||
#define QUEUE_ON_CAPTURE // seems to provide better latency
|
||||
|
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "v4l2.h"
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define LINKS_LOOP_INTERVAL 100
|
||||
|
||||
|
Reference in New Issue
Block a user