Improve links to use sinks

This commit is contained in:
Kamil Trzcinski
2022-04-06 08:51:28 +02:00
parent 4d999d9426
commit e52a2326c3
6 changed files with 43 additions and 35 deletions

View File

@ -3,13 +3,14 @@
#include "v4l2.h"
typedef struct buffer_s buffer_t;
typedef struct buffer_list_s buffer_list_t;
typedef void (*link_on_buffer)(buffer_t *buf);
typedef bool (*link_check_streaming)();
typedef struct link_s {
struct device_s *capture; // capture_list
struct device_s *outputs[10];
struct buffer_list_s *sinks[10];
struct {
link_on_buffer on_buffer;
link_check_streaming check_streaming;