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